有什么问题请到评论中发表<br> <!--# 特效来源:http://www.mb5u.com/jscode --> <!-- 第一步:把如下代码加入<body>区域中 --> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function doit() { form.input.value = eval(form.input.value) } function Cos() { x = form.input.value if (x == '') alert('Error: Input Required'); else form.input.value = Math.cos(x); } function Sin() { x = form.input.value if (x == '') alert('Error: Input Required'); else form.input.value = Math.sin(x); } function Ln() { x = form.input.value if (x == '') alert('Error: Input Required'); else form.input.value = Math.log(x); } function Root() { x = form.input.value if (x == '') alert('Error: Input Required'); else form.input.value = Math.sqrt(x); } function Tan() { x = form.input.value if (x == '') alert('Error: Input Required'); else form.input.value = Math.tan(x); } function Icos() { x = form.input.value if (x == '') alert('Error: Input Required'); else form.input.value = Math.acos(x); } function Isin() { x = form.input.value if (x == '') alert('Error: Input Required'); else form.input.value = Math.asin(x); } function Itan() { x = form.input.value if (x == '') alert('Error: Input Required'); else form.input.value = Math.atan(x); } function Round() { x = form.input.value if (x == '') alert('Error: Input Required'); else form.input.value = Math.round(x); } function Ran() { x = form.input.value form.input.value = Math.random(x); } function Neg () { x = form.input.value if (x == '') alert('Error: Input Required'); else x = parseFloat(x) * -1; } function del() { x = form.input.value x = (x.substring) - 1 } // End --> </script> <div align="left"> <form name="form" method="post" action="javascript:doit()"> <table width="260" border="0" height="260" align="left" bordercolor="#000000" bgcolor="#000000"> <tr bgcolor="#000000"> <td colspan="7" height="2"> <div align="left"><b><font face="Arial, Helvetica, sans-serif" color="#FFFFFF">特酷高级计算器</font></b></div> </td> </tr> <tr bgcolor="#000000"> <td colspan="7" height="2"> <div align="left"> <input type="text" name="input" size="40"> </div> </td> </tr> <tr bgcolor="#000000"> <td width="50" height="4"> <input type="button" name="one" value="1" onClick="form.input.value += '1'" style="COLOR: #FFFFFF; BACKGROUND-COLOR: #666666; HEIGHT: 25 px; WIDTH: 40px"> </td> <td width="50" height="4"> <input type="button" name="two" value="2" onClick="form.input.value += '2'" style="COLOR: #FFFFFF; BACKGROUND-COLOR: #666666; HEIGHT: 25 px; WIDTH: 40px"> </td> <td width="50" height="4"> <input type="button" name="three" value="3" onClick="form.input.value += '3'" style="COLOR: #FFFFFF; BACKGROUND-COLOR: #666666; HEIGHT: 25 px; WIDTH: 40px"> </td> <td width="20" height="4"> </td> <td width="50" height="4"> <input type="button" name="clear" value="C" onClick="form.input.value = ''" style="COLOR: #FFFFFF; BACKGROUND-COLOR: #9F0004; HEIGHT: 25 px; WIDTH: 40px"> </td> <td width="50" height="4"> <input type="button" name="percent" value=" % " onClick="form.input.value = eval(form.input.value) / 100" style="COLOR: #FFFFFF; BACKGROUND-COLOR: #000000; HEIGHT: 25 px; WIDTH: 40px"> </td> <td width="50" height="4"> <input type="button" name="(" value=" ( " onClick="form.input.value += '('" style="COLOR: #FFFFF</body></html>