PDA

View Full Version : conflicting scripts. dropdownmenu and scrolling nav



stjohn
01-16-2012, 10:37 PM
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:



<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

fobos
01-17-2012, 03:09 PM
did you change anything on the script since you are using it twice? That would be the only thing i can think of.