简体   繁体   中英

Javascript/Css navigation not showing on jquery document ready in ie only

I am using Dynamic Drives ddsmoothmenu script to display our site's navigation. To prevent the menu showing for an instant while the page loads, I've added a show() function on document ready. This works great in all browsers except ie. Can someone please have a look at http://www.idataresearch.com and let me know if anything jumps out. Thank you. PS I've taken over for a failed developer, so please excuse the mess.

To avoid error which appears in 945 line, try to change your if condition:

from:

if ( allowReverse && !document.layers ) { ... }

to:

if ( typeof allowReverse == 'undefined' && allowReverse != false && !document.layers ) { ... }

And it can cause other function/script failure

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM