这个函数怎么写? 文本区域显示/隐藏的问题. txtt.style.display = "none"; Composition.style.display = ""; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不错,就是这样的,javascript的功能很大,但是细节一不注意就出错。 在IFRAME前面加<DIV ID="Composition">......然后txtt.style.display = "none"; Composition.style.display = ""; <html> <head> <title></title> <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1"> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> <script language="javascript"> function hideElement(){ if (myInput.style.display=="none") myInput.style.display=""; else myInput.style.display= "none"; } </script> </head> <body> <INPUT id="myInput" type="text" name="pk"><br> <INPUT id="Button1" type="button" value="Button" name="Button1" onclick="hideElement()"> </body></html> 算24点不出结果,为啥额?求大神解释额。。感觉没错= = ckeditor 无法获取内容 高手进!! thickbox3.1 自适应大小 frame子框架间的重定向操作 jquery一个入门的问题 jsp与数据库交互问题 跨域修改div漂浮层尺寸的问题 一个正则表达式 jquery加载数据 高手求教!微软中国主页左侧的导航栏是怎么做出来的? 关于下面代码-访问frame怎么做? 用JAVASCRIPT怎样驱动声音文件
txtt.style.display = "none";
Composition.style.display = "";
<head>
<title></title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<script language="javascript">
function hideElement(){
if (myInput.style.display=="none")
myInput.style.display="";
else
myInput.style.display= "none";
}
</script>
</head>
<body>
<INPUT id="myInput" type="text" name="pk"><br>
<INPUT id="Button1" type="button" value="Button" name="Button1" onclick="hideElement()">
</body>
</html>