<body onload="if(document.body.clientWidth<800){document.all.show1.style.display='none';document.all.show2.style.display='none'}">
<center>
<table cellpadding=0><tr><td id=show1 width="100" style="background:red">flash</td><td>
<table width=800 height=600 style="background:yellow">
<tr><td align=center>main</td></tr></table></td>
<td id=show2 width="100" style="background:red">flash</td></tr></table>
</center>

解决方案 »

  1.   

    代码如下,哪位高手帮我改下,让他在800*600下不显示
    var imgheight
    document.ns = navigator.appName == "Netscape"
    window.screen.width>800 ? imgheight=626:imgheight=626
    window.screen.width>800 ? imgright=0:imgright=0
     function myload()
    {
    if (navigator.appName == "Netscape")
    {document.dangdang.pageY=pageYOffset+window.innerHeight-imgheight;
    document.dangdang.pageX=imgright;
    mymove();
    }
    else
    {
    dangdang.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
    dangdang.style.right=imgright;
    mymove();
    }
    }
     function mymove()
     {
     if(document.ns)
     {
     document.dangdang.top=pageYOffset+window.innerHeight-imgheight
     document.dangdang.right=imgright;
     }
     else
     {
     dangdang.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
     dangdang.style.right=imgright; setTimeout("mymove();",50)
     }
     }function MM_reloadPage(init) {  //reloads the window if Nav4 resized
      if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
        document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
      else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    }
    MM_reloadPage(true)if (navigator.appName == "Netscape")
    {
    document.write("<layer id=dangdang top=300 width=110 height=110><a href=http://www.amcc.com.cn/mz><img src='http://www.amcc.com.cn/images/mzone.gif' width=110 height=110 border=0></a></layer>");
    myload()}
    else
    {
    document.write("<div id=dangdang style='position: absolute;width:110;top:300;right:0;visibility: visible;z-index: 1'><img src='image/pic.gif' width=225 height=622 border=0></a></div>");
    myload()
    }