div+css 實現無js滾動 兼容各大瀏覽器!!!


<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>對聯廣告代碼</title>
<style type="text/css">
<!--
.r1{width:180px;height:60px;background:#F5F5F5;float:right;
position:fixed !important; top:200px;
position:absolute; z-index:300; top:expression(offsetParent.scrollTop+200);right:20px;}
.r2{width:180px;height:60px;background:#F5F5F5;float:right;
position:fixed !important; top:300px;
position:absolute; z-index:400; top:expression(offsetParent.scrollTop+300);right:20px;}
.l1{width:180px;height:60px;background:#F5F5F5;float:right;
position:fixed !important; top:200px;
position:absolute; z-index:300; top:expression(offsetParent.scrollTop+200);left:20px;}
.l2{width:180px;height:60px;background:#F5F5F5;float:right;
position:fixed !important; top:300px;
position:absolute; z-index:400; top:expression(offsetParent.scrollTop+300);left:20px;}
-->
</style>
</head>
<body>
<table width="200" border="0" align="center" bgcolor="#f8f8f8" height="1000">
<tr>
<td>對聯漂浮廣告</td>
</tr>
</table>
<div class="r1"><a href="http://www.baidu.com" target='_about'><img src="/p_w_picpaths/logo.gif" border="0"/></a></div>
<div class="r2"><a href="http://www.codefans.net" target='_about'><img src="/p_w_picpaths/logo.gif" border="0"/></a></div>
<div class="l1"><a href="http://www.baidu.com" target='_about'><img src="/p_w_picpaths/logo.gif" border="0"/></a></div>
<div class="l2"><a href="http://www.sina.com" target='_about'><img src="/p_w_picpaths/logo.gif" border="0"/></a></div>
</body>
</html>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章