Need MouseHover HTML Code

Discussion in 'JavaScript' started by freakadmins, Nov 29, 2011.

  1. #1
    Hello Friends,
    Yesterday when i was checking some mousehover code without Javascript. I found this code

    <a onmouseover="document.NAME.src='Your IMAGE 2nd'"
    onmouseout ="document.NAME.src='Your IMAGE'">
    <img name=NAME src='Your IMAGE'/></a>

    When i tried this code in my webpage.. it worked fine. It changed the images whenever I move cursor on that image. But When i upload it through FTP. This code is not working. For better understanding you guyz can check my website - www . briskaid . com
    I have used this code for all 8 images but its not working on internet. If I manually check it works.

    Any suggestions?? or Anything else is there? If any javascript is there please let me know
     
    freakadmins, Nov 29, 2011 IP
  2. IAreOwn

    IAreOwn Active Member

    Messages:
    46
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    95
    #2
    i suggest you use CSS to do this,
     
    Last edited: Nov 29, 2011
    IAreOwn, Nov 29, 2011 IP
  3. creationz

    creationz Well-Known Member

    Messages:
    2,080
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    128
    #3
    It is working....
     
    creationz, Nov 29, 2011 IP
  4. freakadmins

    freakadmins Greenhorn

    Messages:
    63
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #4
    Hey People..

    Atlast i got my answer... actually the thing is ... on Internet my Images Extension is changed from "jpg" to "JPG" because of that only it was hard to call the images.. anyways.. thankx
     
    freakadmins, Nov 29, 2011 IP
  5. rainborick

    rainborick Well-Known Member

    Messages:
    424
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    120
    #5
    You've got "JPG" in upper-case in your code, which will work on a Windows PC, but Unix-based servers are case-sensitive for filenames. I bet if you change the filenames to match exactly that your code will work. Good luck!
     
    rainborick, Nov 30, 2011 IP