Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged navigation



« Prev 1 Next »
  1. FAV

    Set links with href to current page as active (or if in subnav set their parent to active)

    look through the list items in your main nav and based on href of anchor tags this will set the top level link to have an 'active' class.
    JavaScript 11 views posted 8 years ago by iammikecohen
  2. FAV

    Better Javascript Keyboard Navigation

    This fixes the downside of the original javascript keyboard navigation snippet I posted here so that if you manually scroll past to a new chapter mark it will register that and keep track of your location better. The old code would ignore any scroll...
    JavaScript saved by 4 people 8 views posted 9 years ago by FatFolderDesigner
  3. FAV

    Javascript Keyboard Navigation

    Starting with GoogleTV in mind I made a script to help navigate a page key basic key inputs, in this case I'm using the left and right arrows to jump between the H1 tags on a page, although the modifications to make it do other things would be very s...
    JavaScript 6 views posted 9 years ago by FatFolderDesigner
  4. FAV

    Horizontal Mouse Wheel Scrolling

    JavaScript 10 views posted 9 years ago by andrewkhunn
  5. FAV

    Ajax Success JavaScript - K2 Options

    JavaScript 4 views posted 10 years ago by blumenberg
  6. FAV

    Accessible Dropdown Navigation (Handling Focus with jQuery)

    Dropdown navigation is fairly inaccessible as it depends on hover events in 99.9% of cases. Tabbing through the navigation with the keyboard fails to reveal the dropdowns leaving those navigation items virtually inaccessible. Worse, each of the hidde...
    JavaScript 16 views posted 10 years ago by chrisdpratt
  7. FAV

    Navigation: This link change

    JavaScript 3 views posted 10 years ago by xxc
  8. FAV

    jQuery Advanced Menu Nav

    Standard list markup, adds button to expand a super dropdown next to the link.
    JavaScript saved by 3 people 8 views posted 10 years ago by davebowker
  9. FAV

    jQuery drop-down navigation

    Simply jQuery script for CSS drop-down menu
    JavaScript saved by 21 people 20 views posted 11 years ago by bcalloway
  10. FAV

    jQuery Accordian Menu

    You'll need to download the latest version of jQuery for this to work, as it is linked in the tag. CSS/XHTML included.
    JavaScript saved by 30 people 26 views posted 11 years ago by dmosher
  11. FAV

    jQuery AJAX navigation

    JavaScript saved by 9 people 16 views posted 11 years ago by iTony
  12. FAV

    jQuery Fade In Sequence

    I'm sure i can clean this up quite a bit, but it works for the moment. This function looks to see if you are on a selected page. If you are it hides the navigation, then loops through and shows each li one after the other. So they don't all fade i...
    JavaScript 8 views posted 11 years ago by 1man
  13. FAV

    Suckerfish Drop-Down Menus, jQuery-style

    Haven't had a chance to use this but it looks very promising.
    JavaScript saved by 42 people 34 views posted 13 years ago by aznprncritic
  14. FAV

    Basic Navigation Script - setNav

    JavaScript saved by 3 people 5 views posted 13 years ago by masaya
  15. FAV

    Show / Hide an unordered list

    This script allows you to show and hide a at the click of a button. See Show / Hide HTML for Markup.
    JavaScript saved by 1 person 7 views posted 13 years ago by 1man
« Prev 1 Next »