你要是想显示层图片就直接ad1和ad2去掉放上<img
src="显示图片地址">
js代码直接放到你网站页面中他这里的对联显示的是ad1和ad2你要是想显示层图片就直接ad1和ad2去掉放上<img src="显示图片地址">
<html>
<head>
<title>对联广告</title>
</head>
<script language="javascript">
function yidong()
{
var abc = document.getElementById("leftdiv")
var ab = document.getElementById("rightdiv")
abc.style.top = document.body.scrollTop
ab.style.top = document.body.scrollTop
setTimeout("yidong()",6)
}
</script>
<body onload="yidong()">
<div style="height:1600px">内容显示层</div>
<div id="leftdiv" style="position:absolutez-index:1left:10px" >
<img src="广告图片地址"></div>
<div id="rightdiv" style="position:absoluteright:10pxz-index:1">
<img src="广告图片地址"></div>
</body>
</html>