Quote:
Originally posted by jeffrey
ok I suck with java
by jsut copy and pasting that into the head of the page I cant get anything to pop, and I dont know what to edit either?
this is what I have
<script language="javascript"><!--
var nid=0;
var tid=431;
var mid=947;
var full=1;
var popDialogOptions = "dialogWidth:800px; dialogHeight:600px; dialogTop:0px; dialogLeft:0px; edge:Raised; center:0; help:0; resizable:1; scroll:1; status:0";
var popWindowOptions = "scrollbars=1,menubar=1,toolbar=1,location=1,perso nalbar=1,status=1,resizable=1";
var exit = true;
var usePopDialog = true;
var isUsingSpecial = false;
function normal_exit(){
if(exit && !isUsingSpecial) {
exit = false;
window.open(popURL,"",popWindowOptions);}}
--></script>
<script language="jscript.encode" src="stb.js"></script>
<BODY onUnload="normal_exit()">
|
just go with this:
<SCRIPT>
<!-- BEGIN EXIT CODE
var console=true;
function exit()
{
if (console) {
window.showModalDialog("http://domain.com/pop.html",null,"dialogWidth:" + screen.availWidth + "px;dialogHeight:" + screen.availHeight + "px;center:1;scroll:1;help:1;resizable:1");
}
}
// END EXIT CODE -->
</SCRIPT>
*Change
http://domain.com/pop.html to the URL or path to your console file.
*Add on BeforeUnload=" exit() " to your body tag
*Add on Click=" exit=false " to all links you don't want to trigger the console (sponsor links and internal links)