Submit your widget

Sliding JavaScript Menu Highlight

Created 13 years ago   Views 8975   downloads 1819    Author n/a
Sliding JavaScript Menu Highlight
View DemoDownload
Share |

This sliding hover effect script is an easy method to add some flavor to your navigation. Using the CSS you can easily customize the navigation to fit your “look and feel”. The markup for the script is very simple as below.

<div class="menu">
<ul id="menu">
<li><a href="#">JavaScript</a></li>
<li><a href="#">Graphic Design</a></li>
<li><a href="#">HTML</a></li>
<li value="1"><a href="#">User Interface</a></li>
<li><a href="#">CSS</a></li>
<div id="slide"></div>


In the above code the default menu selection is identified by the value=”1″ attribute on the appropriate list item. To initialize the script simply call the function as below.



This script has been tested in all major browsers