关于js代码和gif图片的比较诡异的问题(顶着有分)
示例页面:
http://www.wuxicf.com/content2.asp?id=86
问题:当关闭两侧对联广告后,本来页面中的动态gif图片会静止不动!
---------------------------------
1.js 代码如下
<!--
function closeAd(){
huashuolayer2.style.display= 'none ';
huashuolayer3.style.display= 'none ';}
function winload()
{
huashuolayer2.style.top=20;
huashuolayer2.style.left=5;
huashuolayer3.style.top=20;
huashuolayer3.style.right=5;
}
if(document.body.offsetWidth> 800){
{
document.write( ' <div id=huashuolayer2 style= "position: absolute;display: block;z-index:1 "> <table width=100 border=0 cellspacing=0 cellpadding=0> <tr> <td height=10 align=right> <a href=javascript:closeAd()> <img src=/guanggao/images/close.gif width=12 height=10 border=0> </a> </td> </tr> <tr> <td> <a href= "http://www.wuxicf.com:80/guanggao/openad.asp?adid=1 " target=_blank> <img src= "http://www.wuxicf.com/gg/main1.gif " border=0 width= "88 " height= "233 " alt= "广告招租 " align=top> </a> </td> </tr> </table> </div> '
+ ' <div id=huashuolayer3 style= "position: absolute;display: block;z-index:1 "> <table width=100 border=0 cellspacing=0 cellpadding=0> <tr> <td height=10 align=right> <a href=javascript:closeAd()> <img src=/guanggao/images/close.gif width=12 height=10 border=0> </a> </td> </tr> <tr> <td> <a href= "http://www.wuxicf.com:80/guanggao/openad.asp?adid=1 " target=_blank> <img src= "http://www.wuxicf.com/gg/main1.gif " border=0 width= "88 " height= "233 " alt= "广告招租 " align=top> </a> </td> </tr> </table> </div> ');
}
winload()
}
//-->
------解决方案--------------------楼主机器有问题吧,我这里看没有问题啊
------解决方案--------------------好像是有这种问题,看看结果`