Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[疑难] 求救

[复制链接]
jmit 发表于 2007-7-24 01:50:44 | 显示全部楼层 |阅读模式
为什么这段代码在IE6下可以显示,
而在IE7下面就不能显示啦.
<!----第四块右侧自动变换显示方式图片广告----->
<table width="280" height="290" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f4f4f4">
  <tr>
    <td><script language=JavaScript>
var elady_step=3; //1:small, 3:middle, 5:big
var elady_speed=50; //20:fast, 50:middle, 80:slow
var e_tp=new Array();
var e_tplink=new Array();
var adNum_elady1=0;  
var elady_stop_sh=0;
var elady_star_sh=1;
function elady1_moveImg(){
if ((!document.all&&!document.getElementById)||(elady_stop_sh==0)) return;
if (elady_star_sh==1){
document.all.elady1_divimg.style.pixelTop=parseInt(document.all.elady1_divimg.style.pixelTop)+elady_step;}
else if (elady_star_sh==2){
document.all.elady1_divimg.style.pixelLeft=parseInt(document.all.elady1_divimg.style.pixelLeft)+elady_step;}
else if (elady_star_sh==3){
document.all.elady1_divimg.style.pixelTop=parseInt(document.all.elady1_divimg.style.pixelTop)-elady_step;}
else{
document.all.elady1_divimg.style.pixelLeft=parseInt(document.all.elady1_divimg.style.pixelLeft)-elady_step;}
if (elady_star_sh<4) elady_star_sh++;
else elady_star_sh=1;
setTimeout("elady1_moveImg()",elady_speed);}
e_tplink[0]="http://www.9nt.net.cn";
e_tp[0]="http://www.9nt.net.cn/images/gg/news/mhgg1.jpg";
e_tplink[1]="http://www.bluestar-pc.com";
e_tp[1]="http://www.9nt.net.cn/images/gg/news/lcpc.jpg";
e_tplink[2]="http://www.bluestar-pc.com";
e_tp[2]="http://www.9nt.net.cn/images/gg/news/lxbjb.jpg";
e_tplink[3]="http://www.bluestar-pc.com";
e_tp[3]="http://www.9nt.net.cn/images/gg/news/lxcz.jpg";
var currentimage=new Array();   
for (i=0;i<=5;i++){currentimage=new Image();
      currentimage.src=e_tp;
         }
         function elady1_set(){   if (document.all)
         {      e_tprotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);
               e_tprotator.filters.revealTrans.apply();   }
               }
               function elady1_playCo()
               {   if (document.all)      e_tprotator.filters.revealTrans.play()
               }function elady1_nextAd(){   if(adNum_elady1<e_tp.length-1)adNum_elady1++ ;
                     else adNum_elady1=0;
                        elady1_set();
                           document.images.e_tprotator.src=e_tp[adNum_elady1];
                              elady1_playCo();
                                 theTimer=setTimeout("elady1_nextAd()", 4000);}
                                 function elady1_linkurl(){   jumpUrl=e_tplink[adNum_elady1];
                                    jumpTarget='_blank';
                                       if (jumpUrl != ''){      if (jumpTarget != '')window.open(jumpUrl,jumpTarget);
                                             else location.href=jumpUrl;
                                                }}
function elady1_listMsg()
{   status=e_tplink[adNum_elady1];
document.returnValue = true;}
document.write("<div id='elady1_divimg' style='position:relative'>");
document.write('<a  href="javascript:elady1_linkurl()" target="_self">');
document.write('<img style="FILTER: revealTrans(duration=2,transition=20)" height=290 src="javascript:elady1_nextAd()" width=280 border=0 name=e_tprotator ></a>');
document.write("</div>");
    </script></td>
  </tr>
</table>
<!---第四块右侧自动变换显示方式图片广告--->
 楼主| jmit 发表于 2007-7-24 01:51:46 | 显示全部楼层
高手求救.
回复

使用道具 举报

理解万岁 发表于 2007-7-24 02:54:57 | 显示全部楼层
你要用DIV全用DIV要用TABLE全用TABLE不要两者混合着用
回复

使用道具 举报

skyII劲II 发表于 2007-7-24 03:02:33 | 显示全部楼层
原帖由 理解万岁 于 2007-7-24 02:54 发表
你要用DIV全用DIV要用TABLE全用TABLE不要两者混合着用

回复

使用道具 举报

godisgod 发表于 2007-7-24 03:53:07 | 显示全部楼层
原帖由 理解万岁 于 2007-7-24 02:54 发表
你要用DIV全用DIV要用TABLE全用TABLE不要两者混合着用



没得救,自宫吧,阿门。
回复

使用道具 举报

skyII劲II 发表于 2007-7-24 03:54:56 | 显示全部楼层
原帖由 godisgod 于 2007-7-24 03:53 发表



没得救,自宫吧,阿门。

阿门
回复

使用道具 举报

godisgod 发表于 2007-7-24 03:57:32 | 显示全部楼层
:) :) :) :)
回复

使用道具 举报

理解万岁 发表于 2007-7-24 03:58:58 | 显示全部楼层
还可以顺便练下葵花宝典,值了。
回复

使用道具 举报

godisgod 发表于 2007-7-24 04:03:00 | 显示全部楼层
原帖由 理解万岁 于 2007-7-24 03:58 发表
还可以顺便练下葵花宝典,值了。



世上又多了一只MOMO。。。汗。
回复

使用道具 举报

skyII劲II 发表于 2007-7-24 04:03:47 | 显示全部楼层
Discuz! info: Can not connect to MySQL server

Time: 2007-7-24 4:00am
Script: /post.php

Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
服务器端口不对,请咨询空间商正确的端口

Similar error report has beed dispatched to administrator before.
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-28 16:15 , Processed in 0.957950 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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