”@

Home 

2014/10/16 ¤W¤Č 12:06:48

jquery Programming Glossary: random.php

Preload images from an Ajax Call

http://stackoverflow.com/questions/1674932/preload-images-from-an-ajax-call

images from an Ajax Call Could someone help me understand how to preload the images from random.php page so the first time it loads it fades in as it should. Currently its got an ugly bulk echo because they're not preloaded.. after the other perfectly... Loop through the images and print them to the page for var i 0 i totalBoxes i .ajax url random.php no cache false success function html following line I originally suggested but let's make it better... '#bg' .append html..

jQuery: setInterval

http://stackoverflow.com/questions/4355076/jquery-setinterval

function '#center' .load 'images gallery best rotate.php' 5000 script rotate.php img src images gallery best random.php . php echo rand 0 1000 . width 800 height 377 alt random.php contains a code which loads random image from selected folder.. 5000 script rotate.php img src images gallery best random.php . php echo rand 0 1000 . width 800 height 377 alt random.php contains a code which loads random image from selected folder it works good. Forgot to mention I got lightbox scripts included.. .ready function var refreshId setInterval function var r 0.5 Math.random 1000.99 '#center' .load 'images gallery best random.php ' r 5000 script How about that Edit Sorry I meant that you should just randomize the photos in the setInterval function...