The Navigation Strikes Back
Hi guys!
I am back again with my nav problems! Well to cut a long story short. The problem seems to be on mouseover of the nav. This is just a test page I did and I can change the nav back to my normal nav if this doesn't work but I just wanted to test it.
Anyway. When mousing over the nav, I seem to get millions of errors and I cannot understand the code to understand why...
This is the page but beware the errors!
Could it be that I have called my page a .shtml?
disaster-master posted this at 13:58 — 30th December 2002.
She has: 2,154 posts
Joined: May 2001
What kind of errors are you getting?
Timewell posted this at 14:19 — 30th December 2002.
They have: 344 posts
Joined: Jun 2002
Just mouse over the nav.
First before the page had loaded I got:
A Runtime Error has occured. Do you wish to Debug? Line: 80
I then get loads on mouseover, saying:
A Runtime Error has occured. Do you wish to Debug? Line: xyz
no1golfpro.co.uk - High quality golf equipment at competitive prices.
dk01 posted this at 18:25 — 30th December 2002.
He has: 516 posts
Joined: Mar 2002
Errors I got:
Line: 81
Char: 3
Error: 'Menu' is undefined.
Line: 285
Char: 1
Error: Object Expected
Looks like a poorly written js menu from DW. To long and modular to debug by just looking at it. You might consider deleting it and re-inserting.
-dk
Megan posted this at 14:51 — 2nd January 2003.
She has: 11,421 posts
Joined: Jun 1999
Is this one of those dynamic fly-out menus? Didn't we try to talk you out of that before? Or was that someone else?
Anywat, I'll move this over to Web Authoring in the hopes that one of the Javascript experts can pick it up there. These menu scripts do tend to be very complicated and difficult to debug, so good luck!
Megan
Connect with us on Facebook!
Abhishek Reddy posted this at 15:11 — 2nd January 2003.
He has: 3,348 posts
Joined: Jul 2001
After a brief look through the code, I've come to think you might be missing a chunk of script somewhere. Most likely you need to include a .js file DW might've created.
Are you sure you've got all the necessary files sourced/linked/included? To check, does DW have any instructions or help on this?
PS: your page takes eons to load (56k). You've resized your images with HTML to make the thumbnails. The images look smaller, but users still have to download the whole big file. Kinda defeats the purpose of thumbnailing.
Abhishek Reddy posted this at 16:22 — 2nd January 2003.
He has: 3,348 posts
Joined: Jul 2001
Also — though I doubt this'll help much — try commenting out your... uhh, comment.
Change
document.write(TodayMonth + " " + TodayDay + ", " + TodayYear);
-->
</script>
to
document.write(TodayMonth + " " + TodayDay + ", " + TodayYear);
//-->
</script>
Good JS habits, thassall.
Timewell posted this at 21:33 — 2nd January 2003.
They have: 344 posts
Joined: Jun 2002
Can I just ask you what that does? Like Busy's quote says...involve me and I learn...
no1golfpro.co.uk - High quality golf equipment at competitive prices.
Busy posted this at 21:56 — 2nd January 2003.
He has: 6,151 posts
Joined: May 2001
a html comment tag is -->
a javascript comment tag is //
so we need to combine them //--> so both are supported otherwise the javascript could think the -- or > is part of the code
You don't really need to use the comment tags nowadays but as Abhishek points out it is good coding practice, so use them
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.