
Originally Posted by
chinchilla2
FF parsing may be the problem though. I did several checks during modifying and checking the page layout and it's not only popping up the parsing error for "top" but also for "left", which would indicated this is where the problem is. I get no resulting error indication in IE. These are not a 1 time per page error either. I can clear the console, cache, close and reopen the browser, force a refresh and I get those errors for every time I mouse over the links. For example if I hover over the link twice, then I get 2 listings for each error.
Oddly enough, this happens on the demo page as well but, does not effect the positioning of the drop downs so, I would think it is not a problem. Additionally the line number given for the error is 0. This usually means that the declaration is being applied via the use of the javascript setTimeout() method. Elements set for inclusion in this method often cannot be found due to syntax errors in the coding or neglecting to define them in a wide enough scope for the setTimeout() method to understand what is being referred to. Still, since it occurs on the demo page and creates no problem there, I would think the chances are very high that it is a red herring and that some other aspect of your page's design is responsible for the misalignment issue you are experiencing.
Furthermore, the only setTimeout() method employed by the script is used for hiding the drop downs, not for displaying them.
One more tidbit on this, if you find this line in the script:
Code:
dropmenuobj.style.left=dropmenuobj.style.top=-500
and change it to this:
Code:
dropmenuobj.style.left=dropmenuobj.style.top=-500+'px'
The error will go away, so give that a shot and see what happens. I'd wager it will stop the error, if it fixes your alignment problem too, great! But, I doubt that it will.
Bookmarks