PDA

View Full Version : Coding Help for a website


tobz173
06-01-2008, 11:19 PM
Im trying to create an automatic popup for my cousins website that i look after. The website is The Fox Hat Cafe (http://www.thefoxhatcafe.com.au)
Here is the code that ive implemented to try and get the popup,

<SCRIPT TYPE="text/javascript">
<!--
function popup(popup.html, A Fox Hat Message)
}
if (! window.focus)return true;
var href;
if (typeof(popup.html) == 'string')
href=popup.html;
else
href=popup.html.href;
window.open(href, windowname, 'width=400,height=200,scrollbars=no');
return false;
}
//-->
</SCRIPT>

For some reason it's not working, i would appreciate any tips to why?

edit: solved thanks deezie

STEGOSAURUS
06-01-2008, 11:25 PM
Stegosaurus can't help but would like to know what's in the Fox Hat Stack?

odeezie
06-01-2008, 11:27 PM
Im trying to create an automatic popup for my cousins website that i look after. The website is The Fox Hat Cafe (http://www.thefoxhatcafe.com.au)
Here is the code that ive implemented to try and get the popup,

<SCRIPT TYPE="text/javascript">
<!--
function popup(popup.html, A Fox Hat Message)
}
if (! window.focus)return true;
var href;
if (typeof(popup.html) == 'string')
href=popup.html;
else
href=popup.html.href;
window.open(href, windowname, 'width=400,height=200,scrollbars=no');
return false;
}
//-->
</SCRIPT>

For some reason it's not working, i would appreciate any tips to why?

Those will hinder the code from being executed.

tobz173
06-01-2008, 11:27 PM
Stegosaurus can't help but would like to know what's in the Fox Hat Stack?

I knew once but have no idea now, the chef's pretty clever at making different tasty meals, but yeah, this one has slipped my mind

tobz173
06-01-2008, 11:29 PM
Those will hinder the code from being executed.

I see, now i have

<SCRIPT TYPE="text/javascript">
function popup(popup.html, A Fox Hat Message)
}
if (! window.focus)return true;
var href;
if (typeof(popup.html) == 'string')
href=popup.html;
else
href=popup.html.href;
window.open(href, windowname, 'width=400,height=200,scrollbars=no');
return false;
}
</SCRIPT>

but still nothing?