Make a blank index page and place the code inside:
Just change the url for your mainpage and the size of the page.
place this code inside <head> tag:
<script language="JavaScript">
function PopWindow() {
var Url = "http://www.yourwebsite.com/mainpage.htm";
var WindowWidth = 200;
var WindowHeight = 200;
var WindowTop = (screen.availHeight/2) - (WindowHeight/2);
var WindowLeft = (screen.availWidth/2) - (WindowWidth/2);
var WindowProps = 'toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable,width='+WindowWidth+',height='+WindowHeight+',left='+WindowLeft+',top='+WindowTop+',screenx='+WindowLeft+',screeny='+WindowTop;
PoppedWindow = window.open(Url,"PoppedWindow",WindowProps);
}
</script>
Place this code onLoad="PopWindow();" inside your <body> tag
like this:
<body onLoad="PopWindow();">
Test it. i dont recommend this one coz you'll be no where to find in search engines if you use this.
Do far this only i can help. LOL!
Maybe other guys there can incorporate on this idea.
Reply