1. Home
  2. Computing & Technology
  3. JavaScript

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
Explore JavaScript
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. JavaScript

©2009 About.com, a part of The New York Times Company.

All rights reserved.