一个简单的javascript事件问题 W3C标准里好像没有这个事件。由于隐藏和显示只可能通过代码执行, 而不可能像onclick一样通过用户交互引发, 因此根本不需要这个事件。要做的只是在隐藏和显示时同时调用相关的代码。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <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> <!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> jquery 滑动后坐标获取问题 小问题求解。。。。 浏览器的问题 一个简单js问题。。。 文本框同步输入问题? JavaScript脚本点击不同标题显示不同内容的问题,求助! Function.prototype.bind 的实现 JavaScript小问题!急用!谢谢! 急问高手:关于javascript和jsp交互的。 怎样才能使我按一个按钮第一次时,文本框里显示9,按第二次时显示99,..逐次类推 innerHTML的背景问题.牛人请进.只有十分了. 如何不用再次连接数据库动态刷新表格
<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>
<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>