View Full Version : multiple pop-ups


Me0w Mlx 22
02-01-2003, 07:15 PM
I'v tried and tried but i can't figure out how to get multiple pop ups on one page..they all lead to the same place...

Michele
02-01-2003, 08:19 PM
The only way i can think of is with this code




<div style="position: absolute; overflow: auto;height: 100; width: 150; top: 400; left:490">


Just change the numbers in bold.
Height-How high *from top to bottem* You want your text to be ex. you want your text to right 100pixels until you have to scroll
Width- the width *see above for help, you get this. Mesured in pixels
Top-How many pixels from the top you want it. ex.10 near top,1000 near bottem
Left-How left you want your text to be *ex. 10 is close to the left of your screen. 1000 is more to the right*


Hope this helps

Alcy
02-01-2003, 09:44 PM
You have to give each popup a name.

<script language="javascript">
<!--
function NAME()
{ window.open ("PAGE.HTML","popup","width=400, height=200, location=0, menubar=0, resizable=0, scrollbars=0, status=0, titlebar=1, toolbar=0") }
-->
</script>

<a href="javascript:NAME()">click</a>

^I dunno why it adds that space in javascript :p

l_o_h_s_t
04-07-2003, 03:48 PM
hey i was just reading this and i wanna ask what that [the bold bit] is supposed to be, like, what you're supposed to enter there:

<script language="javascript">
<!--
function NAME()
{ window.open ("PAGE.HTML ","popup","width=400, height=200, location=0, menubar=0, resizable=0, scrollbars=0, status=0, titlebar=1, toolbar=0") }
-->
</script>

<a href="java script:NAME()">click</a>

im new to all this so i'd really appreciate any help =)

starlet
04-07-2003, 04:17 PM
The url to the page you want to open in the popup.

frederick
04-07-2003, 06:34 PM
do this.... like they said...
but you must also have a different name for each popup, in the pink part too.


<script language="javascript">
<!--
function NAME()
{ window.open ("PAGE.HTML ","popup [something different in the code for each popup] ","width=400, height=200, location=0, menubar=0, resizable=0, scrollbars=0, status=0, titlebar=1, toolbar=0") }
-->
</script>

<a href="java script:NAME()">click</a>

example:

<script language="javascript">
<!--
function NAME01 ()
{ window.open ("PAGE.HTML ","popupA ","width=400, height=200, location=0, menubar=0, resizable=0, scrollbars=0, status=0, titlebar=1, toolbar=0") }
-->
</script>

<script language="javascript">
<!--
function NAME02 ()
{ window.open ("PAGE2.HTML ","popupB ","width=400, height=200, location=0, menubar=0, resizable=0, scrollbars=0, status=0, titlebar=1, toolbar=0") }
-->
</script>