Jump to content

JavaScript-generated links [solved]


Recommended Posts

I've got a web site that has a navigation menu on every page, so I use a JavaScript function to generate the menu using document.write statements. The pages display perfectly when viewed from IE, but when I look at the site in Mozilla or Konqueror on my Mandriva box they appear as underlined--but unclickable!--text. Anybody seen this behavior before?

 

Thanks,

Sam

 

 

[moved from Software by spinynorman]

Edited by javaguy
Link to comment
Share on other sites

Probably a little syntax error which IE ignores (or makes some assumption) whereas Firefox chokes.

I suggest you edit the file to turn the document.write into an alert so you can carefully check the link text. My bet is mismatching quotes.

Link to comment
Share on other sites

You're right, it's not mismatched quotes. It's actually the main content div which is covering up the menu links. It's transparent but it's like a pane of glass on top of your links, so you can't click on them. Make the background of the div red to see what I mean.

Just rearrange your layout so the div isn't covering up your menu, it's nothing to do with the javascript. Although I don't like javascript menus anyway because you never know whether the browser will have javascript turned on or not.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...