FREE.JAVASCRIPT.MENU

HOME FORUM NEW! DOWNLOAD TUTORIAL SAMPLES LICENSE Advanced JSTable

LATEST EVENTS

15 January, 2007
Discuss our scripts and get support in new Forum
31 October, 2006
New release of Advanced JSTABLE 0.1
01 July, 2005
New release of Advanced JSMenu 0.3.0: tab control support added
25 June, 2005
New release of Advanced JSMenu 0.2.1: tree control support added
11 May, 2005
New FREE.JAVASCRIPT.INFO has been launched

NEW CSS FILES

Rate Our Program

Excellent!
Very Good
Good
Fair
Poor

FREE ADVANCED JSMENU

Description

Our free javascript menu is a cool script that adds a drop down menu, context menu, tree or tab controls to your page. It's free, easy to use and extremely hight customizable with CSS. Each menu is implemented as plain HTML on the page, making the menu contents search engine friendly and potentially much easier to deploy and customize than menus where the contents are stored inside the script. And to top things off, the drop down menu behaves intelligently in that if it's too close to the four corners of the browser window, it will reposition itself to avoid being obscured partly.
If your site is dynamic, this may be an easier script to deploy across the entire site.

Easy to use

  • Download menu.js file from our site
  • Download CSS file from our site or create one
  • Add the following string to HTML body: <SCRIPT SRC="menu.js" LANGUAGE="JavaScript"></SCRIPT><NOSCRIPT><a href="http://free-javascript.all-faqs.info/">Advanced JSMenu 0.3.1</a> </NOSCRIPT>
  • Add link to CSS file: <link rel="stylesheet" type="text/css" href="your.css"> or add STYLE tag to HTML header
  • Add onLoad event to BODY tag: <BODY onLoad="initMenu();">
  • Add a visible link back to http://free-javascript.all-faqs.info
  • Now you can create menu just adding simple code with MENU tags in your HTML

Customizable with CSS





Eearch engines friendly

Each menu is implemented as plain HTML on the page, making the menu contents search engine friendly and potentially much easier to deploy and customize than menus where the contents are stored inside the script.

Widespread Compatibility

The ideal dhtml menu must be able to maintain its appearance, functionality and performance in any browser. To this end, we have tested our menu on a variety of browsers and platforms. The list below are examples of browsers that Advanced JSMenu is compatible with:
  • IE4 and above
  • Netscape 4.05 and above
  • Opera 6 and above
  • Mozilla
  • Firefox
  • Safari
  • Galeon
  • Konqueror

Free

Our Solutions will grant free licenses to all users. The only free license requirement is that there must be a visible link back to http://free-javascript.all-faqs.info on all pages that use the menu.

License

All our scripts will grant free licenses to all users. The only free license requirement is that there must be a visible link back to http://free-javascript.all-faqs.info on all pages that use our scripts and you have to insert the following code to you page.

<SCRIPT SRC="menu.js" LANGUAGE="JavaScript">
/***********************************************************************
* This notice MUST stay intact for legal use
*
* Advanced JSMenu 0.3.1 (GPL).
* Copyright (C) 2004-2005 FREE-JAVASCRIPT.ALL-FAQS.INFO All Rights Reserved.
* http://free-javascript.all-faqs.info/
************************************************************************/
</SCRIPT>
<NOSCRIPT>
<!-- This notice MUST stay intact for legal use -->
<a href="http://free-javascript.all-faqs.info/">Advanced JSMenu 0.3.1</a>
<!-- ------------------------------------------ -->
</NOSCRIPT>


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

