Javascript: Static Top Menu Bar

ncthakur.itgo.com  Javascript: Static Top Menu Bar

         NEPAL     |     ARTICLES     |     KAVITAHARU    |     MANTHAN    |     COOL LINKS    |     GUESTBOOK    |    SEARCH

JAVASCRIPT
As I have learned as a beginner:
1. Opening New Window

2. Use of Alert, Prompt & Confirm

3. Document Write

4. Use of Function

5. Event Handlers (Image Rollover)

6. If and Else Statement

7. Predefined Object (Date)

8. Cut & Paste JavaScript

NEPAL
Overview of Nepal
Map & images
Nepalese websites

KAVITAHARU
View few of my poems
written in Nepali language

ARTICLES
Articles on
crime prevention
investigation
& crime control

COOL LINKS
Computer
Travel & Tour
Police World
Downloads
Personality Test
Nepal News
Crime & Police News
Nepali Music
Health
Horoscope
Monthly Poll
Other

ADD EMAIL
Search or add email to the search list.

GUESTBOOK
View to find out what other visitors have to say about this web site.

KURAKANI
Are you interested to chat? Go to Kurakani room.

FREE E-CARDS
Enormous free E-Cards of your choice. Send it to your friend and family members.

FREE SITE SUBMIT
Submit your web site to the major search engines here.

ABOUT ME
Click here to find out about me and view few of my photographs.

 

Cut and Paste JavaScript


Static Top Menu Bar (Look at the TOP for example)

To install this script, do the following 3 steps:

1) Add the following code inside the HEAD section of your page:
<style>
<!--
all.clsMenuItemNS{font: bold x-small Verdana; color: white; text-decoration: none;}
.clsMenuItemIE{text-decoration: none; font: bold xx-small Verdana; color: white; cursor: hand;}
A:hover {color: red;}
-->
</style>
2) Copy and paste the below code into your webpage, RIGHT AFTER the body tag (proceeding any other tags):


3) Upload the files "menu.js" and "menucontext.js" into your webpage directory (along with the above webpage, of course), and you're done!

menu.js

menucontext.js
The contents of the menu is stored inside "menucontext.js" To edit them, simply open up "menucontext.js" using any text editor, and change the links/text to your own. Save the modified file, and reupload it.

If you wish the menu to push right up against the edges of your browser screen, add the following code into the tag itself, like this:

<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">

BACK

Top

Home  | About Me  |  Nepal  |  Articles  | Kavitaharu  | Cool Links 
 Javascript  | Add Email  |  Guestbook