Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average.
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-26-2008, 09:30 AM   PM User | #1
chebs22
New to the CF scene

 
Join Date: Jun 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
chebs22 is an unknown quantity at this point
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
chebs22 is offline   Reply With Quote
Old 06-26-2008, 10:10 AM   PM User | #2
rangana
Senior Coder

 
rangana's Avatar
 
Join Date: Feb 2008
Location: Cebu City, Philippines
Posts: 1,752
Thanks: 65
Thanked 372 Times in 365 Posts
rangana will become famous soon enoughrangana will become famous soon enough
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% 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
rangana is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:11 PM.


Advertisement
Log in to turn off these ads.