From collectibles to cars, buy and sell all kinds of items on eBayWelcome! Sign in or register.
 Advanced Search

Reviews & Guides

Write a guide

How to Add a Simple Java Dropdown Style Link Menu

by: ns-technologies( 290Feedback score is 100 to 499) Top 1000 Reviewer
1 out of 2 people found this guide helpful.
Guide viewed: 3751 times Tags: scripts | java | dropdown | dropdown menu | dropdown style menu


Paste everything into a new webpage load it and you have an isntant dropdown menu.  Yea I know not to

impressive, but I was planning you putting it wherever you want, this is just an example!

Anyhow the comments section below should get you on your way to adding a cool dropdown menu style link

menu to your webpage.  Hope You Enjoy, NIck.


<HTML>
<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Beginning of JavaScript -

function surfto(form) {
  var myindex=form.dest.selectedIndex
  window.open(form.dest.options[myindex].value, target="_parent");
}

// - End of JavaScript - -->

</SCRIPT>
</HEAD>

<BODY>

<!-- Comments --!

script by nick simpson

||wholesalesonyps3 com||

1. Frames: If you have frames, change: window.open(form.dest.options[myindex].value,

target="_parent");
   to window.open(form.dest.options[myindex].value, target="FRAME_NAME");
   where FRAME_NAME is the name of the frame you want the new document to
   appear in.

2. In each of the options below, change: VALUE="http://stores.ebay.com/Last-Chance-eBooks"to the URL you want.
   e.g. <OPTION VALUE="http://ebay.com">

3. In each of the options, change the description.
   e.g. <OPTION VALUE="http://ebay.com/yourwebsite  My Web Site

4. In the first option below, notice the word SELECTED in the <OPTION> tag. This
   is the default location, if the user doesn't change anything. -->

<FORM NAME="myform">
  <SELECT NAME="dest" SIZE=1>
    <OPTION SELECTED VALUE="http://stores.ebay.com/Last-Chance-eBooks"> Description1
    <OPTION VALUE="http://stores.ebay.com/Last-Chance-eBooks"> Description 2
    <OPTION VALUE="http://stores.ebay.com/Last-Chance-eBooks"> Description 3
    <OPTION VALUE="http://stores.ebay.com/Last-Chance-eBooks"> Description 4
  </SELECT>
<INPUT TYPE="BUTTON" VALUE="GO NOW!" onClick="surfto(this.form)">
</FORM>

</BODY>
</HTML>


Guide ID: 10000000000821453Guide created: 03/26/06 (updated 10/28/07)

 
Was this guide helpful? Report this guide

Ready to share your knowledge with others? Write a guide



 


eBay Pulse | eBay Reviews | eBay Stores | Half.com | eBay Express | Reseller Marketplace | Austria | France | Germany | Italy | Spain | United Kingdom | Popular Searches
Kijiji | PayPal | ProStores | Apartments for Rent | Shopping.com | Skype | Tickets


About eBay | Announcements | Security Center | eBay Toolbar | Policies | Government Relations | Site Map | Help
Copyright © 1995-2008 eBay Inc. All Rights Reserved. Designated trademarks and brands are the property of their respective owners. Use of this Web site constitutes acceptance of the eBay User Agreement and Privacy Policy.
eBay official time