autoscroll or time delayed auto scroll
|
|
Is it possible to automatically scroll photos in the carousel? |
|
|
1) Is it possible to automatically scroll photos in the carousel? 2) Is it possible to time delay scroll of photos in the carousel? |
|
|
I mean is it possible to get photos scroll automatically every 3 seconds? can you give me some pointers or links to existing libraries that have timers built in? I’m a newbie. :-) |
|
|
look at this http://prototypejs.org/api/periodicalExecuter if you add this
new PeriodicalExecuter(function() {
hCarousel.scrollTo(hCarousel.currentIndex() + 1);
}, 3);
to test_carousel.html, it works fine. |
|
|
You, sir, are a freaking genius. Genius I say. Yes, you are! This is awesome. Thank you very much. :-) |
|
|
I recommand this great book http://www.pragprog.com/titles/cppsu. |
|
|
I would get that book in a heartbeat if I knew java. You see, I’m a complete newbie. I mean, html-is-a-programming-language type of a newbie. Can you recommend a Java book to somebody like me (no CS background)? |
|
|
Hi, thanks |
|
|
just observe mouseenter/leave on carousel div to start/stop the periodcal executer |
|
|
Hi, I also used a periodic executer for my carousel, thus I don’t need a next and previous button. However when I set previous and next button to false in the options, there will be an error that says this.previousButton is null. |
|
|
James, Javascript != Java There are lots of good Javascript books out there. It’s been so long that I’m not sure I could recommend an intro, though I see O’Reilly are about to publish one that looks great Of course, there are lots of online references I did just pick up the Pragmatic Prototype and script.aculo.us book, and it’s good, though not as a general intro to Javascript. |
|
|
Hello, Seb you said: just observe mouseenter/leave on carousel div to start/stop the periodcal executer but periodicalexecuter has only stop method and not start..how can I do this? |
|
|
Hi, I wrote the solution. var x = null;
This is lighter code. I hope it will be useful. |
|
|
Anyone know if it’s possible to smooth scroll the carousel rather than having it scroll in stages? Also, if the scroll could reverse itself when it reaches the end it would be superfantastic :) |