|
Console
Sample 1
(this console loads behind the page)
"Copy & Paste" the following "BEFORE"
</head>
<script
language="JavaScript">
<!-- Hide script from older browsers
if(navigator.appName.indexOf("WebTV")==-1){
myWin=open('','winin','toolbar=0,menubar=0,scrollbars=0,status=0,resizable=0,width=450,height=140');
myWin.blur();
myWin.location = 'console1.htm';
}
// end hiding contents -->
</script> |
Sample
HTML
the
console code is highlighted in blue
!
|
<html>
<head><title>Your
Site</title>
<script
language="JavaScript">
<!-- Hide script from older browsers
if(navigator.appName.indexOf("WebTV")==-1){
myWin=open('','winin','toolbar=0,menubar=0,scrollbars=0,status=0,resizable=0,width=420,height=130');
myWin.blur();
myWin.location = 'popup1.html';
}
// end hiding contents -->
</script>
</head>
<body bgcolor=black text=white>
<p><br>
....
....
<p>
</body>
</html>
|
Console Sample
2
(this console loads when
surfer exits your site)
"Copy and Paste" the
following immediately BEFORE </head>:
<script
language="Javascript">
<!--
var exit=true; function ie() { if (exit)
open("popup1.html","new_window","width=450,height=140");
} //-->
</script> |
copy & paste
this code in the body
onUnload="ie()"
copy & paste
this code on all the links you DON'T
want the console to pop up:
onClick="exit=false"
Sample
HTML
the
console code is highlighted in blue
!
|
<html>
<head>
<title>Your Site</title>
<script
language="Javascript">
<!--
var exit=true;
function ie() { if (exit)
open("popup1.html","new_window","width=420,height=130");
}
//-->
</script>
</head>
<body bgcolor=black text=white onUnload="ie()">
<p><br>
<a href="nextpage.html" onclick="exit=false">Next
Page</a>
</body>
</html>
|
|