日期:2014-05-18  浏览次数:20696 次

这个"ELSE"为什么不执行,郁闷啊!!!
<script   language= "javascript ">
function   hide()
        document.getElementById( "zwf_log ").style.display= "none "
end   function
function   not_hide()      
      if   (document.getElementById( "zwf_log ").style.display= "none ")               {document.getElementById( "zwf_log ").style.display= "block "}
else
{document.getElementById( "zwf_log ").style.display= "none "}
end   function
</script>
<body   onLoad= "hide() ">
        <table   width= "100% "hborder= "0 "   cellpadding= "0 "   cellspacing= "0 "   background= "img/line2.gif "   class= "table5 ">
            <tr>
                <td   height= "26 "   align= "center "     onClick= "not_hide() "> 日  志 </td>
            </tr>
        </table>
        <table   width= "100% "   border= "0 "   cellpadding= "0 "   cellspacing= "0 "   id= "zwf_log ">
            <tr>
                <td   height= "21 "   align= "center "   valign= "bottom ">
<a   href= "zwf_log_ll.asp "   target= "mainFrame "> 撰写日志 </a>
</td>
    </tr>
    <tr>
                <td   height= "26 "   align= "center ">
<hr   width= "160 "   size= "1 "   noshade>
修改日志
</td>
    </tr>
    <tr>
<td   height= "35 "   align= "center "   valign= "top ">
<hr   width= "160 "   size= "1 "   noshade>
<a   href= "zwf_log_list.asp "   target= "mainFrame "> 查询日志 </a>
</td>
            </tr>
        </table>

</body>

------解决方案--------------------
function hide()
document.getElementById( "zwf_log ").style.display= "none "
end function
你这是vbscript的写法吧


------解决方案--------------------
if (document.getElementById( "zwf_log ").style.display= "none ")
应该是
if (document.getElementById( "zwf_log ").style.display== "none ")
两个=号才对。
------解决方案--------------------
if判断里面是== 不是=
------解决方案--------------------
赋值和相等还是有好大的区别的!