Connecting Tech Pros Worldwide Forums | Help | Site Map

Change onclick after page has been displayed.

Ben
Guest
 
Posts: n/a
#1: Jul 23 '05
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.

kaeli
Guest
 
Posts: n/a
#2: Jul 23 '05

re: Change onclick after page has been displayed.


In article <c2d24516.0504080835.2fb83073@posting.google.com >, bs2k1
@excite.com enlightened us with...[color=blue]
> 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.
>[/color]

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

Closed Thread