Navigation JavaScript Code Snippets

These snippets all deal with JavaScript Navigation snippets. They all help your visitors navigate around your site – either with menu lists, random links, etc.

Results via Envato Market

This is the third cycled page, main3.html This is the last page I have set up. You could have more if you wanted. You will now be sent back to…

Create your own hands-free web page slide show with ease. This script cycles any number of pages that you set up on a time delay basis. Absolutely a gem for any interested in providing a hands-free web site demonstration. The slideshow can repeat indefinitely, or finish at a ‘the end’ page. The left frame also allows for a quick jump to any particular page that you want.

At times you may need to launch certain links into a new window. The ‘target’ attribute is deprecated and is therefore not allowed when using XHTML with a strict doctype. Using this script, you will be able to keep your pages valid while also using the target attribute to open new windows.

Use this script to encode/decode URL parameters. It is fully compatible with UTF-8 encoding. Very useful when you want to transfer data using Ajax technology, or for other operations which involve URL parameter manipulation.

This script takes the current page location, breaks it up by the forwarding slash and returns a list of all directories, including the domain name. Each item is a hot link to the current directory.

A DHTML menu that allows the user to move it around, toggle visibility, and more. Great for listing news or step by step instructions.

Use this JavaScript to add a “Top of Page” link at the bottom of your Web page. The link will only be displayed if the contents of the page exceeds the size of the browser window, i.e. if the scrollbars appear.