antimedia
10-19-2005, 12:52 AM
Hello, I am looking for a script that allows multiple popup sized windows. The site will have several links to games and when they click on a link it needs to open a popup. But each game is various sizes so I need the ability to change popup window demensions.
The script I am currently using is:
<script language="javascript" type="text/javascript">
<!--
function popitup(url)
{
newwindow=window.open(url,'name','height=550,width=600,top=50,left=200');
if (window.focus) {newwindow.focus()}
return false;
}
// -->
</script>
Link for popup code:
<a href="/games/pool.php" onclick="return popitup('/games/pool.php')">3D Pool Deluxe</a>
Thank you, the only problem with this script is I can not change the demensions of the popup for new windows the are all the same demensions
Please Help
Shawn
PS - Also is there a script that auto creates the dimensions based on the demensions needed? Example the flash games was 500x600 so it would make a popup 600x700 (the extra 100 pixels would be to create a border around game. Just curious, thanks
The script I am currently using is:
<script language="javascript" type="text/javascript">
<!--
function popitup(url)
{
newwindow=window.open(url,'name','height=550,width=600,top=50,left=200');
if (window.focus) {newwindow.focus()}
return false;
}
// -->
</script>
Link for popup code:
<a href="/games/pool.php" onclick="return popitup('/games/pool.php')">3D Pool Deluxe</a>
Thank you, the only problem with this script is I can not change the demensions of the popup for new windows the are all the same demensions
Please Help
Shawn
PS - Also is there a script that auto creates the dimensions based on the demensions needed? Example the flash games was 500x600 so it would make a popup 600x700 (the extra 100 pixels would be to create a border around game. Just curious, thanks