使用表单1.使用文本框<form name=form1><input type=text value="information ,please"name=text1></form><script>document.write("表单text1类型是: "+document.form1.text1.type+"<br>")document.write("表单text1名称是: "+document.form1.text1.name+"<br& Read More
posted @ 2013-03-15 20:59 findumars Views(279) Comments(0) Diggs(0) Edit
第九章 使用字符串1.使用字符串对象<script>mystring="gdgdfgfddddaaaaaaaaaaaabbbbbbbbbbbbbbbbbvbhg.<br>"document.write(mystring)document.write(mystring.bold())document.write(mystring.toUpperCase())</script>2.使用子字符串<script>str1="fdsf 1111 gfdgfd dfdsf cccc dddd.<br>"do Read More
posted @ 2013-03-15 20:58 findumars Views(267) Comments(0) Diggs(0) Edit
事半功倍之Javascript--(2)第五章 使用函数1.声明函数<script>function quote(){ document.write("输出语句")}</script>2.调用函数<script>function quote(){ document.write("输出语句")}quote()</script>3.了解全局变量和局部变量任何不用 var关键字声明的变量都是全局变量,任何在函数外声明的变量都是全局变量4.将参数传送给函数<script>function f(item) Read More
posted @ 2013-03-15 20:56 findumars Views(317) Comments(0) Diggs(0) Edit
JavaScript精简学习4:表单43 表单构成<form method=”post” action=”target.html” name=”thisForm”><input type=”text” name=”myText”><select name=”mySelect”><option value=”1”>First Choice</option><option value=”2”>Second Choice</option></select><br><input type= Read More
posted @ 2013-03-15 18:36 findumars Views(348) Comments(0) Diggs(0) Edit