<style><!--.div{ position: absolute; border: 2px solid red; background-color: #EFEFEF; line-height:90px; font-size:12px; z-index:1000;}--></style>
下面的代码放到BODY中去
<div id="Javascript.Div" class="div" style="width:240px; height:90px;" align="center"><a href="这边放置你的广告需要链接到的地址"><img src="这边放你的广告图片的地址" /></a></div><SCRIPT LANGUAGE="JavaScript">function sc1(){ document.getElementById("Javascript.Div").style.top=document.body.scrollTop+document.body.clientHeight-document.getElementById("Javascript.Div").offsetHeight; document.getElementById("Javascript.Div").style.left=document.body.scrollLeft+document.body.clientWidth-document.getElementById("Javascript.Div").offsetWidth;;}</SCRIPT><SCRIPT LANGUAGE="JavaScript"><!--function scall(){ sc1();}window.onscroll=scall;window.onresize=scall;window.onload=scall;//--></SCRIPT><div style="position: absolute; top: 0; left: 0; width:100px; height:1000px;"></div>
上面的代码可以实现在网页右下角始终停留有一个浮动广告 并随着滚动条下移而下移