Results 1 to 7 of 7

Thread: how to change an image after clicking on it

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2001
    Posts
    37

    Unhappy 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?

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    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

  3. #3
    scoutt
    Guest
    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

  4. #4
    scoutt
    Guest
    Doh!!

  5. #5

    Thread Starter
    Member
    Join Date
    Mar 2001
    Posts
    37
    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

  6. #6
    scoutt
    Guest
    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.

  7. #7

    Thread Starter
    Member
    Join Date
    Mar 2001
    Posts
    37

    Smile

    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
  •  



Click Here to Expand Forum to Full Width