View Single Post
Old 12-29-2012, 03:20 AM   PM User | #7
sorlaker
Regular Coder

 
Join Date: Dec 2009
Posts: 166
Thanks: 23
Thanked 1 Time in 1 Post
sorlaker has a little shameless behaviour in the past
Quote:
Originally Posted by Custard7A View Post
Ah, you forgot to mention that. As sorlaker has implied above, that would be in a Javascript job. Actually, it would most likely be simpler to have the whole thing in Javascript (That's if you have trouble understanding / using sorlaker's code).

P.S. The interval in your code sorlaker is not 5 seconds, I expect you speed it up for testing and forgot to change it back, or some-such. Also, I get some issues with the images not loading, or loading after a long time (I watched that page for half a minute, all blank. I checked back in 5 minutes, 2 were showing. I checked back in 10 minutes, 3 were showing.) I don't know if pre-loading should be involved or if it's something else.
yaya my bad (about the 5 seconds ops!) ^^
I've just figured that issue. So the best way is make the user download all the images then shuffle them each 5 seconds. Using jquery's document.ready function. http://api.jquery.com/ready/

Check demo n code here :
Demo : http://sorlakertest2.hostzi.com/1-sl...ion2/index.php
Code : http://pastebin.com/seRpurgm

Last edited by sorlaker; 12-29-2012 at 03:24 AM..
sorlaker is offline   Reply With Quote