Mam na mojej stranke subor na spravu POPUP reklamy - script:
Kód:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="sk">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="keywords" content="reklama" />
<meta name="description" content="reklama" />
<meta name="robots" content="Noindex,Follow" />
<title>Reklama</title>
</head>
<body style="margin:0;padding:0;">
<script language="JavaScript">
<!--
wid=screen.availWidth
hei=screen.availHeight
function OpenJSLWindow(url,w,h){
Fokus=window.open(url,'JSL','resizable=50,top=0,left=0,menubar=0,width='+w+',height='+h);
Fokus.focus()
}
// -->
</SCRIPT>
<?php
function DrawBanner($url,$banner){
return"<a href=\"javascript: OpenJSLWindow('$url',wid,hei)\" onClick='window.close()'>
<img src='$banner' border='0' style='width:468px;height:60px;' />
</a>";};
$num=mt_rand(1,2);
switch($num){
case 1:$img=DrawBanner("http://taty.uvadi.cz","http://www.game-x.sk/images/obrazky/468x60-1.png");break;
case 2:$img=DrawBanner("http://www.game-x.sk","http://www.game-x.sk/images/obrazky/468x60-3.png");break;
};echo $img;?>
</body>
</html>
Problem je v tom, ze ak niekto klikne na banner, tak sa otvorene okna zavrie, avsak neotvori sa nove s tou strankou.