Important alert: (current site time 7/15/2013 1:17:24 PM EDT)
 

VB icon

A Simple Pull-down Menu

Email
Submitted on: 8/11/2000 12:47:56 PM
By: John Oyston  
Level: Beginner
User Rating: By 7 Users
Compatibility: JavaScript
Views: 61090
(About the author)
 
     You can make it easier on your visitors to find their way around your site. I highly suggest using the extremely popular and extremely useful menu list. It seems every good site has one.... So, put one on your site!
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
				
'**************************************
' Name: A Simple Pull-down Menu
' Description:You can make it easier on your visitors to find their way around your site. I highly suggest using the extremely popular and extremely useful menu list. It seems every good site has one.... So, put one on your site!
' By: John Oyston
'
'This code is copyrighted and has' limited warranties.Please see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=1923&lngWId=14'for details.'**************************************

<HTML>
<HEAD>
<TITLE>Simple Menu</TITLE>
<META NAME="description" CONTENT="You can make it easier on your visitors to find their way around your site with the menu list. It seems every good site has one.... So, put one on your site! If you use this script, please leave a link to our site in the pulldown menu!">
<SCRIPT LANGUAGE="JavaScript">
<!--Alex Tu boudha1@hotmail.com -->
<!-- Web Site: http://www.geocities.com/MadisonAvenue/4368 -->
<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.com -->
<!-- Begin
function formHandler(){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
// End -->
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR=aqua>
<FONT FACE=ARIAL COLOR=navy>
<CENTER><H1>Simple Menu</H1></CENTER>
<p>
<!--Intro text-->
(From <A HREF="http://www.javascriptsource.com">The JavaScript Source</A>)<P>
You can make it easier on your visitors to find their way around your site. I highly suggest using the extremely popular and extremely useful menu list. It seems every good site has one.... So, put one on your site! If you use this script, please leave a link to the JavaScript Source in the pulldown menu!
</FONT>
<HR><P>
<!--script-->
<!-- Demonstration --><CENTER>
<FORM name = "form">
<SELECT NAME="site" SIZE=1 onChange ="formHandler()">
<OPTION VALUE="">Go to....
<OPTION VALUE="http://www.yahoo.com">Yahoo
<OPTION VALUE="http://www.altavista.digital.com">Altavista
<OPTION VALUE="http://www.hotbot.com">HotBot
<OPTION VALUE="http://www.lycos.com">Lycos
<OPTION VALUE="http://www.javascriptsource.com">The JavaScript Source
</SELECT></FORM>
</CENTER>
<HR>
<CENTER>
<FONT FACE=ARIAL COLOR=navy SIZE=4>
<A HREF="home.htm">Return to JavaScript Page</A>
<H5>John Oyston, (oyston@oyston.com), July 1998</H5></FONT></CENTER>
<P>
<P>
<BR>
<P></center></body></html>


Other 25 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
4/22/2001 5:08:38 AMkitcherie

how to make that when click the
(If this comment was disrespectful, please report it.)

 
1/22/2002 1:41:48 PMAnders

hi this script was really good!
i've just strted java and i'm not so good.
how do you use openmessagewindow in your menu?
i would want to learn how to make a menu like yours and have new windows popping up when you press go
(If this comment was disrespectful, please report it.)

 
6/21/2002 9:45:15 PMChris Hurn

hun dun curry

(If this comment was disrespectful, please report it.)

 
7/19/2006 5:44:36 PMm0rg4n

Simple & effective... 5 stars for you...
(If this comment was disrespectful, please report it.)

 
6/24/2008 10:18:56 PMthomm

this code is great its exactly what i needed to make my site a little more interesting =) better than the little buttons i had
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.