浮动广告代码

mac2022-06-30  88

<!-- 浮动广告代码开始 -->

<div id="ShowAD" style="position:absolute; z-index: 100;"><div style="width:155;height:18px;font-size:14px;font-weight:bold;text-align:left;CURSOR: hand;" onClick="closead();"><font color=ff0000>关闭</font></div><IFRAME allowTransparency="true" marginwidth=0 marginheight=0 src="right.htm" frameborder=0 width=155 scrolling=no height=530></IFRAME></div>

<script>var bodyfrm = ( document.compatMode.toLowerCase()=="css1compat" ) ? document.documentElement : document.body;var adst = document.getElementById("ShowAD").style; adst.top = ( bodyfrm.clientHeight -530-22 ) + "px"; adst.left = ( bodyfrm.clientWidth -155 ) + "px";function moveR() { adst.top = ( bodyfrm.scrollTop + bodyfrm.clientHeight - 530-22) + "px"; adst.left = ( bodyfrm.scrollLeft + bodyfrm.clientWidth - 155 ) + "px";}setInterval("moveR();", 80);

function closead(){ adst.display='none';}</script>

<!-- 浮动广告代码结束 -->

==========

right.htm

==========

<html>

<body>

<h2>一个定义列表:</h2>

<dl>   <dt>计算机</dt>   <dd>用来计算的仪器 ... ...</dd>   <dt>显示器</dt>   <dd>以视觉方式显示信息的装置 ... ...</dd></dl>

</body></html>

转载于:https://www.cnblogs.com/alex-13/p/3398655.html

相关资源:简洁易用的jQuery左右对称浮动广告代码.zip
最新回复(0)