点击收缩表格某行,这到底错在哪里?简直疯了. 老大,你这个weather要用引号引起,不然是个变量名,你没有这个变量撒 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 补充:onclick="CLICK('weather')" <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> jquery 点击文本框,弹出window,此时文本框不能继续输入 如何让HTML中的一个BUTTON成为窗体默认的按钮 转ASP代码 如何用javascript读取xml一节点的属性值? 请教高手,在线等待!! 怎么写这个函数?! 如何在TextBox上右键,关掉IE的菜单,同时实现自已的右键菜单? extjs window.showModalDialog 被遮挡 简单问:)欢迎拿分. 如何选中select? 在线网页编辑器在Firefox下载如何才能运行呢? 如何知道JavaScript脚本中有哪些对象
onclick="CLICK('weather')"
<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>