老大,你这个weather要用引号引起,不然是个变量名,你没有这个变量撒

解决方案 »

  1.   

    补充:
    onclick="CLICK('weather')"
      

  2.   

    <html>
    <head>
    <title>adfjakdfjkal</title>
    <script language="Javascript">function CLICK(did)
          {
      var dv=document.getElementById(did);
          if(dv.style.display=='none')      
         {dv.style.display='block';}
          else 
         {dv.style.display='none';}
          }      
    </script>
    </head>
    <body>
      <table class='lefttable'>
         <tr class='firstbar' style="cursor:hand">
           <td class='firstbar' background="log/firstbar.png" onclick="CLICK('weather')">Weather</td>
         </tr>
         <tr id="weather">
           <td>
           <iframe style="WIDTH: 200px; HEIGHT: 68px" border="0" marginWidth="0" src="http://weather.265.com/weather.htm" frameBorder="no" width="168" scrolling="no" height="54" allowTransparency></iframe>
           </td>
         <tr>
    </table>
    </body>
    </html>