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 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Feb 2008
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Unhappy Broken Rollover Images

    Hi Everyone,

    I have scoured the net looking for solutions and possible explanations why my rollover images could be broken. Hopefully someone can help. The URL is:

    http://liquidlovetrance.com
    http://liquidlovetrance.com/liquidstyle.css

    The navigation links beneath the header image are supposed to rollover and I wish I could give you more help in troubleshooting but I'm really not sure what my problem is.

    Thanks!
    Brian

  • #2
    Senior Coder twodayslate's Avatar
    Join Date
    Mar 2007
    Location
    VA
    Posts
    1,042
    Thanks
    67
    Thanked 39 Times in 39 Posts
    http://www.pageresource.com/jscript/jhover.htm

    I would use CSS. Have the image as a background.

    Also validate your page.
    twitter | Quality Hosting - $5.95/mo*
    Feel free to PM me!

  • Users who have thanked twodayslate for this post:

    brian.feister (02-11-2008)

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    I agree with twodayslate however the reason your code isn't working is because you messed up the javascript. You tried editing a function without knowing how it worked and you broke it.
    Change this
    Code:
    function MM_preloadImages(dreamstar_banner.png), (Whoarewe.png), (footer.png), (home.png), (what.png), (where.png), (when.png) { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }
    to this
    Code:
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • Users who have thanked _Aerospace_Eng_ for this post:

    brian.feister (02-11-2008)

  • #4
    New to the CF scene
    Join Date
    Feb 2008
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Thanks!

    Thanks for your help twodayslate and _Aerospace_Eng... I appreciate!

    Also, to clarify, the website is for a not-for-profit event that I'm in charge of.

  • #5
    New to the CF scene
    Join Date
    Feb 2008
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Hi there,

    I fixed the bug in the script, but unfortunately, there must be another problem because the rollover is still broken.


  •  

    Posting Permissions

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