proctk
02-01-2006, 01:22 PM
any ideas why this is not working
it breaks at line 153 & 158
I have no clue, I used wise PopUp to create the script
<head>
<script language="JavaScript">
function PopupMe(){
myleft=(screen.width)?(screen.width-300)/2:100;mytop=(screen.height)?(screen.height-400)/2:100;
settings='top=' + mytop + ',left=' + myleft + ',width=300,height=400,location=no,directories=no, menubar=no,toolbar=no,status=no,scrollbars=no,resi zable=no,fullscreen=no'
PopupWin=window.open('http://www.tomorrownextweek.com/promo.html','PopupWin', settings);
function get_cookie(Name){
var search = Name + '=';
var returnvalue = '';
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(';', offset);
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(off set, end)) } }
return returnvalue;}
function PopupOnce() {
if (get_cookie('popped')==''){
PopupMe()
document.cookie='popped=yes'}}
</script>
</head>
<body>
<body onload="javascript:PopupOnce()">
</body>
it breaks at line 153 & 158
I have no clue, I used wise PopUp to create the script
<head>
<script language="JavaScript">
function PopupMe(){
myleft=(screen.width)?(screen.width-300)/2:100;mytop=(screen.height)?(screen.height-400)/2:100;
settings='top=' + mytop + ',left=' + myleft + ',width=300,height=400,location=no,directories=no, menubar=no,toolbar=no,status=no,scrollbars=no,resi zable=no,fullscreen=no'
PopupWin=window.open('http://www.tomorrownextweek.com/promo.html','PopupWin', settings);
function get_cookie(Name){
var search = Name + '=';
var returnvalue = '';
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(';', offset);
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(off set, end)) } }
return returnvalue;}
function PopupOnce() {
if (get_cookie('popped')==''){
PopupMe()
document.cookie='popped=yes'}}
</script>
</head>
<body>
<body onload="javascript:PopupOnce()">
</body>