1. Tech

Your suggestion is on its way!

An email with a link to:

http://javascript.about.com/library/blsmenu1.htm

was emailed to:

Thanks for sharing About.com with others!

Sliding Menu

2. Obtain the Script

clr gif
Join the Discussion

Questions? Comments?

More of this Feature

Introduction Make Your Menu

To add a sliding menu to your web page you first need to select the code from the text box below (there is a highlight all button beneath it to make this easier) and copy it into a file called slideh.js.

You also need to obtain the stylesheet code by selecting the code from the text box below and copy it into a file called slide.css.

The next step is to link these two files into the head of your page using the following code:

<script type="text/javascript" src="slideh.js">
</script>
<link rel="stylesheet" href="slide.css" type="text/css" />

Now all that remains is to create your menu.

Introduction | The Script | Make Your Menu
See More About
  • sliding menus
  • javascript navigation
  • unobtrusive navigation
Related Video
Add Menu Buttons in iDVD
Explore JavaScript
By Category
  1. About.com
  2. Tech
  3. JavaScript

©2016 About.com. All rights reserved.