Anybody know some JavaScript?

Home Forums General Chat Anybody know some JavaScript?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3185
    Anima
    Participant

    What I’m looking for is changing the src element of an image with JavaScript based on the the link the mouse is hovering over.

    You can get the code I’m using here.

    You can see the current code live here. (You have to register / Login / Upload some dummy pics / Nav back to that url, since the link isn’t enabled on the site)

    Can anyone help me?

    #16959
    Jil
    Participant

    Please pastebin the code. I’m not downloading a bit of text.

    I’ve written a script that does exactly what you’re looking for, so I know it’s possible (at least in Firefox). It should be along the lines of [DOM object of image].setAttribute(“src”, “whateveryouwant”);

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.