•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 427,428 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,533 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1089 | Replies: 2
![]() |
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.
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!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
•
•
Join Date: Jul 2004
Location: North East Indiana
Posts: 491
Reputation:
Rep Power: 5
Solved Threads: 20
You could do an annoyingly crude version in PHP using header commands. Tell the browser to refresh every x seconds (I think it's header(refresh: 10, http://www.yoursite.com)) and on each refresh change the reference URL.
This reloads the whole page rather than just the image, so a client-side language like JS is probably your best bet.
This reloads the whole page rather than just the image, so a client-side language like JS is probably your best bet.
www.uncreativelabs.net
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Objects are not displaying in my program, also need to know how to work mouse clicks. (C++)
- Sending multiple emails with asp (ASP)
- time delay during program execution (VB.NET)
- For some reason program installations cannot create new start menu shortcuts... (Windows NT / 2000 / XP / 2003)
- 1 do while with 2 delay (how u do that??) (C++)
- Mortgage Program help (Java)
- how can i make the program depend on time (C)
Other Threads in the PHP Forum
- Previous Thread: php mysql problem
- Next Thread: Floating IP Address in AOL


Linear Mode