pull down menu's

liunx

Guest
i have created a pull down menu, but i want to change it so whenever wny one clicked 'go', the link would be opened in a new window, and i cant find any scripts to do that, and i dont mind if its in HTML or JavaScript.....<!--content--><a href=http://www.webdeveloper.com/forum/archive/index.php/"somewhere.htm target="_blank">somewhere</a><br />
<br />
like that?<!--content-->it doesnt work, the menu im using is scripted as:<br />
<br />
<form name="jump"><br />
<p align="center"><br />
<select name="menu"><br />
<option value="pageno.html">Bridge Map</option><br />
<option value="pageno.html">Bridge SE</option><br />
<option value="pageno.html">Collapsed Tunnel</option><br />
<input type="button"<br />
onClick="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" <br />
value="Go!"</p><br />
</form></p><br />
<br />
i want all of them to open up in a new window.....<!--content-->You could try <base target="_blank"> in your head section. But this would open all links in a new window...<br />
<br />
Other than that you'll have to post your code in. Some of them come with instructions covering how to do this.<!--content--><form name="jump"> <br />
<p align="center"> <br />
<select name="menu"> <br />
<option value="pageno.html">Bridge Map</option> <br />
<option value="pageno.html">Bridge SE</option> <br />
<option value="pageno.html">Collapsed Tunnel</option> <br />
<input type="submit" target="_blank"<br />
onClick="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" <br />
value="Go!"</p> <br />
</form></p><br />
<br />
Might try that. Not sure though. Good luck :)<!--content-->no didnt work :(<br />
<br />
im using frontpage btw....<!--content-->Do you want that paticular page to open up in a new window? or do you want, when you hit Go, to open up in a new window?<br />
<br />
The target="_blank" attribute will open it in a new window.<!--content-->when i press 'go', i want the selected link to open up in a new window, meaning that any link selected from the menu should open up in a new window when i press go<br />
<br />
that method doesnt work though.....<!--content--><form name="jump"> <br />
<p align="center"> <br />
<select name="menu"> <br />
<option value="pageno.html">Bridge Map</option> <br />
<option value="pageno.html">Bridge SE</option> <br />
<option value="pageno.html">Collapsed Tunnel</option> <br />
<input type="submit" target="_blank" <br />
onClick="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" <br />
value="Go!"</p> <br />
</form></p><br />
<br />
doesnt have a > at the end should be this<br />
<br />
<form name="jump"> <br />
<p align="center"> <br />
<select name="menu"> <br />
<option value="pageno.html">Bridge Map</option> <br />
<option value="pageno.html">Bridge SE</option> <br />
<option value="pageno.html">Collapsed Tunnel</option> <br />
<input type="submit" target="_blank" <br />
onClick="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" <br />
value="Go!"></p> <br />
</form></p><br />
<br />
this should work for you<!--content-->no, it still doesn't work :(<br />
<br />
this is the entire code im using:<br />
<br />
<br />
<br />
<html><br />
<br />
<head><br />
<meta http-equiv="Content-Language" content="en-gb"><br />
<meta name="GENERATOR" content="Microsoft FrontPage 5.0"><br />
<meta name="ProgId" content="FrontPage.Editor.Document"><br />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><br />
<title>Maps</title><br />
</head><br />
<br />
<body text="#FFFFFF" bgcolor="#000000"><br />
<br />
<p align="center"><img border="0" src=http://www.webdeveloper.com/forum/archive/index.php/"horizontal_logo.gif" width="651" height="73"></p><br />
<hr color="#C0C0C0" width="85%"><br />
<p align="center"><img border="0" src=http://www.webdeveloper.com/forum/archive/index.php/"gotmilk.gif" width="176" height="76"></p><br />
<hr color="#C0C0C0" width="50%"><br />
<p align="center"><u><b><font face="Eras Light ITC" size="4">MAPS</font></b></u></p><br />
<p align="center"><br />
<form name="jump"><br />
<p align="center"><br />
<select name="menu"><br />
<option value="bridgemap.htm">Bridge Map</option><br />
<option value="bridge_se.htm">Bridge SE</option><br />
<option value="collapsed_tunnel.htm">Collapsed Tunnel</option><br />
<option>FLS Assault</option><br />
<option>HQ Raid</option><br />
<option>Insurgent Camp</option><br />
<option>McKenna</option><br />
<option>Mountain Ambush</option><br />
<option>Mountain Pass</option><br />
<option>Pipeline</option><br />
<option>River Basin</option><br />
<option>Swamp Raid</option><br />
<option>Weapons Cache</option><br />
<option>Weapons Cache SE</option><br />
</select><br />
<input type="submit" target="_blank"<br />
onClick="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" <br />
value="Go!"> </p><br />
</form></p><br />
<hr color="#C0C0C0" width="50%"><br />
<p align="center"><br />
<!--webbot bot="Navigation" S-Orientation="horizontal" S-Rendering="graphics" S-Theme="blank" S-Type="siblings" B-Include-Home="FALSE" B-Include-Up="TRUE" --></p><br />
<hr color="#C0C0C0" width="85%"><br />
<br />
</body><br />
<br />
</html><!--content-->ive had a go but with out much luck i know it can be done ive seen it on sites before, im trying to find them now, if i find one ill let you know<br />
<br />
Rich<!--content-->Try this:<br />
<br />
<form action=""><br />
<p><select name="jumpmenu"><br />
<option value="http://www.infinitypages.com">Infinity Web Design</option><br />
<option value="http://www.webdevfaqs.com">Web Dev FAQs</option><br />
<option value="http://www.w3c.org">W3C</option><br />
</select><br />
<input type="button" value="Go!" onclick="window.open(this.form.jumpmenu.options[this.form.jumpmenu.selectedIndex].value);"> </p><br />
</form><!--content-->it works perfectly, thanx mate :)<!--content-->lol, me again,<br />
<br />
in the pop ups, i want the new window to be in such a way that the user canot copy or click the image, and that the page matches the size of the pic when loaded up in the top left hand side, and that the there is no address bar, no links bar or the back/forward/history/home etc etc buttons on the top, i know there is a script to do that but i cant find it :(<!--content-->Take a look at <!-- m --><a class="postlink" href="http://www.infinitypages.com/research/imagepopup.htm">http://www.infinitypages.com/research/imagepopup.htm</a><!-- m --><!--content-->i already know about that but its java script and i cant incorporate it into the pull down menu somehow, look up <!-- w --><a class="postlink" href="http://www.crystalarch.com/aagotmillk/">www.crystalarch.com/aagotmillk/</a><!-- w --> and you'll understand what im trying to do, use:<br />
<br />
username: alienonrampage<br />
password: hashbash<br />
<br />
also tell me what u think about the site :)<!--content-->I get a 404 on that link...<!--content-->i get a 404 aswell<!--content-->If one get's it, it probably could be understood that others will as well... :rolleyes:<!--content-->well yeah :p<!--content-->whoopsie, sorry bout that,<br />
<br />
i gave the wrong link, here u go:<br />
<br />
<!-- w --><a class="postlink" href="http://www.crystalarch.com/aagotmilk/">www.crystalarch.com/aagotmilk/</a><!-- w --><br />
<br />
that oughta do it, username/pass is still valid.....<!--content-->
 
Back
Top