Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

jQuery scrollable navigation

Featured Replies

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

  • 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 by stjohn

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.