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.or...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.georgianw...ie/scroller.php
not working:
http://www.georgianw...pe_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
Page 1 of 1
jQuery scrollable navigation wont work within my existing DIVS
#2
Posted 16 January 2012 - 10:14 PM
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:
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
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
This post has been edited by stjohn: 16 January 2012 - 10:43 PM
#3
Posted 17 January 2012 - 12:01 AM
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>
Share this topic:
Page 1 of 1
Help
















