mAu
Erfahrenes Mitglied
Probiers mal so…
PHP:
<?php
if(!isset($_COOKIE['windowOpened']) || $_COOKIE['windowOpened'] === false)
{
setcookie('windowOpened', true, time() + (24*60*60));
?>
window.onload = function(){
var arrAnchors = document.getElementsByTagName("a");
for(var i=0; i<arrAnchors.length; i++){
arrAnchors[i].onclick = function(){
window.open("traffic2.php?c=<?php echo $_GET['c']; ?>", "resizable");
self.focus();
}
}
}
<?php
} // endif
?>