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

Change onclick after page has been displayed.

P: n/a
Ben
Is it possible to change the onclick variable after a picture after it
has been displayed? e.g similar to image1.src="image.jpg".

Basically I have a button that changes 4 images to different ones and
when the different ones are clicked a different larger image will be
changed to that using a function called by the onclick command.

Thanks.

Ben.
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <c2**************************@posting.google.com >, bs2k1
@excite.com enlightened us with...
Is it possible to change the onclick variable after a picture after it
has been displayed? e.g similar to image1.src="image.jpg".

Basically I have a button that changes 4 images to different ones and
when the different ones are clicked a different larger image will be
changed to that using a function called by the onclick command.


Sure it is. A few different ways, actually.
img.onclick
I think is what you were looking for.

--
--
~kaeli~
Experience is something you don't get until just after you
need it.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.