View Full Version : help me!


x sinful angel
01-31-2003, 08:26 PM
im trying to put pop-up windows on my site..the thing is i want them to originate from a drop down menu. like i want to put a drop down on my site..wit the button and all..then i wanted it to go to a pop-up window..but the pop up window this is confusing me to no end..so a couple of questions:
1. how do i make it so that i can open the pop up with the drop down
2. how would i incorporate this into the html for the drop down cause the only thing listed is for the button and for the image link..thanks for the help
<3 stephanie
*through obstacles to stars*

lilchici13
01-31-2003, 08:33 PM
well wen ur putting the links into the drop down menu just add
target="_blank"

Alcy
01-31-2003, 09:00 PM
<script language="javascript">
//<!--
function popup()
{ window.open ("PAGE.HTML","popup","width=400,height=400,location=0,menubar=0,resizabl e=0,scrollbars=0,status=0,titlebar=1,toolbar=0") }
-->
</script>

<form name="gotolocation1" method="POST">
<select name="lissamenu1" size=1
style="font-family: comic sans ms"
style="color: #FFFF00"
style="border: outset"
style="font-size: 12"
style="background: #CC99FF">
<option value="javascript:popup()">Popup</option>
</select>
<input type="button" style="font-family: comic sans ms"
style="color: #FF0000"
style="font-size: 12"
style="background: #CC99FF" onClick="location =
document.gotolocation1.lissamenu1.options
[document.gotolocation1.lissamenu1.selectedIndex].value;"
value="Go">
</form>


Instead of linking to a page, you just link to "javascript:popup()" :)

EDIT:|| I don't know why it's making it two, but javascript should be one word :p

x sinful angel
02-01-2003, 03:47 AM
i love you guys!!! thanks for your help

EDIT:
i just throw that whole thing in my navigation where my drop downs gonna be?


Please do not double post. Use the edit button. - Moderator

altpara
02-02-2003, 11:17 AM
Yes.