<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<TITLE>测试3</TITLE>
<STYLE type="text/css">
<!--
#leftDIV {
position:absolute;
left:2px;
top:49px;
width:120px;
height:273px;
z-index:1;
}
#rightDIV {
position:absolute;
left:883px;
top:54px;
width:121px;
height:273px;
z-index:2;
}
#closeLDIV {
position:absolute;
left:62px;
top:301px;
width:43px;
height:16px;
z-index:3;
}
#closeRDIV {
position:absolute;
left:894px;
top:307px;
width:43px;
height:17px;
z-index:4;
}
td {
font-size:12px
}
A {
color:#0000FF
}
#apDiv1 {
position:absolute;
left:183px;
top:117px;
width:140px;
height:141px;
z-index:5;
}
#apDiv2 {
position:absolute;
left:32px;
top:359px;
width:141px;
height:124px;
z-index:5;
}
#Layer1 {
position:absolute;
width:151px;
height:115px;
z-index:2;
left: 319px;
top: 89px;
}
-->
</STYLE>
<script language="javascript">
function check(){
var name=document.loginform.username.value;
var password=document.loginform.password.value;
if(name==""||password==""){
alert("用户名或密码不能为空!");
}
}
function closeLeft(){
document.getElementById("closeLeft").style.display='none';
document.getElementById("left").style.display='none';
}
function closeRight(){
document.getElementById("closeright").style.display='none';
document.getElementById("right").style.display='none';
}
var x=50,y=60;
var xin=true,yin=true;
var step=1;
var delay=10;
function floatAd(){
var L=T=0;
var R=document.body.offsetWidth-document.getElementById("Layer1").offsetWidth;
var B=document.body.offsetHeight-document.getElementById("Layer1").offsetHeight;
document.getElementById("Layer1").style.left=x;
document.getElementById("Layer1").style.top=y;
x=x+step*(xin?1:-1);
if(x<L){xin=true;x=L;}
if(x>R){xin=false;x=R;}
y=y+step*(yin?1:-1);
if(y<T){yin=true;y=T;}
if(y>B){yin=false;y=B;}
setTimeout("floatAd()",delay);
}
</script>
</HEAD>
<BODY onLoad="floatAd()" >
<TABLE align="center" cellpadding="0" cellspacing="0">
<TR>
<TD>
<TABLE cellpadding="0" cellspacing="0">
<FORM method="post" action="" name="loginform" onSubmit="return check()" >
<TR>
<TD> </TD>
<TD background="images/top3.jpg" width="399" height="29" > 用户名:
<INPUT type="text" name="username" size="10" style="height:18px">
密码:
<INPUT type="password" name="password" size="10" style="height:18px">
<INPUT type="submit" value="登录" style="height:18px" >
<A href="#">注册</A> <A href="#">帮助</A> </TD>
<TD> </TD>
</TR></FORM>
</TABLE> </TD>
</TR>
<TR>
<TD ><img src="images/top.jpg">
<div id="Layer1"><img src="images/lady_0007.jpg" width="400" height="258"></div>
<div id="left" style="position:absolute;width:306px;height:115px;z-index:1;left: -3px;top: 54px;">
<img src="images/lady_0007.jpg" width="300 " height=" 200">
<div id="right" style="position:absolute;width:120px;height:38px;z-index:1;left: 597px;
top: -7px;"><img src="images/lady_0007.jpg" width="400" height="258">
<div id="closeright" style="position:absolute;
width:103px;height:35px;z-index:2;left: 297px;top: 0px;" onClick="closeRight()"><img src="images/close.gif" width="100" height="14"></div>
</div>
<div id="closeLeft" onClick="closeLeft()" style="position:absolute;
width:102px;height:18px;z-index:1;left: 188px;top: -3px;"><img src="images/close.gif" width="100" height="14"></div>
</div></TD>
</TR>
<TR>
<TD> </TD>
</TR>
<TR>
<TD > </TD>
</TR>
</TABLE>
</BODY>
</HTML>