标签:
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <style> #fuhao{width: 20px} </style> </head> <body> <div> <input type="button" value="按钮1" onclick="a()"/> <input type="button" value="按钮2" onclick="b()"/>
<div id="div1"></div> </div> <br/><br/><br/> <div> <input type="text" id="num1"/> <input type="text" id="fuhao" /> <input type="text" id="num2"/> <input type="button" value="等于" onclick="calSum()"/> <input type="text" id="num3"/>
</div> <br/><br/><br/> <div> <input type="text" id="d1" placeholder="用户名" onclick="bi()"/> <input type="password" id="d2" placeholder="密码" onclick="bi1()"/> <input type="button" id="d3" value="提交" onclick="bi2()"/> </div> <br/><br/><br/> <div id="div2" onclick="e()"> 打发似的发技能是打发地方开始增加负担发世界的看法速度发货时间留给设计风格和 </div> <br/><br/><br/> <div> <ul> <li onclick="w()" >手机 <ol id="cai" > <li>手机发</li> <li>手机发</li> <li>手机发</li> <li>手机发</li> <li>手机发</li> </ol> </li> <li onclick="w1()" >手机 <ol id="cai1" > <li>手机发</li> <li>手机发</li> <li>手机发</li> <li>手机发</li> <li>手机发</li> </ol> </li>
<li onclick="w2()" >手机 <ol id="cai2"> <li>手机发</li> <li>手机发</li> <li>手机发</li> <li>手机发</li> <li>手机发</li> </ol> </li>
</ul> </div>
</body> <script type="text/javascript"> var a = function () { document.getElementById("div1").innerHTML = "都快放假啊可大幅度发艰苦奋斗安静地方爱回家" } var b = function () { document.getElementById("div1").innerHTML = "" } </script> <script type="text/javascript"> function calSum(){ var c1=parseFloat(document.getElementById("num1").value); var c2=parseFloat(document.getElementById("num2").value); var c=String(document.getElementById("fuhao").value); switch(c){ case"+":document.getElementById("num3").value =(c1+