Siliconstitches
03-11-2004, 02:05 AM
I've seen these before. I have a drop down menu.. and i just want one option to be a pop up and the rest normal. how could i get
<option blah blah blah
<option blah blah balh
<option pop up window thing
<option blah blah..
etc..
so if you understand what i'm trying to say.. help please. ^.^; :wolf:
kittycat
03-11-2004, 02:35 AM
If you want it to be a javascript popup window then just put the javascript:pop() part in the option.
If you want it to open in a new window like target=_blank would do try this for a dropdown:
(add between head tags)
<SCRIPT>
<!--
function dnwjump(menu){
var loc = menu[menu.selectedIndex].value.split("|");
if(loc.length == 2)
window.open(loc[1], loc[0]);
}
//-->
</SCRIPT>
(add in body tags)
<form>
<select onChange="dnwjump(this)">
<OPTION> ...navigation... </OPTION>
<option value="_self|http://domain.com">....this opens in the same window</option>
<option value="_blank|http://domain.org">....this opens in the new window</option>
<option value="main|http://domain.net">....this opens in the window named main</option>
</select>
</form>
For that one you have to add a target for each link, so if you want it in the same window do it like the first option. (from http://regretless.com/dodo/newworld/index.php)