电脑爱好者之家

解决ie7里面的javascript动态图片效果不能显示

时间:2014-02-10 00:30来源:未知 作者:机器AI 点击:
解决ie7里面的javascript动态图片效果不能显示?2007-06-14 10:38把代码换成这样的就可以了; table width=225 height=170 border=0 align=center cellpadding=0 cellspacing=0 tr td height=170 table cellspacing=0 cellpadding=0 align=center border=0 tr

解决ie7里面的javascript动态图片效果不能显示?2007-06-14 10:38把代码换成这样的就可以了;


<table width="225" height="170" border="0" align="center" cellpadding="0" cellspacing="0">
                   <tr>
                     <td height="170">                       <table cellspacing="0" cellpadding="0" align="center" border="0">
                       <tr align="center">
                         <td align="center">
   <script language="JavaScript" type="text/javascript">
var status;
var imgUrl=new Array();
var imgLink=new Array();
var imgTz=new Array();
var adNum=3;


imgUrl[1]="http://www.szshengbang.com/cn/images/tu_bannertu6.jpg";
imgLink[1]="http://www.szshengbang.com/cn/images/tu_bannertu6.jpg";
imgTz[1]="<a href=news/news1.html target=_blank>http://www.szshengbang.com/cn/images/tu_bannertu6.jpg</a>";

imgUrl[2]="http://www.shanghaijt.com/images/banner_client.jpg";
imgLink[2]="http://www.shanghaijt.com/images/banner_client.jpg";
imgTz[2]="<a href=news/gd16_news.html class=a11 target=_blank>新闻标题2</a>";

imgUrl[3]="http://www.iamigo.cn/docc/images/banner.jpg";
imgLink[3]="http://www.iamigo.cn/docc/images/banner.jpg";
imgTz[3]="<a href=news/gd16_news.html class=a11 target=_blank>新闻标题2</a>";

 

 


var imgPre=new Array();
var j=0;
for (i=1;i<=adNum;i++) {
if( (imgUrl[i]!="") && (imgLink[i]!="") ) {
j++;
} else {
break;
}
}

function playTran(){
if (document.all)
imgInit.filters.revealTrans.play();
}

var key=0;
function nextAd(){
if(adNum<j)adNum++ ;
else adNum=1;

if( key==0 ){
key=1;
} else if (document.all){
imgInit.filters.revealTrans.Transition=6;
imgInit.filters.revealTrans.apply();
playTran();
}
document.images.imgInit.src=imgUrl[adNum];
          document.getElementById('shouming').innerHTML=imgTz[adNum];

theTimer=setTimeout("nextAd()", 4000);
}


function goUrl(){
jumpUrl=imgLink[adNum];
jumpTarget='_blank';
if (jumpUrl != ''){
if (jumpTarget != '')
window.open(jumpUrl,jumpTarget);
else
location.href=jumpUrl;
}
}
window.onload=nextAd
</script>
                         <a href="javascript:goUrl()"><img class="pic" style="FILTER: revealTrans(duration=2,transition=6)" height="206" src="" width="612" border="0" name="imgInit" /></a></td>
                       </tr>
                       </table></td></tr>

                <tr>
                     <td bgcolor="#F2FAFD">
    
      <table width="100%" border="0" cellspacing="0" cellpadding="4">
                       <tr>
                         <td id="shouming" align="center"></td>
                       </tr>
                     </table>
    
      </td>
                   </tr>
                 </table>
 

(责任编辑:机器AI)
织梦二维码生成器
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 验证码:点击我更换图片
栏目列表
推荐内容