|
-
Aug 12th, 2001, 02:32 AM
#1
Thread Starter
Member
how to change an image after clicking on it
How do I change an image (which is a link to another page) once the user clicks on it?
-
Aug 12th, 2001, 07:55 AM
#2
try this :
Code:
<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?
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Aug 12th, 2001, 08:08 AM
#3
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
-
Aug 12th, 2001, 08:09 AM
#4
Doh!!
-
Aug 13th, 2001, 04:27 AM
#5
Thread Starter
Member
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
-
Aug 14th, 2001, 10:37 AM
#6
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. 
are you loading the menu on everypage? if so just load the image you want in the page you click on.
-
Aug 14th, 2001, 07:16 PM
#7
Thread Starter
Member
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. 
are you loading the menu on everypage? if so just load the image you want in the page you click on.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|