7, October 2008

Javascript pull down menu - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  JavaScript
Topic: Javascript pull down menu
« previous next »
Pages: [1] Print

Author Topic: Javascript pull down menu  (Read 895 times)
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8102
41569 credits
Members referred : 3



« on: Dec 20, 2005, 10:04:36 PM »

Does anyone knows of any good javascript pull down menu?

Thanks in advance for any responses Smiley

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : Current Events + Big Sites = Easy Money
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 884
1636 credits
Members referred : 4



« Reply #1 on: Dec 22, 2005, 06:04:15 AM »

hey buddy i got wat cha need right here (one of my fav personal scripts):

Code:
<form name="form1">
<p align="center">
<select name="select1" size="1" style="color: silver; background-color= #666666; font-family: Verdana; font-size: 8pt; border: 1px solid silver" onChange="displaydesc(document.form1.select1, thetext1, 'textcontainer1')">
<option selected value="index2.php?open=1#table7">J Love Webmail</option>
<option value="index2.php?open=2#table7">Horde Mail</option>
<option value="index2.php?open=3#table7">Squirrel Mail</option>
<option value="index2.php?open=4#table7">SQweb Mail</option>
</select>
<input type="button" value="Go"
onClick="jumptolink(document.form1.select1)" style="color: silver; background-color= #666666; font-family: Verdana; font-size: 8pt; border: 1px solid silver;" span id="textcontainer2" align="left">
</span>
</p>
</form>

<!--IMPORTANT: Below script should always follow all of your HTML codes above, and never proceed them.-->
<!--To be safe, just add below script at the end of your page-->
<script type="text/javascript">
var thetext1=new Array()
thetext1[0]="Comprehensive JavaScript tutorials and over 400+ free scripts"
thetext1[1]="Direct link to hundreds of free Java applets online!"
thetext1[2]="Up to date news on the technology front"
thetext1[3]="News.com- The #1 technology News site."
thetext1[4]="Web Coding and development forums"
var thetext2=new Array()
thetext2[0]="CNN- US and World News."
thetext2[1]="MSNBC- NBC News online."
thetext2[2]="BBC News- Updated every minute of every day."
thetext2[3]="TheRegister- Daily IT news."
function displaydesc(which, descriptionarray, container){
if (document.getElementById)
document.getElementById(container).innerHTML=descriptionarray[which.selectedIndex]
}
function jumptolink(what){
var selectedopt=what.options[what.selectedIndex]
if (document.getElementById && selectedopt.getAttribute("target")=="newwin")
window.open(selectedopt.value)
else
window.location=selectedopt.value
}


displaydesc(document.form1.select1, thetext1, 'textcontainer1')
displaydesc(document.form2.select2, thetext2, 'textcontainer2')

                        </script>

sorry for the length of it, copy and pasted from my old site

Visit through proxy Visit through proxy Visit through proxy

Last blog : phpHaze 1.59.1 in Development
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=1032
Tags : javascript html tutorials java Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  JavaScript
Topic: Javascript pull down menu
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Oct 07, 2008, 03:24:35 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!





Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.