1. Home
  2. Computing & Technology
  3. JavaScript

Hover Menu

3. Get the Stylesheet

clr gif
Join the Discussion

Questions? Comments?

For the script to work we also need to add some stylesheet commands to our page. Here is what you need.

Copy the stylesheet code and save it to an external file. I called mine hovmenu.css.

We can now link both the Javascript and the stylesheet into the head of our web page using the following code:

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

All that remains now is to create the hover menu itself.

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.