January 16, 201214 yr Hey all, Hopefully this isnt too much of a problem, but I'm struggling to fix it. I want to use this jquery navigation on a site im working on: http://flowplayer.org/tools/demos/scrollable/site-navigation.html and while I can get it work on a basic page, when I start to put it within divs ive already styled, it stops working. you can see examples here: working: http://www.georgianwines.ie/scroller.php not working: http://www.georgianwines.ie/grape_var_test.php so im pretty certain its my existing CSS stopping the animation from executing, but im a bit stumped. any ideas guys? much appreciated! cheers
January 16, 201214 yr Author ok well it seems i have some conflicting javascript. im using a dropdownmenu script, and when i remove it from the page, it works. :-/ very strange. this bit: <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 Edited January 16, 201214 yr by stjohn
January 17, 201214 yr You only need one of the functions above remove the 2nd one <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"] }) </script>
Create an account or sign in to comment