i know a little php. Can anyone tell me how to write a simple php script so that the image in the header changes every 5 seconds or so. I dont want to place any kind of links on that image just want to change the images . thank you :))
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
PHP can only provide the image, you need a little bit of JavaScript to trigger events fetching the new images.
Here’s a way to do it, adapted from http://javascript.internet.com/miscellaneous/random-image-rotator.html: