<html>
<head>
<title> New Document </title>
<script language="JavaScript1.2">
isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
isHot=false;
function ddInit(e){
topDog=isIE ? "BODY" : "HTML";
hotDog=isIE ? event.srcElement : e.target;
idx=hotDog.id.substr(hotDog.id.length-1,1);
whichDog=isIE ? eval("document.all.divpop" + idx) : document.getElementById("divpop" + idx);
while (hotDog.id!=hotDog.id&&hotDog.tagName!=topDog){
hotDog=isIE ? hotDog.parentElement : hotDog.parentNode;
}
if (hotDog.id){
offsetx=isIE ? event.clientX : e.clientX;
offsety=isIE ? event.clientY : e.clientY;
nowX=parseInt(whichDog.style.left);
nowY=parseInt(whichDog.style.top);
ddEnabled=true;
document.οnmοusemοve=dd;
}
}
function dd(e){
if (!ddEnabled) return;
whichDog.style.left=isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx;
whichDog.style.top=isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety;
return false;
}
function ddN4(whatDog){
if (!isN4) return;
N4=eval(whatDog);
N4.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);
N4.οnmοusedοwn=function(e){
N4.captureEvents(Event.MOUSEMOVE);
N4x=e.x;
N4y=e.y;
}
N4.οnmοusemοve=function(e){
if (isHot){
N4.moveBy(e.x-N4x,e.y-N4y);
return false;
}
}
N4.οnmοuseup=function(){
N4.releaseEvents(Event.MOUSEMOVE);
}
}
function hideMe(id){
if ( document.getElementById('chkbox'+id).checked ) {
setCookie( "mainPop"+id, "done" , 1 );
document.getElementById('chkbox'+id).checked = false;
}
if (isIE||isNN) document.getElementById('divpop'+id).style.visibility="hidden";
else if (isN4) document.divpop.visibility="hide";
}
function setCookie( name, value, expiredays ) {
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
document.οnmοusedοwn=ddInit;
document.οnmοuseup=Function("ddEnabled=false");
</script>
<!--<style type="text/css">
td {
font-family: Tahoma, 돋움, Dotum, sans-serif;
font-size: 11px;
line-height: 100%;
color: #000000;
}
</style>-->
</head>
<body>
<div id="divpop0" >
<table>
<tr>
<td colspan="2"><IMG src="zqj-gqj.jpg" border=0></td>
</tr>
<tr>
<td><input type="checkbox" name="chkbox0" id="chkbox0" value="checkbox" onFocus="this.blur();" onClick="hideMe(0);"> 24小时内不再显示</td>
<td><a href="#" onClick="hideMe(0);return false">关闭</a></td>
</tr>
</table>
</div>
<!--<div id="divpop0" style="position:absolute;width:450px;left:100;top:100;visibility:hidden;z-index:1">
<table border="0" width="240" bgcolor="#0084FF" cellspacing="0" cellpadding="5">
<tr>
<td width="100%">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="36">
<tr>
<td id="titleBar0" style="cursor:move" width="100%">
<ilayer width="100%" onSelectStart="return false">
<layer width="100%" onMouseover="isHot=true;if (isN4) ddN4(divpop0)" onMouseout="isHot=false">
<font face="Arial" color="#FFFFFF">标题0</font>
</layer>
</ilayer>
</td>
<td style="cursor:hand" valign="top">
<a href="#" onClick="hideMe(0);return false"><font color=#ffffff size=2 face=arial style="text-decoration:none">X</font></a>
</td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF" style="padding:14px" colspan="2">
<IMG src="" border=0>
</td>
</tr>
<tr>
<td align="right" bgcolor="#EFEFEF" width="100%" height="25" colspan="2" style="padding:5px"><input type="checkbox" name="chkbox0" id="chkbox0" value="checkbox" onFocus="this.blur();" onClick="hideMe(0);">24小时内不再显示 </td>
</tr>
</table>
</td>
</tr>
</table>
</div>-->
<div id="divpop1" style="position:absolute;width:450px;left:130;top:130;visibility:hidden;z-index:2">
<table border="0" width="450" bgcolor="#0084FF" cellspacing="0" cellpadding="5">
<tr>
<td width="100%">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="36">
<tr>
<td id="titleBar1" style="cursor:move" width="100%">
<ilayer width="100%" onSelectStart="return false">
<layer width="100%" onMouseover="isHot=true;if (isN4) ddN4(divpop1)" onMouseout="isHot=false">
<font face="Arial" color="#FFFFFF">标题 1</font>
</layer>
</ilayer>
</td>
<td style="cursor:hand" valign="top">
<a href="#" onClick="hideMe(1);return false"><font color=#ffffff size=2 face=arial style="text-decoration:none">X</font></a>
</td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF" style="padding:14px" colspan="2">
这里可以放文字也可以放图片 </td>
</tr>
<tr>
<td align="right" bgcolor="#EFEFEF" width="100%" height="25" colspan="2" style="padding:5px"><input type="checkbox" name="chkbox1" id="chkbox1" value="checkbox" onFocus="this.blur();" onClick="hideMe(1);"> 24小时内不再显示</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div id="divpop2" style="position:absolute;width:450px;left:160;top:160;visibility:hidden;z-index:3">
<table border="0" width="450" bgcolor="#0084FF" cellspacing="0" cellpadding="5">
<tr>
<td width="100%">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="36">
<tr>
<td id="titleBar2" style="cursor:move" width="100%">
<ilayer width="100%" onSelectStart="return false">
<layer width="100%" onMouseover="isHot=true;if (isN4) ddN4(divpop2)" onMouseout="isHot=false">
<font face="Arial" color="#FFFFFF">标题2</font>
</layer>
</ilayer>
</td>
<td style="cursor:hand" valign="top">
<a href="#" onClick="hideMe(2);return false"><font color=#ffffff size=2 face=arial style="text-decoration:none">X</font></a>
</td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF" style="padding:14px" colspan="2">
这里可以放文字也可以放图片 </td>
</tr>
<tr>
<td align="right" bgcolor="#EFEFEF" width="100%" height="25" colspan="2" style="padding:5px"><input type="checkbox" name="chkbox2" id="chkbox2" value="checkbox" onFocus="this.blur();" onClick="hideMe(2);"> 24小时内不再显示 </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<script language="JavaScript">
<!--
cookiedata = document.cookie;
for (i=0;i<3;i++){
if ( cookiedata.indexOf("mainPop"+i+"=done") < 0 ) {
document.all['divpop'+i].style.visibility = "visible";
}
else {
document.all['divpop'+i].style.visibility = "hidden";
}
}
//-->
</script>
</body>
</html>