纯DIV/CSS对联漂浮广告代码
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!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 runat="server">
<title>无标题页</title>
<style type="text/css">
.r1
{
width: 80px;
height: 30px;
background: red;
float: right;
position: fixed !important;
top: /**/ 10px;
position: absolute;
z-index: 300;
top: expression(offsetParent.scrollTop+10);
right: 20px;
}
.l1
{
width: 80px;
height: 80px;
background: red;
float: right;
position: fixed !important;
top: /**/ 10px;
position: absolute;
z-index: 300;
top: expression(offsetParent.scrollTop+200);
left: 20px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<div class="r1">
sddfgsdfg</a>
</div>
<div class="l1">
<a href="/d/adclick.php?id=11&url=http://www.25idc.com" target='_about'>
<img src="/js/pic/piao-l-1.gif" width="80" height="80" border="0" /></a>
</div>
</div>
<div>
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
askldflkasf<br />
</div>
</form>
</body>
</html>