第1步:将以下代码加到〈head〉与〈/head〉之间
<SCRIPT LANGUAGE='javascript'>
<!-- Begin
function leave() {
var popUpSizeX=750;
var popUpSizeY=550;
var popUpLocationX=10;
var popUpLocationY=10;
// URL of the popUp
var popUpURL='http://www.uupc.cn/?url=texiao';
// ** do not edit below ***
splashWin = window.open('','x','toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1');
splashWin.blur(); // Hide while updating
window.focus();
splashWin.resizeTo(popUpSizeX,popUpSizeY);
splashWin.moveTo(popUpLocationX,popUpLocationY);
splashWin.location=popUpURL;
}
// END -->
</SCRIPT>
第2步:将〈body〉换成以下代码
<body onUnload="leave()">
<SCRIPT LANGUAGE='javascript'>
<!-- Begin
function leave() {
var popUpSizeX=750;
var popUpSizeY=550;
var popUpLocationX=10;
var popUpLocationY=10;
// URL of the popUp
var popUpURL='http://www.uupc.cn/?url=texiao';
// ** do not edit below ***
splashWin = window.open('','x','toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1');
splashWin.blur(); // Hide while updating
window.focus();
splashWin.resizeTo(popUpSizeX,popUpSizeY);
splashWin.moveTo(popUpLocationX,popUpLocationY);
splashWin.location=popUpURL;
}
// END -->
</SCRIPT>
第2步:将〈body〉换成以下代码
<body onUnload="leave()">