Connecting Tech Pros Worldwide Help | Site Map

Change onclick after page has been displayed.

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 23rd, 2005, 07:05 PM
Ben
Guest
 
Posts: n/a
Default Change onclick after page has been displayed.

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, 07:05 PM
kaeli
Guest
 
Posts: n/a
Default 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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.