How do I change an image (which is a link to another page) once the user clicks on it?
Printable View
How do I change an image (which is a link to another page) once the user clicks on it?
try this :
but if it links to another page, why does do you want it to change, if the page is going to disappear? :confused:Code:<a href="www.yahoo.com" onClick="imgTest.src='whatever.jpg';return true;"><img name="imgTest"></a>
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
Doh!! :D
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?
Quote:
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
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.
yes i'm loading the menu on every page. thanks for the advice.
Quote:
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.