新手入学时常学到的东西~
<script>alert('badwolf测试!');</script> //弹提示
<script>alert('呵呵!');</script> //弹提示
<script>alert(new Date());</script> //读系统时间
www.winshell.cn //点连接运行js显示时间
//点提交按钮运行js显示时间
***********************for回圈***************************
<script> <BR> var badwolf_x=""; <BR> for(var x=1; x <= 100 ; x++) <BR> { <BR> badwolf_x=badwolf_x+"x="+x; <BR> } <BR> alert(badwolf_x); <BR></script>
***********************计算器*****************************
<script> <BR> function get_sum() <BR> { <BR> var x=parseFloat(document.jisuanqi.no1.value); <BR> var y=parseFloat(document.jisuanqi.no2.value); <BR> var sum=x+y; <BR> alert(sum); <BR> // return sum; <BR> } <BR></script>