How to use

  • Download menu.js file from our site
  • Download CSS file from our site or create one
  • Add the following string to HTML header: <SCRIPT SRC="menu.js" LANGUAGE="JavaScript"></SCRIPT><NOSCRIPT><a href="http://free-javascript.all-faqs.info/">Advanced JSMenu 0.3.1</a></NOSCRIPT>
  • Add link to CSS file: <link rel="stylesheet" type="text/css" href="your.css"> or add STYLE tag to HTML header:

    <STYLE>
      MENU {border: 1px solid #555555; font-size: 8pt; font-weight: 600; font-family: Arial; padding: 2px 2px 2px 2px; vertical-align: middle; position: absolute; left: 0px; top: 0px; background-color: #5292CC; display: block; margin: 0px 0px 0px 0px; filter:revealTrans(transition=12,duration=0.5) progid:DXImageTransform.Microsoft.Shadow(direction=135,color=#7b7b7b,strength=3);}
      MENU A {text-decoration: none; color: white;}
      #MAIN_MENU {border-style: none !important; display: block !important; left: 180px; top: 155px; background-color: #5292CC; color: white; filter:progid:DXImageTransform.Microsoft.Shadow(direction=90,color=#5292CC,strength=0; );}
      MENU SPAN {background-color: transparent; padding: 2px 2px 2px 2px; border: 1px none white; vertical-align: middle; cursor: pointer; display: inline ! important;}
      MENU DIV {background-color: transparent; padding: 2px 2px 2px 2px; border: 1px none white; vertical-align: middle; cursor: pointer; display: block ! important;}
      .HOVER {background-color: #2C75DA; padding: 1px 1px 1px 1px; border: 1px solid white; vertical-align: middle; cursor: pointer;}
      .EXPANDABLE {padding: 2px 2px 2px 2px; border: 1px none white; vertical-align: middle; cursor: pointer; background-image: url('img/drop-down.gif'); background-repeat : no-repeat; background-position : right center;}
      .EXPANDABLEHOVER {background-color: #2C75DA; padding: 1px 1px 1px 1px; border: 1px solid white; vertical-align: middle; cursor: pointer; background-image: url('img/collapse.gif'); background-repeat : no-repeat; background-position : right center;}
    </STYLE>

  • Add onLoad event to BODY tag: <BODY onLoad="initMenu();">
  • Add a visible link back to http://free-javascript.all-faqs.info
  • Now you can create menu just adding simple code with MENU tags in your HTML:

    <MENU id="MAIN_MENU" sound="/sounds/bip.wav">
      <SPAN><a href="home.html">HOME</a></SPAN>
      <SPAN menu="PRODUCTS_MENU">PRODUCTS</SPAN>
      <SPAN><a href="search.html">SEARCH</a></SPAN>
      <SPAN><a href="help.html">HELP</a></SPAN>
    </MENU>
    <MENU id="PRODUCTS_MENU" sound="/sounds/bip.wav">
      <DIV><a href="product1.html">PRODUCT 1</a></DIV>
      <DIV><a href="product2.html">PRODUCT 2</a></DIV>
    </MENU>


Details


Tag <MENU>

Attributes: sound, open, close

sound: path to sound file which play on all menu items rollover
open: possible values (onclick). If not defined submenu opens on mouseover event.
   onclick - submenu opens only on menu item click
close: possible values (onclick, onclickout). If not defined submenu closes on mouseout event.
   onclick - submenu closes only on menu item click
   onclickout - submenu closes on any menu item click

Tip: use <MENU> to create drop down menus which opens on mouseover and closes on mouseout
Tip: use <MENU open="onclick"> to create drop down menus and hints which opens on click and closes on mouseout
Tip: use <MENU open="onclick" close="onclick"> to create side menus and trees
Tip: use <MENU open="onclick" close="onclickout"> to create tab controls and side menus


Tags <DIV>,<SPAN>

Attributes: menu, sound, targetID, targetAttribute, targetValue

menu: ID of submenu
sound: path to sound file which play on menu item rollover. Overwright the value of MENU attribute.
targetID, targetAttribute, targetValue: set attribute defined in targetAttribute of the element with ID defined in targetID to value defined in targetValue.

Tip: use <SPAN> for horizontal menus, and <DIV> for vertical ones
Tip: using targetID, targetAttribute, targetValue will make your menus more flexible. For example use <DIV open="onclick" targetID="ScriptID" targetAttribute="src" targetValue="someJavaScript.js"> to load and execute someJavaScript.js file on menu item click. This could help you to create menus with comlex behaviour.

Samples

All samples including tab controls, trees etc. was made using 'menu.js' only, without any additional scripting and customised with CSS! Click on screenshots to see working samples.

Drop down memus

Click to view working sample
Click to view working sample
Click to view working sample
Click to view working sample
Click to view working sample

Tab controls

Click to view working sample

Click to view working sample

Side memus

Click to view working sample

Trees

Click to view working sample

Hints and context memus

Click to view working sample

Gallery

In this section we are publishing screenshots and links to your best menus based on our solutions. Feel free creating cool drop down menus, trees ect. and customising it with CSS! Add your URL using web form. Your link will appear on our website only after webmaster approval.

Your mane:
Screenshot URL:
Screenshot width:
Screenshot heigth:
Page with menu URL:

Downloads

Pictures
Gradients
Textures
Arrows
Click to downloadAll images in ZIP file
CSS
Drop down menu
Download CSS file onlyApple style
Download CSS file onlyWin XP
Download CSS file onlyBlue gradient
Download CSS file onlyOffice
Download CSS file onlyHorizontal
Side menu
Download CSS file onlySimple
Tab controls
Download CSS file onlyCool green tab
Download CSS file onlyFlat blue
Trees
Download CSS file onlyBasic
Other
Download CSS file onlyHints
All CSS files
Source
menu.js v.0.3
Last release of menu.js
All in ZIP file