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

    HELP with my script

    i am currently busy witha website but if i click on my home link my navigation code goes to the top of the page please if anyone can help i have tried everything and im sure it is just a small error that i can't find www.thesoftwareshop.co.za click the home link and the error will appear

  • #2
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    I don't think this is more of a JS problem, but an HTML instead.

    With that said, i'll start by saying that your structure is a mess. Transfer your <html> tag above the DTD, not otherwise.

    Highlighted is deprecated:
    Code:
    <SCRIPT language=javascript>
    <!--replace highlighted with type="text/javascript"-->
    This part is erroneous:
    Code:
    <body onLoad=<actinic:variable value="PreloadImages" name="OnLoadScript" /> "MM_preloadImages('NAVIGATION_r1_c2_f3.gif','NAVIGATION_r1_c2_f2.gif','NAVIGATION_r3_c1_f3.gif','NAVIGATION_r3_c1_f2.gif','NAVIGATION_r5_c2_f3.gif','NAVIGATION_r5_c2_f2.gif','NAVIGATION_r7_c2_f3.gif','NAVIGATION_r7_c2_f2.gif','NAVIGATION_r9_c2_f3.gif','NAVIGATION_r9_c2_f2.gif','NAVIGATION_r11_c1_f3.gif','NAVIGATION_r11_c1_f2.gif','NAVIGATION_r13_c1_f3.gif','NAVIGATION_r13_c1_f2.gif','NAVIGATION_r15_c1_f3.gif','NAVIGATION_r15_c1_f2.gif','NAVIGATION_r17_c1_f3.gif','NAVIGATION_r17_c1_f2.gif')">
    1.) I don't think that the value of your onload attribute is correct (80&#37; goes to not).
    2.) <body> has no value and name attributes.
    3.) You might want to use this modification:
    Code:
    <body onload= "MM_preloadImages('NAVIGATION_r1_c2_f3.gif','NAVIGATION_r1_c2_f2.gif','NAVIGATION_r3_c1_f3.gif','NAVIGATION_r3_c1_f2.gif','NAVIGATION_r5_c2_f3.gif','NAVIGATION_r5_c2_f2.gif','NAVIGATION_r7_c2_f3.gif','NAVIGATION_r7_c2_f2.gif','NAVIGATION_r9_c2_f3.gif','NAVIGATION_r9_c2_f2.gif','NAVIGATION_r11_c1_f3.gif','NAVIGATION_r11_c1_f2.gif','NAVIGATION_r13_c1_f3.gif','NAVIGATION_r13_c1_f2.gif','NAVIGATION_r15_c1_f3.gif','NAVIGATION_r15_c1_f2.gif','NAVIGATION_r17_c1_f3.gif','NAVIGATION_r17_c1_f2.gif')">
    P.S, fix your markup errors as well as your CSS errors.

    Hope it helps.
    Learn how to javascript at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph


  •  

    Posting Permissions

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