您的位置:首页 > 其它

对联广告

2010-04-17 15:37 288 查看
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
left:17px;
top:26px;
width:96px;
height:215px;
z-index:1;
background-color: #FF6600;

}
#Layer2 {
position:absolute;
left:806px;
top:16px;
width:104px;
height:225px;
z-index:2;
background-color: #FF6600;
}
#Layer3 {
position:absolute;
left:297px;
top:18px;
width:353px;
height:31px;
z-index:3;
}
-->
</style>
<script language="javascript">
function hiddenAll(){
var l1 = document.getElementById("Layer1");
var l2 = document.getElementById("Layer2");
l1.style.display = "none";
l2.style.display = "none";
}
function showAll(){
var l1 = document.getElementById("Layer1");
var l2 = document.getElementById("Layer2");
l1.style.display = "block";
l2.style.display = "block";
}
</script>
</head>

<body>
<div id="Layer1">
<p>北风网</p>

<p>ExtJs教程</p>
<p>火热发布中!</p>
<p> </p>
<p> </p>
<p> </p>
<p>    <span onclick="hiddenAll();" style="cursor:pointer">关闭</span></p>
</div>

<div id="Layer2">
<p>北风网</p>
<p>ExtJs教程</p>
<p>火热发布中!</p>
<p> </p>
<p> </p>
<p> </p>
<p>    <span onclick="hiddenAll();" style="cursor:pointer">关闭</span></p>

</div>
<div id="Layer3">
<div align="center"><span onclick="showAll()" style="cursor:pointer">显示广告</span></div>
</div>
</body>
</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: