Results 1 to 5 of 5

Thread: Image Rollover V3.0 Not Working

  1. #1
    Join Date
    Dec 2008
    Location
    Selby, North Yorkshire
    Posts
    90
    Thanks
    28
    Thanked 2 Times in 2 Posts

    Default Image Rollover V3.0 Not Working

    1) Script Title: DOM Image rollover v3.0

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex15/domroll.htm

    3) Describe problem: This works fine with my HTML editor but doesn't work when I've published it. Any ideas?
    Here's the link http://www.furrytalesflyball.co.uk/TestPage.htm

  2. #2
    Join Date
    Oct 2009
    Location
    Mumbai
    Posts
    17
    Thanks
    2
    Thanked 3 Times in 3 Posts

    Default

    your path of the image is not right

    <img width="150" hspace="0" height="50" border="0" xsrc="Pictures/Forms/LinkAboutUs.jpg" src="Pictures/Forms/LinkAboutUs.jpg" class="domroll LinkOverAboutUs.jpg">

    change to :
    <img width="150" hspace="0" height="50" border="0" xsrc="Pictures/Forms/LinkAboutUs.jpg" src="Pictures/Forms/LinkAboutUs.jpg" class="domroll Pictures/Forms/LinkOverAboutUs.jpg">

  3. #3
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    Right now this will work

    <img border="0" hspace="0" src="Pictures/Forms/LinkAboutUs.jpg" class="domroll Pictures/Forms/LinkOverAboutUs.JPG" width=150 height=50>

    if you compare it to your original code which is this

    <img border="0" hspace="0" src="Pictures/Forms/LinkAboutUs.jpg" class="domroll LinkOverAboutUs.jpg" width=150 height=50>

    then you can see that you can add Pictures/Forms/ in front of the LinkOverAboutUs picture if you want it to get the image from the same folder. Right now you also have the image in the root of the domain, but the reason it doesn't work is because the picture has the extension JPG with capital LETTERS on your server. The server is more specific about capitalization than your local machine

    Edit: Sorry for the crossposting, but notice, however, the part about capital letters, and the xsrc stuff that smrnsmile has in his post is probably from firebug and should not be needed
    Last edited by azoomer; 07-19-2010 at 07:14 AM.

  4. The Following User Says Thank You to azoomer For This Useful Post:

    BorderTerroir (07-19-2010)

  5. #4
    Join Date
    Dec 2008
    Location
    Selby, North Yorkshire
    Posts
    90
    Thanks
    28
    Thanked 2 Times in 2 Posts

    Default

    Sorry smrnsmile I didn't give you the full story.

    My first attempt was with <img class="domroll Pictures/Forms/LinkOverAboutUs.jpg"

    This did not work so I copied the Java script into my Pictures/Forms folder but this did not work either. I copied my rollover image into my website root folder and edited the HTML script, when this did not work I thought i would ask on the forum.

    I've made the ammendment you suggested but it still doesn't work.

    Any ideas?

  6. #5
    Join Date
    Dec 2008
    Location
    Selby, North Yorkshire
    Posts
    90
    Thanks
    28
    Thanked 2 Times in 2 Posts

    Default

    azoomer, Top Man!

    I never thought about case sensitivity.

    It works many thanks.
    http://www.furrytalesflyball.co.uk/TestPage.htm

    Please remind me how I hit the 'Resolved' button.

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
  •