Results 1 to 2 of 2

Thread: conflicting scripts. dropdownmenu and scrolling nav

  1. #1
    Join Date
    Jan 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default conflicting scripts. dropdownmenu and scrolling nav

    Hi all, im a newbie, but I have lurked here for many a year!
    I recently ran into an issue using one of the scripts i found on here.

    i have a working dropdown menu with a little script that is stopping another from working.

    here are some examples:
    working (the small navigation in the content area):
    http://www.georgianwines.ie/scroller.php

    not working:
    http://www.georgianwines.ie/grape_var_test.php

    ive narrowed it down to this section of code causing the problem:

    Code:
    <script type="text/javascript"> 
    
    ddsmoothmenu.init({
    	mainmenuid: "smoothmenu1", //menu DIV id
    	orientation: 'h', //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"]
    })
    
    ddsmoothmenu.init({
    	mainmenuid: "smoothmenu2", //Menu DIV id
    	orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v"
    	classname: 'ddsmoothmenu-v', //class added to menu's outer DIV
    	//customtheme: ["#804000", "#482400"],
    	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
    })
    
    </script>
    But this basically allows the dropdownmenu to function or not, so removing it isnt the best of options.
    As im not really a coder, so im pretty stumped to say the least. Can anyone offer any help on this. Id be much appreciated.
    Thanks Alot.
    r

  2. #2
    Join Date
    Oct 2008
    Posts
    60
    Thanks
    2
    Thanked 7 Times in 7 Posts

    Default

    did you change anything on the script since you are using it twice? That would be the only thing i can think of.

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
  •