By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,822 Members | 1,053 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,822 IT Pros & Developers. It's quick & easy.

Trouble with menu

P: 1
Hi,

I'm having some trouble with a java script on my page

http://www.multiseals.com.sg/

I'm using IE 7 and there should be 2 drop down menus that appear when the "ABOUT US" and "PRODUCTS" buttons on the top navigation bar are moused over.

When the page is loaded IE also tells me that there are errors on the page. It says that there are objects unexpected and my menus are undefined.

The script for the menus are actually kept on a seperate file: www.multiseals.com.sg/dd.js

They seem in order though and I'm having the same problem on every page in my site because the top navigation bar appears in all of them..

Any help would be greatly appreciated.

Thanks.
Feb 23 '07 #1
Share this Question
Share on Google+
1 Reply

acoder
Expert Mod 15k+
P: 16,027
Welcome to The Scripts.

In your javascript file, the line:
Expand|Select|Wrap|Line Numbers
  1. menu1[2]='&nbsp;&nbsp;<a href="about-md.html" class="navi">MD's Message</a><br>'
is incorrect because you have a single quote within single quotes so you have to escape it:
Expand|Select|Wrap|Line Numbers
  1. menu1[2]='&nbsp;&nbsp;<a href="about-md.html" class="navi">MD\'s Message</a><br>'
Feb 23 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.