浮动广告问题
我想在网站的首页 右侧 放上3个 浮动图片广告 竖着排开 请问谁有相关代码 谢谢
------解决方案--------------------你找一个带你要想的效果页面,保存起来,修改即可
------解决方案-------------------- <script>
var p;
p= " <p> </p> ";
for(var i=0;i <=100;i++)
{
document.write(p);
}
</script>
<script>
var ADS = " <div id=commercial> <table width=100 border=1 cellspacing=1> <tr> <td> 广告内容1 </td> </tr> <tr> <td> 广告内容2 <tr> <td> 广告内容3 </td> </div> </td> </tr> </table> ";
document.write (ADS);
var commercial = document.getElementById( "commercial ");
commercial.style.position = "absolute ";
commercial.style.left = 50;
function intpopx()
{
commercial.style.top = document.body.scrollTop + 250;
}
var inp = setInterval( "intpopx() ",1);
</script>
是否可以帮到你~