Connecting Tech Pros Worldwide Help | Site Map

Change onclick after page has been displayed.

  #1  
Old July 23rd, 2005, 08:05 PM
Ben
Guest
 
Posts: n/a
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.
  #2  
Old July 23rd, 2005, 08:05 PM
kaeli
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how J2EE framework works????? dmjpro answers 3 February 18th, 2009 03:03 PM
Link two dropdowns so the second dropdown can use sql query zion4ever answers 4 August 13th, 2008 01:31 AM
Is This Possible ... ? Wayne Smith answers 9 June 24th, 2006 11:25 PM
cross browser multipart form handling John Fereira answers 4 September 3rd, 2005 04:35 PM