怎么添加漂浮广告!?

2016-07-07 15:38 来源:www.chinab4c.com 作者:ecshop专家

我想添加一个漂浮广告!该怎么添加?

回答:
您可以在模版美化区找下

<!--图片漂浮广告代码开始-->
<div id="www_qpsh_com" style="position:absolute">
<!--链接地址--><a href="http://www.mimigou.com/article-70.html" target="_blank">
<!--图片地址--><img src="http://www.mimigou.com/images/piaofu.gif" border="0">
</a>
</div>
<script>
var x = 50,y = 60
var xin = true, yin = true
var step = 1
var delay = 10
var obj=document.getElementById("www_qpsh_com")
function floatwww_qpsh_com() {
var L=T=0
//by www.qpsh.com
var R= document.body.clientWidth-obj.offsetWidth
var B = document.body.clientHeight-obj.offsetHeight
obj.style.left = x + document.body.scrollLeft
obj.style.top = y + document.body.scrollTop
x = x + step*(xin?1:-1)
if (x < L) { xin = true; x = L}
if (x > R){ xin = false; x = R}
y = y + step*(yin?1:-1)
if (y < T) { yin = true; y = T }
if (y > B) { yin = false; y = B }
}
var itl= setInterval("floatwww_qpsh_com()", delay)
obj.onmouseover=function(){clearInterval(itl)}
obj.onmouseout=function(){itl=setInterval("floatwww_qpsh_com()", delay)}
</script>
<!--图片漂浮广告代码结束-->

这是我网站的漂浮。。。

演示地址 http://www.mimigou.com/

<<div id="ad" style="position:absolute">
<a href="http://www.easybuy.mobi/category.php?id=10" target="_blank">
<img src="http://www.easybuy.mobi/themes/joyo25/images/123.gif" border="0">
</a></div>
<script>
var x = 20,y = 20
var xin = true, yin = true
var step = 1
var delay = 10
var obj=document.getElementById("ad")
function floatAD() {
var L=T=0
var R= document.body.clientWidth-obj.offsetWidth
var B = document.body.clientHeight-obj.offsetHeight
obj.style.left = x + document.body.scrollLeft
obj.style.top = y + document.body.scrollTop
x = x + step*(xin?1:-1)
if (x < L) { xin = true; x = L}
if (x > R){ xin = false; x = R}
y = y + step*(yin?1:-1)
if (y < T) { yin = true; y = T }
if (y > B) { yin = false; y = B }
}
var itl= setInterval("floatAD()", delay)
obj.onmouseover=function(){clearInterval(itl)}
obj.onmouseout=function(){itl=setInterval("floatAD()", delay)}
</script>

没看到楼上的广告呢??

是啊楼主的广告去掉了?

漂浮个人觉得影响网速所以去掉了!