Click to See Complete Forum and Search --> : how to change an image after clicking on it
val04
Aug 12th, 2001, 02:32 AM
How do I change an image (which is a link to another page) once the user clicks on it?
crptcblade
Aug 12th, 2001, 07:55 AM
try this :
<a href="www.yahoo.com" onClick="imgTest.src='whatever.jpg';return true;"><img name="imgTest"></a>
but if it links to another page, why does do you want it to change, if the page is going to disappear? :confused:
scoutt
Aug 12th, 2001, 08:08 AM
well if the user clicked on it what would be the point on changing it if it goes to another page. unless you are in frames. if you are then you can do a mouseout or mouse over
scoutt
Aug 12th, 2001, 08:09 AM
Doh!! :D
val04
Aug 13th, 2001, 04:27 AM
What I want to happen is that when the user clicks on the image (which is one of the menu options on my page), the image of the link he clicked on would change to something that is highlighted or in bold to signify that he's currently viewing information about that link. How do I do this?
Originally posted by scoutt
well if the user clicked on it what would be the point on changing it if it goes to another page. unless you are in frames. if you are then you can do a mouseout or mouse over
scoutt
Aug 14th, 2001, 10:37 AM
is the image on the same page or in a frame. if it is on the same page as the link you clicked on then just load that page with the image of the one you want.
that doesn't sound very good, let me try that again. :D
are you loading the menu on everypage? if so just load the image you want in the page you click on.
val04
Aug 14th, 2001, 07:16 PM
yes i'm loading the menu on every page. thanks for the advice.
Originally posted by scoutt
is the image on the same page or in a frame. if it is on the same page as the link you clicked on then just load that page with the image of the one you want.
that doesn't sound very good, let me try that again. :D
are you loading the menu on everypage? if so just load the image you want in the page you click on.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.