<script>
function doShow(obj){
if(obj.value == 0) document.form1.txt.style.display = "inline";
else document.form1.txt.style.display = "none";
}
</script><form name="form1">
<input type="radio" name="ck" value="0" checked="true" onclick="doShow(this);"/>
<input type="text" name="txt" style="display:inline;"/>
<br>
<input type="radio" name="ck" value="1" onclick="doShow(this);"/><br>
<input type="radio" name="ck" value="2" onclick="doShow(this);"/><br>
<input type="radio" name="ck" value="3" onclick="doShow(this);"/><br>
<input type="radio" name="ck" value="4" onclick="doShow(this);"/><br>
</form>
function doShow(obj){
if(obj.value == 0) document.form1.txt.style.display = "inline";
else document.form1.txt.style.display = "none";
}
</script><form name="form1">
<input type="radio" name="ck" value="0" checked="true" onclick="doShow(this);"/>
<input type="text" name="txt" style="display:inline;"/>
<br>
<input type="radio" name="ck" value="1" onclick="doShow(this);"/><br>
<input type="radio" name="ck" value="2" onclick="doShow(this);"/><br>
<input type="radio" name="ck" value="3" onclick="doShow(this);"/><br>
<input type="radio" name="ck" value="4" onclick="doShow(this);"/><br>
</form>
解决方案 »
- 标题栏颜色,状态栏颜色,父窗口和子窗口一起关闭
- IE8不支持iframe链接
- 如何用execCommand 执行 new window命令,对应参数是什么
- 请教一个在网页中js控制默认横向打印的问题
- 谁能用javascript帮我把这个table中的内容取出来
- Jquery ui 弹出窗中如何加载别的页面,一定要用iframe吗
- 使用J s来实现 web 版的 类似于 安卓桌面的 左右滑动特效,在线等
- 一个小小小小问题,麻烦大家进来看下!(有分拿哦!)
- http://www.pearlevision.com/ifs_files/index.htm 这个效果谁能做?什么价格.
- 我想做一个载入数据的进度条,但总是先把数据都读出来之后,才显示进度条
- 怎样获得来路的标题?
- 帮帮改一下代码,小弟不会JS
{
var obj=getObject(objectId);
if(obj&&obj.style)
{
obj.style.display="none";
return true
}
return false
}function showObject(objectId)
{
var obj=getObject(objectId);
if(obj&&obj.style)
{
obj.style.display="";
return true
}
return false
}