26 Apr 2011

Drop Down Menu

First, copy this Javascript and paste it exactly as is into the <HEAD> section of your document:

<SCRIPT TYPE="text/javascript"> <!-- function dropdown(mySel) { var myWin, myVal; myVal = mySel.options[mySel.selectedIndex].value; if(myVal)    {    if(mySel.form.target)myWin = parent[mySel.form.target];    else myWin = window;    if (! myWin) return true;    myWin.location = myVal;    } return false; } //--> </SCRIPT> 

Now we create a <SELECT ...> list of pages. The following code creates the form and the select list. Copy most of this code exactly as it is. The only part to modify for your own page is the list of URL options grouped together in the middle:

<FORM       ACTION="../cgi-bin/redirect.pl"       METHOD=POST onSubmit="return dropdown(this.gourl)"> <SELECT NAME="gourl"> <OPTION VALUE="">Choose a Destination...  <OPTION VALUE="/tags/"                     >Guide to HTML <OPTION VALUE="/"                          >Idocs Home Page <OPTION VALUE="http://www.ninthwonder.com" >Ninth Wonder  </SELECT>  <INPUT TYPE=SUBMIT VALUE="Go"> </FORM> 
Source : Google
Terima kasih telah berkunjung.
Info:
Daftar Satellite dan Channel bisa di lihat disini
Update harga Receiver dan lainnya bisa dicek disini
Terkait...



On Facebook



0 komentar: