Page 1 of 1

JS / CSS vertical drop down menu - firefox JS console errors

Posted: Fri Jul 14, 2006 10:56 am
by batfastad
Hi guys

I've been starting to implement this script into a site...
http://www.dynamicdrive.com/dynamicinde ... nkcss2.htm

And it works well.

The way I'm doing it can be seen in the Demos bit - I'm using the 1st method Web Design link and not the list method diretly underneath.

Problem I'm getting with my script after some minor modifications, and the same happens with this, is that you get some firefox errors popping up in the FireFox javascript console

Quote:

Error: Error in parsing value for property 'top'. Declaration dropped.
Source File: http://www.dynamicdrive.com/dynamicinde ... nkcss2.htm
Line: 0

Error: Error in parsing value for property 'left'. Declaration dropped.
Source File: http://www.dynamicdrive.com/dynamicinde ... nkcss2.htm
Line: 0


The script works in both FF and IE (no script errors in IE!), but I'm a perfectionist when it comes to javascript and would like to know if there's a way to eliminate these errors.

If you look at this version of the above page...
http://www.dynamicdrive.com/dynamicinde ... s2_dev.htm

You get the entire source code and it seems to be something to do with the javascript functions.

Any ideas on how to solve this?

Thanks

Ben