Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2002
    Location
    Hastings, East Sussex
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    changing images in a js function?

    I suspect that the answer to this question is no as images are loaded when the page loads. However, I have a bit of XSLT that runs a javascript function. The purpose of the function is that when the image is clicked it's image changes from a minus to a plus. It doesn't work, does anyone have some JS that does?

    If this cannot be done than is it possible to change the text between the <a> and </a> on an anchor tag, as I could use that instead.

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Uh, of course that can be done! how do you think rollovers work?
    Code:
    <img src="plus_sign.gif" onClick="this.src='minus_sign.gif'" />
    Unless I misunderstood you?

  • #3
    New Coder
    Join Date
    Jul 2002
    Location
    Hastings, East Sussex
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Beautiful!

    Thanks very much.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •