By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,747 Members | 1,672 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,747 IT Pros & Developers. It's quick & easy.

Random image change

100+
P: 123
I want some set of image to change randomly when ever i click on a link to change a webpage
Jul 21 '09 #1
Share this Question
Share on Google+
3 Replies


acoder
Expert Mod 15k+
P: 16,027
To change an image, set its src property.

For all things random, use Math.random.
Jul 21 '09 #2

100+
P: 123
Sorry i am a beginer in javascript the only thing i can do from what you have mention is to set src property of an image
Jul 22 '09 #3

acoder
Expert Mod 15k+
P: 16,027
See if this simple tutorial helps.
Jul 22 '09 #4

Post your reply

Sign in to post your reply or Sign up for a free account.