Click to See Complete Forum and Search --> : many popup windows at once
mariamada
08-27-2003, 12:19 PM
Hallo there,
My question is:
is it possible to have one link (or button) open multiple popup windows, and have those popup windows in fixed position on the screen? For instance 12 small popups one next to the other in a neat rectangle.
I'd appreciate very much any feedback on that!
It's not a question of could you, but rather, should you...
halifaxrick
08-27-2003, 01:33 PM
I think you would be able to do it by using something like this:
<script language="JavaScript">
<!-- hide
function openWindow() {
popupWin=window.open('http://www.fish.com','remote','width=60,height=48,top=100,left=100')
popupWin=window.open('http://www.fish.com','remote','width=60,height=48,top=100,left=160')
popupWin=window.open('http://www.fish.com','remote','width=60,height=48,top=100,left=220')
popupWin=window.open('http://www.fish.com','remote','width=60,height=48,top=100,left=280')
popupWin=window.open('http://www.fish.com','remote','width=60,height=48,top=100,left=340')
}
// done hiding --> </script>
<h3><center> Popup Hell</center></h3>
<body>Click on the link below to access more popups than you will ever want to see!</body><br>
<A HREF="http://www.fish.com" onClick="openWindow()" TARGET="_blank" width=60 height=48 top=100 left=340><img src="button.jpg">
But DON'T DO IT!!! If you make people suffer with this they will hunt you down and prod you with pointy sticks. No-one will visit your site more than once.
And now that I know they are thinking about it, I won't even visit the first time...
Charles
08-27-2003, 01:59 PM
<script type="text/javascript">
<!--
windows = new Array();
for (i=1; i<=10; i++) {
url = ['http://www.bettiepage.com/images/photos/bikini/bikini','.jpg'].join (i);
geometry = ['height=350,width=250,top=', 10*i, ',left=', 10*i].join('');
windows.push(window.open(url, '', geometry));
}
// -->
</script>