SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: image swap

  1. #1
    SitePoint Member
    Join Date
    Dec 2008
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    image swap

    can anyone help me with the javascript code for url image swapping(when my cursor is over a link/url, the image changes).

  2. #2
    SitePoint Mentor bronze trophy
    John_Betong's Avatar
    Join Date
    Aug 2005
    Location
    City of Angels
    Posts
    1,914
    Mentioned
    74 Post(s)
    Tagged
    7 Thread(s)
    Quote Originally Posted by joeyxaza View Post
    can anyone help me with the javascript code for url image swapping(when my cursor is over a link/url, the image changes).
    Search the forum for hover
    Learn how to be ready for The New Move to Discourse

    How to make Make Money Now with a *NEW* look

    Be sure to congratulate Wolfshade on earning Member of the Month for August 2014

  3. #3
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    Using javascript for image swapping is not such a good idea now.
    There are much better and stable techniques using css instead.

    See http://css-tricks.com/new-screencast-three-state-menu/
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

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