
June 8th, 2004, 11:26 PM
|
|
Contributing User
|
|
Join Date: Sep 2003
Posts: 116
Time spent in forums: 2 h 27 m 49 sec
Reputation Power: 5
|
|
|
popup js in php file
Hi guys,
could guys give me an idea why my code is not working ?? the popup javascript seems okay but the exit popup part doesn't seem to work as what i want no matter what value i assigned to $exit...
please advise.
Code:
<html>
<head>
<title>No title</title>
<meta name="generator" content="Namo WebEditor v5.0">
<script language="JavaScript" type="text/JavaScript">
<?
$popup = "1";
if($popup =="")
{
?>
window.open('popup.htm','','menubar=no,resizable=y es,width=430,height=580');
<?
}
$exit ="";
?>
var exit=true;
function xitpop()
{
if (exit)
{
window.open("http://www.yahoo.com","sample","height=500,width=604,status=yes,menubar=no,locatio n=no,resizable=no,titlebar=yes,scrollbars=yes,top= 50,left=50");
}
}
</script>
</head>
<body <? if($exit == ""){?>onunload="xitpop();"<? } ?> bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p><a href="http://www.yahoo.com"> hehe </a></p>
</body>
</html>
|