onpropertypchange
更新時間:2006年07月01日 00:00:00 作者:
<html>
<head>
<script language="javascript">
function changeBox(status)
{
textbox.style.display = status ? "" : "none"
}
</script>
<script language="javascript" for="test" event="onpropertychange">
var propName = event.propertyName
var propValue = this[propName]
switch(propName)
{
case "checked":
changeBox(propValue)
break;
}
</script>
</head>
<body>
<input type="radio" id="test" name="radio" checked="true" />
<input type="radio" name="radio" />
<input id="textbox" />
</body>
</html>
<div style="position: absolute; top: 10; right: 10; width: 148; height: 18;cursor:hand">
<input type="button" name="Button" value="查看源代碼" onClick= 'window.location = "view-source:" + window.location.href'></div>
<head>
<script language="javascript">
function changeBox(status)
{
textbox.style.display = status ? "" : "none"
}
</script>
<script language="javascript" for="test" event="onpropertychange">
var propName = event.propertyName
var propValue = this[propName]
switch(propName)
{
case "checked":
changeBox(propValue)
break;
}
</script>
</head>
<body>
<input type="radio" id="test" name="radio" checked="true" />
<input type="radio" name="radio" />
<input id="textbox" />
</body>
</html>
<div style="position: absolute; top: 10; right: 10; width: 148; height: 18;cursor:hand">
<input type="button" name="Button" value="查看源代碼" onClick= 'window.location = "view-source:" + window.location.href'></div>
相關(guān)文章
用JavaScript頁面不刷新時全選擇,全刪除(GridView)
其中的ctl00_MainContent_grvDevelopKit是在后臺代碼中的<table>中的。2009-04-04js正則實現(xiàn)的密碼框簡單制作,還可以替換成自己想用得符號
js正則實現(xiàn)的密碼框簡單制作,還可以替換成自己想用得符號...2007-10-10