Navigation Menu
Alphabetical Listing
Site Contents

Site FAQ
About JSS
JavaScript Forum
JavaScript Tutorial
Friends of JSS

Link to Us
JavaScript Help
Contribute a script
Technology Jobs

Become a Partner

Internet.commerce

Be a Commerce Partner














Internet.com

IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Developer Channel

FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

Great Sites

DocJavaScript.com
dhtml.com
The Freebie Directory
TheFreeSite.com

Browse Doc JS's Tips!


Hiermenus Central


Promotions

Free Announcements


Social Bookmark

General

This is a very nice animated dropdown menu. Highly customizable, using unobtrusive JavaScript and CSS. Easy to implement.


Demo Demo2 Demo3

Notes

To display the menu from bottom to top:
menu.bottomToTop = true;
To set CSS styles to the menu:
menu.menuCssClass = 'menuCssStyle';
menu.menuItemCssClass = 'menuItemCssStyle'
To display the menu without the animation:
menu.animationType = 0;

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: sclmenu.js


CSS

Paste this code into your external CSS file or in the <style> section within the HEAD section of your HTML document.


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


User Comments

Add a comment, suggestion, or correction
[For questions about usage, consult the Notes tab above or visit the JavaScript forum. Do not include more than two (2) lines of code in your comments. If you have suggestions or corrections, you can submit them to us.]

    
   
       
[optional]
 
[optional]

   

Comments feed Comment Feed RSS 2.0

9. From: Poyi
ActiveX Control
11/21/2008 14:25:05

Hi, I want to use this script but it keeps prompting the warning message about ActiveX in IE &. Any solution?

10. From: Lee (Admin)
12/02/2008 11:35:26

Without knowing the exact situation and the error message, it would ne hard to answer your question. Your question would be best answered over on the JavaScript forum. Thanks!

8. From: Riyan
11/08/2008 23:13:17

Wow..... very nice thanks

6. From: CLYDE
11/05/2008 18:48:00

when i put this is my document it dosnet work:

PLEASE DONT SEND ME TO THE FOURMS I CANT FIND ANYTHING THERE

7. From: Lee (Admin)
11/06/2008 12:04:53

Well, Clyde, as stated at the top of these comments, we don't provide that kind of help. That's why we recommend the forums. You don't "find" anything there, you post your problem and you will get help.

1. From: Joe
Errors in the scripts??
10/20/2008 15:04:04

There is something wrong with the scripts, can you fix it please? Thank you! BTW: Can your write (function(){ in a javasript? I've never seen that...

2. From: Lee (Admin)
10/31/2008 12:52:08

Well, you either need to tell me what is wrong, or post your question over on the JavaScript forum.

4. From: Ed
10/03/2008 16:43:24

I am trying to make it work in fames. My header has the menu and I want it to open the link in a different frame. Secondly, the menu is cut off once it reaches the next frame.

5. From: Lee (Admin)
11/06/2008 11:14:50

Your question is beyond the scope of these comments. You will need to post it over on the JavaScript forum. Thanks!

3. From: Bob
target
10/01/2008 17:55:17

Is it possible to specify a target (like target=_blank) for the links?


Do you write JavaScripts?
If you do, why not submit them to us?
We'll give you credit and a link back to your Web site.