?
Solved

Code to amend this JQuery simpleSli.de script to auto slide

Posted on 2010-11-19
6
Medium Priority
?
1,070 Views
Last Modified: 2012-05-10
Hi,

please look at this example on the simplesli.de website:

http://www.simplesli.de/examples/fullpage.html

I've tried adding auto-slideshow with no success and wondered if someone can alter the code on the above fullpage.html example to autoslide the images?

Thanks
0
Comment
Question by:sany101
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 34172049
Well, without digging into the code too much, it looks like you just need to call "resizer();" to make it move:
   setInterval('resizer();', 10000);     // auto slide every 10 seconds

Open in new window

0
 

Author Comment

by:sany101
ID: 34172153
Thanks Carl,

It says you need to add code below but not sure I'm getting this right as it's not working for me.




<div class="auto-slider" rel="group"></div>

// Add this javascript, and ensure it appears after the simpleSlide() call

$('.auto-slider').each( function() {
    var related_group = $(this).attr('rel');

    window.setInterval("simpleSlideAction('.right-button', " + related_group + ");", 4000);
});

Open in new window

0
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 34172175
Where are you putting that code?
0
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

 

Author Comment

by:sany101
ID: 34172278
Tried in the header under

var timer = '';


I've also added the class auto-slider to the Div containing the images but not sure that's the right place for it.
0
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 2000 total points
ID: 34172448
For quick and easy cheat change:
<div class="right-button" rel="this_particular_slideshow">&gt;</div>

Open in new window

To:
<div id="right-button" class="right-button" rel="this_particular_slideshow">&gt;</div>

Open in new window

And add the following to the Head section, right before the closing </script> tag:
setInterval('document.getElementById(\'right-button\').click();', 10000);

Open in new window

0
 

Author Closing Comment

by:sany101
ID: 34173216
Perfect thanks
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question