设为首页收藏本站

新微赢技术网

 找回密码
 注册
搜索
热搜: 回贴
查看: 81|回复: 1
打印 上一主题 下一主题

这个代码有个重影帮我处理一下谢谢

[复制链接]
跳转到指定楼层
1#
发表于 2009-9-15 01:29:57 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
图片左上角,打开的时候有重影,以后没有,关了重新打开又有重影,帮我解决一下谢谢



代码:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script language="JavaScript">
function key(){
if(event.shiftKey){
window.close();}
//禁止shift
if(event.altKey){
window.close();}
//禁止alt
if(event.ctrlKey){
window.close();}
//禁止ctrl
return false;}
document.onkeydown=key;
  // document.oncontextmenu=new Function("event.returnValue=false;"); //禁止右键功能,单击右键将无任何反应
   document.onselectstart=new Function("event.returnValue=false;"); //禁止先择,也就是无法复制
</script>
</head>
<!--css--><style type="text/css">
body{font-family:Tahoma;font-size:14px;background:#fff;overflow:hidden}
h1,h2,h3,h4,h5,h6,form,body{padding:2px;margin:0}
table {
border-collapse:collapse; /* 关键属性:合并表格内外边框(其实表格边框有2px,外面1px,里面还有1px哦) */
border:solid #A6CBE7; /* 设置边框属性;样式(solid=实线)、颜色(#999=灰) */
border-width:1px 0 0 1px; /* 设置边框状粗细:上 右 下 左 = 对应:1px 0 0 1px */
}
table caption {font-size:14px;font-weight:bolder;}
table th,table td {border:solid #A6CBE7;border-width:0 1px 1px 0;padding:2px;font-size:12px;width:187px;}
</style>
<body>
<script>
var scrollerwidth=561
var scrollerheight=20
var scrollerbgcolor='#f3f8ef'
//3000 miliseconds=9 seconds
var pausebetweenimages=2000
var slideimages=new Array()
slideimages[0]='<a href="http://www.yahoo.com.cn" target="_blank">中文雅虎</a>         ddd'
slideimages[1]='<a href="" target="_blank">你的链接</a>'
slideimages[2]='<a href="http://www.yahoo.com.cn" target="_blank">中文雅虎1</a>'
slideimages[3]='<a href="" target="_blank">你的链接1</a>'
slideimages[4]='<a href="" target="_blank">你的链接2</a>'
slideimages[5]='<a href="http://www.yahoo.com.cn" target="_blank">中文雅虎a</a>'
slideimages[6]='<a href="" target="_blank">你的链接a</a>'
slideimages[7]='<a href="http://www.yahoo.com.cn" target="_blank">中文雅虎1b</a>'
slideimages[8]='<a href="" target="_blank">你的链接1b</a>'
slideimages[9]='<a href="" target="_blank">你的链接2b</a>'
if (slideimages.length>1)
  i=2;
else
  i=0;
function move1(whichlayer){
  tlayer=eval(whichlayer)
if (tlayer.top>0&&tlayer.top<=4){
tlayer.top=0
setTimeout("move1(tlayer)",pausebetweenimages)
setTimeout("move2(document.main.document.second)",pausebetweenimages)
return
}
if (tlayer.top>=tlayer.document.height*-1){
tlayer.top-=4
setTimeout("move1(tlayer)",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<=4){
tlayer2.top=0
setTimeout("move2(tlayer2)",pausebetweenimages)
setTimeout("move1(document.main.document.first)",pausebetweenimages)
return
}
if (tlayer2.top>=tlayer2.document.height*-1){
tlayer2.top-=4
setTimeout("move2(tlayer2)",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<=4){
tdiv.style.pixelTop=0
setTimeout("move3(tdiv)",pausebetweenimages)
setTimeout("move4(second2)",pausebetweenimages)
return
}
if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1){
tdiv.style.pixelTop-=4
setTimeout("move3(tdiv)",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<=4){
tdiv2.style.pixelTop=0
setTimeout("move4(tdiv2)",pausebetweenimages)
setTimeout("move3(first2)",pausebetweenimages)
return
}
if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1){
tdiv2.style.pixelTop-=4
setTimeout("move4(second2)",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+5
document.main.document.second.visibility='show'
}
}
window.onload=startscroll
if (document.layers)
document.write(slideimages[0])
if (document.layers)
document.write(slideimages[1])
if (document.layers)
document.write(slideimages[0])
if (document.all){
document.writeln('<span id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hiden;background-color:'+scrollerbgcolor+'">')
document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0;top:0">')
document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidth+';left:0;top:1;">')
document.write(slideimages[0])
document.writeln('</div>')
document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';left:0;top:0">')
document.write(slideimages[1])
document.writeln('</div>')
document.writeln('</div>')
document.writeln('</span>')
}
</script>
<table width="561" align="left" >
  <tr>
    <td align="center"><font color="blue">文字广告位招租,每周10元</font></td>
    <td align="center"><font color="blue">联系QQ:<a href="tencent://message/?uin=517226831">517226831</a>或<a href="tencent://message/?uin=2332142">2332142</a></font></td>
    <td align="center"><font color="blue">非广告事宜勿扰</font></td>
  </tr>
  <tr>
    <td align="center"><font color="blue">文字广告位招租,每周10元</font></td>
    <td align="center"><font color="blue">联系QQ:<a href="tencent://message/?uin=517226831">517226831</a>或<a href="tencent://message/?uin=2332142">2332142</a></font></td>
    <td align="center"><font color="blue">非广告事宜勿扰</font></td>
  </tr>
  <tr>
    <td align="center"><font color="blue">文字广告位招租,每周10元</font></td>
    <td align="center"><font color="blue">联系QQ:<a href="tencent://message/?uin=517226831">517226831</a>或<a href="tencent://message/?uin=2332142">2332142</a></font></td>
    <td align="center"><font color="blue">非广告事宜勿扰</font></td>
  </tr>
</table>
<br>
<br>
<br>
<br>
<br>
<script src='http://s5.cnzz.com/stat.php?id=928463&web_id=928463&online=1&show=line' language='JavaScript' charset='gb2312'></script>
<p><br/>
</p>
<p> </p>
<div align="center">
<p>
  
  </p>
<p>
  <script type="text/javascript" src="http://js.tongji.cn.yahoo.com/689929/ystat.js"></script>  
<noscript>
<a href="http://tongji.cn.yahoo.com"><img src="http://img.tongji.cn.yahoo.com/689929/ystat.gif"/></a>
</noscript>
</p>
</div>
</body>
</html>
2#
发表于 2010-1-7 19:05:03 | 只看该作者
同志们,乡亲们,所有可爱漂亮的MM们,”我骄傲,因为我回帖
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

申请友链|小黑屋|最新主题|手机版|新微赢技术网 ( 苏ICP备08020429号 )  

GMT+8, 2024-11-18 06:38 , Processed in 0.088616 second(s), 8 queries , Gzip On, Memcache On.

Powered by xuexi

© 2001-2013 HaiAn.Com.Cn Inc. 寰耽

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