Results 1 to 2 of 2

Thread: how to disable smooth menu in IE?

  1. #1
    Join Date
    Feb 2011
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default how to disable smooth menu in IE?

    1) Script Title: Smooth Navigation Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...smoothmenu.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?

  2. #2
    Join Date
    Feb 2011
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    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]-->

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •