PDA

View Full Version : AnyLink CSS Vertical Menu - FireFox JS Errors



batfastad
08-25-2006, 11:55 AM
1) Script Title:

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex1/anylinkcss2.htm

3) Describe problem:
Hi guys

I've started trying to implement the AnyLink CSS Vertical Menu into a test site and it works great in IE6

But in FireFox I'm getting an annoying JavaScript error in the JS Console
It still works fine but I'm a perfectionist and I want to try and get rid of this error.

The error happens also on the DynamicDrive page for the script.
http://www.dynamicdrive.com/dynamicindex1/anylinkcss2.htm

The 2 errors I get each time are:

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

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

Any ideas on how to solve this?

Thanks

Ben

jscheuer1
08-25-2006, 01:53 PM
That has been like that for a while. Find this line in function showhide(obj, e, visible, hidden) near the top of the script and add the red part:


dropmenuobj.style.left=dropmenuobj.style.top=-500+'px'

batfastad
08-25-2006, 03:42 PM
Bingo!

Excellent stuff. Thanks for your help!!!


Ben