RSS Forums RSS
Please support our PHP advertiser: Lunarpages PHP Web Hosting

Program-contolled delay

Join Date: Sep 2005
Posts: 732
Reputation: digital-ether has a spectacular aura about digital-ether has a spectacular aura about 
Rep Power: 6
Solved Threads: 44
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Master Poster

Re: Program-contolled delay

  #2  
Jul 20th, 2006
This would involve javascript rather than php.

What you would have to do is use JavaScript to first preload the images, so that there is not delay when the image slides to the next.
This is done by attaching an onload event handler to the window object.
IE: window.onload = function() { /* js preload images goes here */ };

Switching through images is a simple matter. Changing the source of an image will make the browser load a new image in replacement of the old one.
IE: img.src = 'http://example.com/images/newimage.gif";

Maybe the JS forum would help or you can try google for "JavaScript Image Slideshow" or something similar.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 6:49 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC