Thread: Drop-down menu
View Single Post
Old 01-20-2005, 10:04 AM  
Furious_Female
Confirmed User
 
Furious_Female's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Upstate, New York
Posts: 8,187
Put this in between your <head></head> tags

<script>
<!--
function land(ref, target)
{
lowtarget=target.toLowerCase();
if (lowtargethahahaha"_self") {window.location=loc;}
else {if (lowtargethahahaha"_top") {top.location=loc;}
else {if (lowtargethahahaha"_blank") {window.open(loc);}
else {if (lowtargethahahaha"_parent") {parent.location=loc;}
else {parent.frames[target].location=loc;};
}}}
}
function jump(menu)
{
ref=menu.choice.options[menu.choice.selectedIndex].value;
splitc=ref.lastIndexOf("*");
target="";
if (splitc!=-1)
{loc=ref.substring(0,splitc);
target=ref.substring(splitc+1,1000);}
else {loc=ref; target="_self";};
if (ref != "") {land(loc,target);}
}
//-->
</script>

and this anywhere you want it

<form action="dummy" method=hahahahahaha><select name="choice" size="1">
<option value="">Text</option>
<option value="http://yourURL.com*_blank">Your Text</option>
<option value="http://yourURL2.com*_blank">Your Text 2</option>
<option value="">----------</option>
</select><br><input TYPE="button" VALUE="Go" onClick="jump(this.form)"></form>

add *_blank to the end of the URLs you put in the menu.

EDIT: Replace the hahahahahah^ above (it got filtered) with method = " post " (no spaces!)
__________________
Skype: j3nn.com
ICQ 160370494

My current favorite high-converting sponsor: CrakRevenue

Last edited by Furious_Female; 01-20-2005 at 10:06 AM..
Furious_Female is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote