摘要: document.formName.fieldName.focus(); //此语句获得焦点formName:当前表单的名字fieldName:元素名字js:document.login.userName.focus(); //实际代码注:document.getElementById("txkk") 这里用到的是ID,而上面用到的是name。这是两者的区别。 阅读全文
posted @ 2013-09-05 11:47 阿浪cookie 阅读(177) 评论(0) 推荐(0) 编辑
摘要: if((user.value == a.value) && ((hex_md5(pass.value)) == b.value)){var txkk = document.getElementById("txkk");txkk.style.color = "#0033CC";txkk.innerHTML = "原管理员信息验证通过,请设置新的ID和密码!";var newuser = document.getElementById("newuser");var newpass = document. 阅读全文
posted @ 2013-09-05 11:42 阿浪cookie 阅读(857) 评论(0) 推荐(0) 编辑
摘要: HTML代码传值:http://www.w3school.com.cn/welcome.php?name=Peter&age=37$_GET接收:Welcome .You are years old!$_GET 变量用于收集来自 method="get" 的表单中的值。从带有 GET 方法的表单发送的信息,对任何人都是可见的(会显示在浏览器的地址栏),并且对发送的信息量也有限制(最多 100 个字符)。 阅读全文
posted @ 2013-09-03 00:21 阿浪cookie 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 当有框架时,顶级窗口定向链接。 阅读全文
posted @ 2013-09-02 11:43 阿浪cookie 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-02 11:36 阿浪cookie 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 请把鼠标移动到单词上,这样会看到鼠标指针的变化: AutoCrosshairDefaultPointerHandMovee-resizene-resizenw-resizen-resizese-resizesw-resizes-resizew-resizetextwaithelp 阅读全文
posted @ 2013-09-02 03:06 阿浪cookie 阅读(875) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-01 03:58 阿浪cookie 阅读(139) 评论(0) 推荐(0) 编辑
摘要: javascript输出语句:document.write(内容);PHP输出语句:echo 内容;print_r(内容);printf(%d,内容);var_dump(内容);注意:如果内容是字符串一定要加引号;如果内容是变量,直接使用。 阅读全文
posted @ 2013-08-29 19:49 阿浪cookie 阅读(200) 评论(0) 推荐(0) 编辑
摘要: UTF8字符集的设置情况下,每个汉字占三个字节。 阅读全文
posted @ 2013-08-29 16:19 阿浪cookie 阅读(217) 评论(0) 推荐(0) 编辑
摘要: $_POST 使用时,要大写!在点击提交按钮时,窗体会传递一些数据到指定的窗口。此时$_POST会接收数据,成为一个数组。基本上所有的具有name的元素的值都会被传递,但重置按钮的不会。姓名:性别:爱好:年龄:结果:array(5) { ["name"]=> string(6) "刘海" ["sex"]=> string(3) "男" ["aihao"]=> string(6) "赚钱" ["age"]=> string(2) &q 阅读全文
posted @ 2013-08-29 16:12 阿浪cookie 阅读(421) 评论(0) 推荐(0) 编辑