日期:2014-05-16 浏览次数:20364 次
<script language="JavaScript"> <!-- function $(o) { return document.getElementById(o); } function F(pid) { pid==0?($("ue0").style.width=$("ue0").style.height=10+"px"):($("ue1").style.width=$("ue1").style.height=10+"px"); } //--> </script> <div style="background-color:red;width:100px;height:100px;" id="ue0"></div> <div style="background-color:blue;width:100px;height:100px;" id="ue1"></div> <input type="button" value="给我变 F(0)" onclick="F(0)"> <input type="button" value="给我变 F(1)" onclick="F(1)">