|
Post by *=Matt=**<GrU>* on Feb 21, 2004 19:20:29 GMT -5
<form name="a294" > <select name="a969" size="1" style="background-color:#FFFFD7" onChange="displaydesc(document.a294.a969.selectedIndex)"> <option selected value="url of site">site name</option> <option value="url of site">site name</option> <option value="url of site" target="newwin">site name</option> <option value="url of site">site name</option> <option value="url of site" target="newwin">site name</option> </select> <input type="button" value="Go" onClick="jumptolink(document.a294.a969.selectedIndex)">
<span id="descriptions" align="left" style="font:italic 13px Arial"> </span> </form>
<script>
//CUSTOMIZE TEXT DESCRIPTIONS FOR LINKS ABOVE var textdisplay=new Array() textdisplay[0]="message" textdisplay[1]="message" textdisplay[2]="message" textdisplay[3]="message." textdisplay[4]="message"
function jumptolink(what){ var selectedopt=document.a294.a969.options[what] if (document.getElementById && selectedopt.getAttribute("target")=="newwin") window.open(selectedopt.value) else window.location=selectedopt.value }
function displaydesc(which){ if (document.all) descriptions.innerHTML=textdisplay[which] else if (document.getElementById) document.getElementById("descriptions").innerHTML=textdisplay[which] }
displaydesc(document.a294.a969.selectedIndex)
document.a294.a969.options[0].selected=true
</script>
ok replace:1. url with the url of the site you want on there 2. site name with the name of site 3. change the message to some thing#nosmileys
|
|
|
Post by -wiz- on Feb 21, 2004 20:36:07 GMT -5
very good script. gj
|
|
|
Post by *=Matt=**<GrU>* on Feb 22, 2004 22:08:34 GMT -5
thxs
|
|