实现:点击按钮进行判断,如果条件成功,则文本框有不可用变为可用
1.asp
<style type="text/css">
<!--
.k_1{}{
background-color :#ffffff;
}
.disabled{}{
background-color :#e1e1e1;
}

-->
</style>
<script>
function openwin(){
var Win = window.open('test.asp?tt='+form1.one.value+'',"","width=1,height=1,top=1,left=1");
}
</script>
<input name="reemail" type="text" class="k_1" id="one" size="25" maxlength="50" >
<img style="cursor:hand" src="images/p_67.gif" width="106" height="19" border="0" onclick="openwin();">
<input name="reemail" type="text" class="disabled" id="two" size="25" maxlength="50" disabled onfocus="this.className='k_1'" >
test.asp
<script language="javascript">
<!--
alert("测试成功!");
window.opener.document.form1.two.disabled =false;
opener.document.form1.two.focus();
window.close();
-->
</script>
1.asp
<style type="text/css">
<!--
.k_1{}{
background-color :#ffffff;
}
.disabled{}{
background-color :#e1e1e1;
} 
-->
</style>
<script>
function openwin(){
var Win = window.open('test.asp?tt='+form1.one.value+'',"","width=1,height=1,top=1,left=1");
}
</script>
<input name="reemail" type="text" class="k_1" id="one" size="25" maxlength="50" >
<img style="cursor:hand" src="images/p_67.gif" width="106" height="19" border="0" onclick="openwin();">
<input name="reemail" type="text" class="disabled" id="two" size="25" maxlength="50" disabled onfocus="this.className='k_1'" >test.asp
<script language="javascript">
<!--
alert("测试成功!");
window.opener.document.form1.two.disabled =false;
opener.document.form1.two.focus();
window.close();
-->
</script>


.k_1
浙公网安备 33010602011771号