Replace your <body> tag with <body OnLoad="window.open('link/to/radio/script.php', 'Radio Player', 'toolbar=0, location=0, directories=0, menuBar=0, scrollbars=1, resizable=1, width=500, height=400, left=50, top=50');">
This will open the popup when they load the page, if you want to be able to show if the cookie says so, do the following...
Then in the radio popup Do the following:PHP Code:<body <?php echo (($_COOKIE['showRadioPopup'] == "1") ? 'OnLoad="window.open(\'link/to/radio/script.php\', \'Radio Player\', \'toolbar=0, location=0, directories=0, menuBar=0, scrollbars=1, resizable=1, width=500, height=400, left=50, top=50\');"' : '')); ?>>
Baring in mind I havent tested this...PHP Code:<?php
((isset($_GET['removeCookie']) ? setcookie('showRadioPopup', '0', time()+29984678) : ''));
?>
<a href="?removeCookie">Stop Windows Showing On Load</a>
Lew.



Reply With Quote

