主题:关于层的显示问题
<div id="Layer2" style="position:absolute; left:150px; top:126px; width:73px; height:34px; z-index:1; background-color: #CCFFCC; layer-background-color: #CCFFCC; border: 1px none #000000; visibility: hidden;">
<p class="style6">留言不能为空请重新输入</p>
</div>
<script language="javascript">
function k()
{
if(document.form1.COMMENTS.value=="")
Layer2.style.visibility=true
else
document.form1.submit();
}
怎么老是说找不到visibility啊
<p class="style6">留言不能为空请重新输入</p>
</div>
<script language="javascript">
function k()
{
if(document.form1.COMMENTS.value=="")
Layer2.style.visibility=true
else
document.form1.submit();
}
怎么老是说找不到visibility啊