广告联盟网

 找回密码
 注册
查看: 646|回复: 3
打印 上一主题 下一主题

统计代码与我站一段代码有冲突,请求帮助

[复制链接]
跳转到指定楼层
1#
发表于 2005-12-4 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
非常感谢你们提供的GG统计代码,加入代码后,发现统计代码与我站一段代码有冲突,导致应变换显示图片的地方出现undefined.

为证实问题所在,复制了一份页面,去除了统计代码,此时是正常的

现将这段图片显示代码贴在下面,非常希望得到你们的帮助,应如何修改哪个参数

var scrollerwidth=543;
var scrollerheight=138;
var scrollerbgcolor='';
var pausebetweenimages=5000;
var slideimages=new Array()
slideimages[0]='<a href=&quot;xxlr1.asp?ID=5548&quot;><img src=&quot;img0/a2.jpg&quot; alt=&quot;&quot; border=0&quot;></a>';
slideimages[1]='<a href=&quot;XXLR1.ASP?ID=6629&quot;><img src=&quot;photo2/200412/a2.jpg&quot; alt=&quot;&quot; border=0&quot;></a>';

if (slideimages.length>1)
i=2
else
i=0
function move1(whichlayer){
tlayer=eval(whichlayer)
if (tlayer.top>0&&tlayer.top<=7){
tlayer.top=0
setTimeout(&quot;move1(tlayer)&quot;,pausebetweenimages)
setTimeout(&quot;move2(document.main.document.second)&quot;,pausebetweenimages)
return
}
if (tlayer.top>=tlayer.document.height*-1){
tlayer.top-=7
setTimeout(&quot;move1(tlayer)&quot;,100)
}
else{
tlayer.top=scrollerheight
tlayer.document.write(slideimages)
tlayer.document.close()
if (i==slideimages.length-1)
i=0
else
i++
}}
function move2(whichlayer){
tlayer2=eval(whichlayer)
if (tlayer2.top>0&&tlayer2.top<=7){
tlayer2.top=0
setTimeout(&quot;move2(tlayer2)&quot;,pausebetweenimages)
setTimeout(&quot;move1(document.main.document.first)&quot;,pausebetweenimages)
return
}
if (tlayer2.top>=tlayer2.document.height*-1){
tlayer2.top-=7
setTimeout(&quot;move2(tlayer2)&quot;,100)
}
else{
tlayer2.top=scrollerheight
tlayer2.document.write(slideimages)
tlayer2.document.close()
if (i==slideimages.length-1)
i=0
else
i++
}}
function move3(whichdiv){
tdiv=eval(whichdiv)
if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=7){
tdiv.style.pixelTop=0
setTimeout(&quot;move3(tdiv)&quot;,pausebetweenimages)
setTimeout(&quot;move4(second2)&quot;,pausebetweenimages)
return
}
if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1){
tdiv.style.pixelTop-=7
setTimeout(&quot;move3(tdiv)&quot;,100)
}
else{
tdiv.style.pixelTop=scrollerheight
tdiv.innerHTML=slideimages
if (i==slideimages.length-1)
i=0
else
i++
}
}
function move4(whichdiv){
tdiv2=eval(whichdiv)
if (tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=7){
tdiv2.style.pixelTop=0
setTimeout(&quot;move4(tdiv2)&quot;,pausebetweenimages)
setTimeout(&quot;move3(first2)&quot;,pausebetweenimages)
return
}
if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1){
tdiv2.style.pixelTop-=7
setTimeout(&quot;move4(second2)&quot;,100)
}
else{
tdiv2.style.pixelTop=scrollerheight
tdiv2.innerHTML=slideimages
if (i==slideimages.length-1)
i=0
else
i++
}}
function startscroll(){
if (document.all){
move3(first2)
second2.style.top=scrollerheight
}
else if (document.layers){
move1(document.main.document.first)
document.main.document.second.top=scrollerheight+7
document.main.document.second.visibility='show'
}}
window.onload=startscroll
//-->
                  </SCRIPT>
                   <ILAYER id=main bgcolor=&quot;&{scrollerbgcolor};&quot;height=&quot;&{scrollerheight};&quot;width=&quot;&{scrollerwidth};&quot;><LAYER id=first width=&quot;&{scrollerwidth};&quot; top=&quot;1&quot; left=&quot;0&quot;>
                  <SCRIPT language=JavaScript1.2>
if (document.layers)
document.write(slideimages[0])
                  </SCRIPT>
                  </LAYER><LAYER id=second width=&quot;&{scrollerwidth};&quot; top=&quot;0&quot; left=&quot;0&quot; visibility=&quot;hide&quot;>
                  <SCRIPT language=JavaScript1.2>
if (document.layers)
document.write(slideimages[1])
                  </SCRIPT>
                  </LAYER></ILAYER>
                  <SCRIPT language=JavaScript1.2>
<!--
if (document.all){
document.writeln('<span id=&quot;main2&quot; style=&quot;position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hiden;background-color:'+scrollerbgcolor+'&quot;>')
document.writeln('<div style=&quot;position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0;top:0&quot;>')
document.writeln('<div id=&quot;first2&quot; style=&quot;position:absolute;width:'+scrollerwidth+';left:0;top:1;&quot;>')
document.write(slideimages[0])
document.writeln('</div>')
document.writeln('<div id=&quot;second2&quot; style=&quot;position:absolute;width:'+scrollerwidth+';left:0;top:0&quot;>')
document.write(slideimages[1])
document.writeln('</div>')
document.writeln('</div>')
document.writeln('</span>')
}
//-->
2#
 楼主| 发表于 2005-12-5 | 只看该作者
期待啊,管理员。


好象论坛比较喜欢删帖。呵呵
3#
发表于 2005-12-5 | 只看该作者
不要发一些让管理员怀疑你目的的帖子,否则还有可能被禁止发言。如果有问题就针对问题讨论,不要千方百计地帖出自己站点的任何信息。
如果帖子比较容易修改我们会删除那些透露站点信息的内容,如果不容易修改就会删除,这里不是一个宣传的好地方。
4#
发表于 2005-12-5 | 只看该作者
不要发一些让管理员怀疑你目的的帖子,否则还有可能被禁止发言。如果有问题就针对问题讨论,不要千方百计地帖出自己站点的任何信息。
如果帖子比较容易修改我们会删除那些透露站点信息的内容,如果不容易修改就会删除,这里不是一个宣传的好地方。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|广告联盟网  

GMT, 2024-9-21 , Processed in 0.062930 second(s), 19 queries .

Powered by Discuz! X3.2

© 2005-2021 www.ggads.com GGADS 广告联盟网

快速回复 返回顶部 返回列表