Solved

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

Posted on 2010-11-19
6
1,031 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
  • 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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 500 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Angular JS form 8 26
Jquery Typeahead - where is the source set? 1 15
Test ddwrt:UserLookup 1 22
Two RegEx conditions in one 3 14
Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

758 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now