PDA

View Full Version : how to disable smooth menu in IE?



lankeeyankee
06-29-2011, 04:03 PM
1) Script Title: Smooth Navigation Menu

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

3) Describe problem: Makes site slow to load in all versions of IE, works great in all other browsers. How can I disable the js version in all IE to make it degrade to regular css flyout menu(like if js is turned off in browser) but keep it with js for all other browsers?

lankeeyankee
06-30-2011, 01:12 AM
OK, I figured it out. To force all versions of IE to degrade to just a css flyout without javascript just use this code for the init section:

<!--[if !IE]>-->
<script type="text/javascript"><!--

ddsmoothmenu.init({
mainmenuid: "nav-cat", //menu DIV id
orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v"
classname: 'ddsmoothmenu', //class added to menu's outer DIV
//customtheme: ["#1c5a80", "#18374a"],
contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})
//--></script>
<!--<![endif]-->