how to create a javascript jump menu

Mobile
feeds
Welcome Login | Register

how to create a javascript jump menu
Reply Your Comments:
Click this button if you are interested in replying to this topic and leave your comments
Sent To Friend
CLick this button if you want to send this page to a friend.
Subsribe To Rss Feeds
Subscribe to RSS
CLick this button if you want to subscribe to this RSS Feed. You can use your browsers feeds burners if you have mozilla or internet explorer 7 or higher and keep up with updates.
  Forums Index
      » Javascipt Forums
        » » how to create a javascript jump menu
how to create a javascript jump menu
Post Description: how to create a javascript jump menu Javascipt
Post Tags:
This Post Has Been Viewed 11 Times Since Tue Jun 23, 2009 6:07 pm Author hostman with 0 replies
how to create a javascript jump menu
Advertise On This Page




creating a jumpmenu using javasript is simple, if you want to make a jump menu i will show you how.

if you are a newby and dont know what a jump menu is, a jumpmenu is simple a menu within a form that as soon as you select the option in the drop down menu, it will automatically take you to the designated url.

for example, lets say i have a form and i have two option,

1. wallpaperama.com
2. webune.com

so lets say that as soon as the user select either webune.com or wallpaperama.com, it will automatically take them to that site. so for this tutorial, i am using a windows xp computer, so i will be using windows notepad. these are that steps of making a jump menu using javascript:

1. open a blank notepad and copy and paste the following code:

<h1>Jump Menu Example</h1>
<hr>
<script type="text/javascript">
<!--
function v3_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<form name="form" id="form">
<select name="jumpMenu" id="jumpMenu" onChange="v3_jumpMenu('parent',this,0)">
<option value="">Select One Choice</option>
<option value="http://www.wallpaperama.com">wallpaperama</option>
<option value="http://www.webune.com">webune</option>
</select>
</form>
<hr>
If you liked this script, check out more scripts for your website at these forums:<br>
<br>
<br>
<a href="http://www.wallpaperama.com">http://www.wallpaperama.com</a> | <a href="http://www.webune.com">http://www.webune.com</a>


2. now save it as jumpmenu.html

3. open jumpmenu.html with your browser and see it in action

let me know if anything doesnt work so i can correct it

thanks


Leave Your Comments

Your Name
Your Email Address (Will Not Be Published)
Notify Me When Someone Replies to this Page
(An email will be sent to you when someone replies to your comments)
Your Comments
Include A Picture with your comments
Share
| More
Share this page by putting this URL in your comments to other websites like myspace, Facebook, Twitter friendster, Hi5, Groups, Boards, Forum or others. Just Copy and Paste this Code
URL:
To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it.
Embed:
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums
BBCODE:
Subscribe Feeds
Webmasters - Exchange Links With Us. Add related websites to this topic
Add Link:
Links Related to : how to create a javascript jump menu

Comments and replies About how to create a javascript jump menu
(0) Comments