Voltar's Newbie Webmaster Resource


Consoles by Cleo
To make a console that would open on page load and load behind the page

Between the opening and closing <head> </head>tags you would place
<script language="JavaScript">
<!--
window.open("http://www.CONSOLEURL.com","_blur");
if (window.focus) {
window.focus();
}
//-->
</script>

To make a console that would open on page exit

Between the opening and closing <head> </head>tags you would place
<script language="JavaScript">
<!--
var exit=true;
function xit()
{
if (exit)
open("http://www.CONSOLEURL.com","copy");
}
//-->
</script>


In the <body> tag itself you would place
onunload="xit()"

On any links that you would not want to have the console open up you would put this in the <a> tag
onclick="exit=false"

To make a console that would open a page in front of the page

Between the opening and closing <head> </head>tags you would place
<script language="JavaScript">
<!--
function act() {
window.open("http://www.CONSOLEURL.com");
}
//-->
</script>


In the <body> tag itself you would place
onLoad="act()"

You can control where your window will open, the size of it and it will have a tool bar, etc. like this

("http://www.CONSOLEURL.com","window_name ","width=450,height=150,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,top=20,left=35");

Note, do not put spaces in the above

You can have the page resize to fill the screen like this

Between the opening and closing <head> </head>tags you would place
<script language="JavaScript">
<!--
self.moveTo(0,0)
self.resizeTo(screen.availWidth,screen.availHeight)
//-->
</script>

You can have more then one console per page like this

<script language="JavaScript">
<!--
var exit=true;
function xit()
{
if (exit)
open("http://www.CONSOLEURL.com","copy","resizable=yes,scrollbars=yes,width=550,height=450");
}
window.open("http://www.CONSOLEURL.com","_blur", "width=600,height=500,resizable=no,scrollbars=no,top=120,left=190");
if (window.focus) {
window.focus();
}
function act() {
window.open("http://www.CONSOLEURL.com","1", "width=450,height=150,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,top=20,left=35");
window.open("http://www.CONSOLEURL.com","2", "width=450,height=150,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,top=220,left=35");
}
self.moveTo(0,0)
self.resizeTo(screen.availWidth,screen.availHeight)
//-->
</script>


In the <body> tag itself you would place
<body onunload="xit()" onLoad="act()">





Written and contributed
by Cleo


Check out my webmaster page for more webmaster resources Click HERE



Back to VNWR