07 2015 档案

摘要:使用DOM的方法获取所有li元素,然后使用jQuery()构造函数把它封装为jQuery对象 列表 1 列表 2 列表 3 阅读全文
posted @ 2015-07-29 17:15 程序猿凯 阅读(1077) 评论(0) 推荐(0)
摘要:使用jQuery匹配文档中所有的li元素,返回一个jQuery对象,然后通过数组下标的方式读取jQuery集合中第1个DOM元素,此时返回的是DOM对象,然后调用DOM属性innerHTML,读取该元素 包含的文本信息 列... 阅读全文
posted @ 2015-07-29 16:59 程序猿凯 阅读(451) 评论(0) 推荐(0)
摘要:利用jQuery扩展接口为jQuery框架定义了两个自定义函数,然后调用这两个函数 在上面代码中,jQuery.fn.extend 其实是 jQuery.extend = jQuery.fn.extend = jQuery.prototype.extend。可能读者会想,如果使用jQuery.... 阅读全文
posted @ 2015-07-29 16:52 程序猿凯 阅读(494) 评论(0) 推荐(0)
摘要:jQuery链式语法演示 jQuery链式语法演示 阅读全文
posted @ 2015-07-29 11:25 程序猿凯 阅读(567) 评论(0) 推荐(0)
摘要:页面刷新按钮 阅读全文
posted @ 2015-07-28 16:51 程序猿凯 阅读(738) 评论(0) 推荐(0)
摘要:冻结页面 阅读全文
posted @ 2015-07-28 14:58 程序猿凯 阅读(337) 评论(0) 推荐(0)
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.or 阅读全文
posted @ 2015-07-28 13:52 程序猿凯 阅读(679) 评论(1) 推荐(0)
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.or 阅读全文
posted @ 2015-07-28 13:46 程序猿凯 阅读(258) 评论(0) 推荐(0)
摘要:描述:为了反映站点数据的变化,通常需要页面进行自动刷新。刷新结果可以是当前页面,也可以转换到指定页面。 实现代码: <meta http-equiv="refresh" content="3,url=http://www.baidu.com" /> 难点剖析:重点是meta元素,其属性"HTTP-E 阅读全文
posted @ 2015-07-13 18:43 程序猿凯 阅读(437) 评论(0) 推荐(0)
摘要:<script> if(navigator.cookieEnabled) { document.write("你的浏览器支持cookie功能!"); } else{ document.write("你的浏览器不支持cookie!"); }</script> 阅读全文
posted @ 2015-07-09 16:20 程序猿凯 阅读(399) 评论(0) 推荐(0)
摘要:<script type="text/javascript"> document.write("navigator对象的方法"+"<br>"); if(navigator.javaEnabled()) { document.write("浏览器支持并启用了Java的方法!"); //提示用户支持Ja 阅读全文
posted @ 2015-07-07 16:55 程序猿凯 阅读(1853) 评论(0) 推荐(0)
摘要:<script type="text/javascript"> with(document) { write("你的浏览器信息:<ol>"); write("<li>代码:"+navigator.appCodeName); write("<li>名称:"+navigator.appName); wr 阅读全文
posted @ 2015-07-07 16:20 程序猿凯 阅读(477) 评论(0) 推荐(0)
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.or 阅读全文
posted @ 2015-07-07 14:59 程序猿凯 阅读(468) 评论(0) 推荐(0)
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.or 阅读全文
posted @ 2015-07-07 14:38 程序猿凯 阅读(469) 评论(0) 推荐(0)
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.or 阅读全文
posted @ 2015-07-07 12:00 程序猿凯 阅读(395) 评论(0) 推荐(0)
摘要:<script> function dclick() { form1.text.value = "您双击了页面!"; } function Click() { form1.text.value += "您单击了页面"; } function down() { form1.text.value = " 阅读全文
posted @ 2015-07-06 16:07 程序猿凯 阅读(422) 评论(0) 推荐(0)
摘要:<script> function mymethod(str) { alert("您输入的是:"+str); } </script><form action="" method="get"><!-- 调用mymethod()函数this.value取得当前对象的值做参数 --><input type 阅读全文
posted @ 2015-07-06 15:18 程序猿凯 阅读(330) 评论(0) 推荐(0)
摘要:<body> <form action="" id="form1" name="form1" method="post"> <label>姓名: <input type="text" name="textfield" /> </label> <p> <label>密码: <input type="p 阅读全文
posted @ 2015-07-06 14:29 程序猿凯 阅读(255) 评论(0) 推荐(0)
摘要:<script type="text/javascript">window.document.write("这个网页文件来自:".bold());window.document.write(window.location.toString());</script> 阅读全文
posted @ 2015-07-06 13:32 程序猿凯 阅读(233) 评论(0) 推荐(0)
摘要:<script type="text/javascript"> function Card(name, address, phone) { this.name = name; //初始化名片信息 this.address = address; this.phone = phone; this.pri 阅读全文
posted @ 2015-07-06 11:10 程序猿凯 阅读(392) 评论(0) 推荐(0)
摘要:<script type="text/javascript">var years = new Array(1985,1970,1999,1998,2000,1963);document.write("排序前的各年份:<li>" + years+"</li>");function sortFunc( 阅读全文
posted @ 2015-07-03 16:40 程序猿凯 阅读(343) 评论(1) 推荐(0)
摘要:<script>var queue = new Array(); //购票队列function client(name) //顾客对象{ this.name = name; //顾客名字 this.ticket = NaN; //票号}queue.push(new client("Lily"),ne 阅读全文
posted @ 2015-07-02 09:25 程序猿凯 阅读(350) 评论(0) 推荐(0)