Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Javascript only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
Javascript
Random image change
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
simon2x1
New Member
Join Date:
Dec 2008
Posts:
123
#1
Random image change
Jul 21 '09, 11:03 AM
I want some set of image to change randomly when ever i click on a link to change a webpage
acoder
Recognized Expert
MVP
Join Date:
Nov 2006
Posts:
16032
#2
Jul 21 '09, 05:00 PM
To change an image, set its src property.
For all things random, use Math.random.
Comment
Post
Cancel
simon2x1
New Member
Join Date:
Dec 2008
Posts:
123
#3
Jul 22 '09, 10:25 AM
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
Comment
Post
Cancel
acoder
Recognized Expert
MVP
Join Date:
Nov 2006
Posts:
16032
#4
Jul 22 '09, 10:58 AM
See if this
simple tutorial
helps.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment