Hi please can anybody tell me if it is possible to write a code in php that will change the image being display on my website every second. In others I want three different images to display at my homepage but at intervals. Thanks
achiman
0
Junior Poster in Training
Recommended Answers
Jump to PostYou can't change anything about the page once it is loaded with PHP. It would require javascript to do that.
Jump to PostJavascript Image Rotator:
(not PHP)
Usage:
The switchtime is milliseconds to switch (at 5 seconds right now),
The images array is an array of images to be cycled through. They can be a relative or absolute path./*CodeJoust Javascript Imagerotator object. */ var imgRotator = { init: …
All 6 Replies
chaines51
0
Junior Poster in Training
codejoust
8
Junior Poster
chaines51
0
Junior Poster in Training
achiman
0
Junior Poster in Training
codejoust
8
Junior Poster
achiman
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.