W3C标准里好像没有这个事件。
由于隐藏和显示只可能通过代码执行, 而不可能像onclick一样通过用户交互引发, 因此根本不需要这个事件。
要做的只是在隐藏和显示时同时调用相关的代码。

解决方案 »

  1.   

    <form name=form1  METHOD=POST id=form1 action="data_action_submit.asp" > 
    <div id="a" name="a" style="display:none;width:80px;height:80px;background:yellow" onpropertychange="here()"></div>
    <input type="button" value="change the sytle of div" onclick="a.style.display='block'" />
    </form>
    <script>
    function here()
    {
    alert("div's property of style has been changed");
    }
    </script>
      

  2.   

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title> New Document </title>
    <meta name="Generator" content="EditPlus">
    <meta name="Author" content="">
    <meta name="Keywords" content="">
    <meta name="Description" content="">
    </head><body>
    <form method=post action="">
    <DIV ALIGN="" id="div1"><input type="text" name=""></DIV>
    <input type="button" onclick="hiddenorShow();">
    </form>
    </body>
    </html>
    <script language="JavaScript1.2">
    <!--
    function hiddenorShow()
    {
    if (document.all.div1.style.display=="")
    {
    document.all.div1.style.display="none";
    test();
    }
    else
    {
    document.all.div1.style.display="";
    test();
    }

    }
    function test()
    {
    alert("test");
    }
    //-->
    </script>