The Navigation Strikes Back

They have: 344 posts

Joined: Jun 2002

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! Wink

Nav Page

Could it be that I have called my page a .shtml?

disaster-master's picture

She has: 2,154 posts

Joined: May 2001

What kind of errors are you getting?

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

dk01's picture

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's picture

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!

Abhishek Reddy's picture

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. Wink

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

Also — though I doubt this'll help much — try commenting out your... uhh, comment. Wink

Change

document.write(TodayMonth + " " + TodayDay + ", " + TodayYear);
-->
</script>
'
to
document.write(TodayMonth + " " + TodayDay + ", " + TodayYear);
//-->
</script>
'

Good JS habits, thassall. Smiling

They have: 344 posts

Joined: Jun 2002

Quote: Originally posted by Abhishek Reddy
Also — though I doubt this'll help much — try commenting out your... uhh, comment. Wink

Change

document.write(TodayMonth + " " + TodayDay + ", " + TodayYear);
-->
</script>
'
to
document.write(TodayMonth + " " + TodayDay + ", " + TodayYear);
//-->
</script>
'

Good JS habits, thassall. Smiling

Can I just ask you what that does? Like Busy's quote says...involve me and I learn...

Busy's picture

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.