文章分类 -  javascript的常用知识点

摘要:<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>日历</title><script type="text/javascript"&... 阅读全文
posted @ 2009-12-13 22:10 坐看风起 阅读(812) 评论(1) 推荐(0)
摘要:DOM(对象文档模型)是HTML和XML得应用程序接口(API).DOM把整个页面看作有节点层次构成的文档DOM可以通过创建树来表示文档,从而使开发者对文档的内容和结构具有控制力。用DOM API可以轻松地删除、添加和替换节点。通俗的说,DOM表示文档对象模型,是动态操作HTML元素的一系列方法和属性,是HTML程序扩展的接口程序(API)。把文档表示为树HTML文档有一个嵌入标记的层级结构,它在... 阅读全文
posted @ 2009-12-02 20:19 坐看风起 阅读(1922) 评论(0) 推荐(2)
摘要:meta是用来在HTML文档中模拟HTTP协议的响应头报文。meta 标签用于网页的<head>与</head>中,meta 标签的用处很多。meta 的属性有两种:name和http-equiv。name属性主要用于描述网页,对应于content(网页内容),以便于搜索引擎机器人查找、分类(目前几乎所有的搜索引擎都使用网上机器人自动查找meta值来给网页分类)。这其中最重... 阅读全文
posted @ 2009-11-30 22:00 坐看风起 阅读(176) 评论(0) 推荐(0)
摘要:location对象BOM中比较有用的一个对象是location对象,它是window对象和document对象的属性,location对象表示载入窗口的URL,除此之外还可以解析URL,此对象有如下属性和方法(有些属性需要服务器才可以看到效果):l hash:如果URL包含#,该方法将返回该符号后的内容,如www.zpboy.com/index#student的hash将返回#student.l... 阅读全文
posted @ 2009-11-30 21:07 坐看风起 阅读(227) 评论(0) 推荐(0)
摘要:<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>js中的Math对象</title><script type="text/java... 阅读全文
posted @ 2009-11-30 20:59 坐看风起 阅读(719) 评论(0) 推荐(0)
摘要:<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>日历</title><script type="text/javascript"&... 阅读全文
posted @ 2009-11-30 20:56 坐看风起 阅读(768) 评论(0) 推荐(0)
摘要:如果页面使用框架集合,每个框架都有它自己的window对象表示,存放在frames集合中。在frames集合中,可用数字(从0开始,从左到右,逐行的)或名字对框架进行索引。如下所示:Frame.html<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" con... 阅读全文
posted @ 2009-11-30 20:53 坐看风起 阅读(716) 评论(0) 推荐(0)
摘要:<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>模拟购物车</title><style type="text/css">#m... 阅读全文
posted @ 2009-11-30 20:49 坐看风起 阅读(311) 评论(0) 推荐(0)
摘要:<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>收集信息</title><style type="text/css"><... 阅读全文
posted @ 2009-11-30 20:40 坐看风起 阅读(409) 评论(0) 推荐(0)
摘要:1. var userAgent = navigator.userAgent.toLowerCase();2. var is_opera = userAgent.indexOf('opera') != -1 && opera.version();3. var is_moz = (navigator.product == 'Gecko') && userAgent.s... 阅读全文
posted @ 2009-11-30 20:22 坐看风起 阅读(136) 评论(0) 推荐(0)
摘要:本文转载自:http://blog.csdn.net/herojams/archive/2009/07/01/4311884.aspx#_Toc232938059obj.firstChild/.lastChild/.nextSibling/.childNodes/.previousSibling should be changed. Some functions exist in IE and F... 阅读全文
posted @ 2009-11-12 11:10 坐看风起 阅读(474) 评论(0) 推荐(0)
摘要:一:JavaScript 语法上不同的 7 个方面1. CSS “float” 属性获取给定对象的特定 CSS 属性的基本语法是 object.style 属性,而且有连字符的属性要用骆驼命名法来代替。例如,获取一个 ID 为 “header” 的 div 的 background-color 属性,我们要用如下语法:?View Code JAVAS... 阅读全文
posted @ 2009-11-12 10:55 坐看风起 阅读(401) 评论(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.org/1999/xhtml"><head><meta htt... 阅读全文
posted @ 2009-10-27 14:51 坐看风起 阅读(986) 评论(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.org/1999/xhtml"><head><meta htt... 阅读全文
posted @ 2009-10-27 14:49 坐看风起 阅读(815) 评论(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.org/1999/xhtml"><head><meta htt... 阅读全文
posted @ 2009-10-27 14:43 坐看风起 阅读(4283) 评论(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.org/1999/xhtml"><head><meta htt... 阅读全文
posted @ 2009-10-27 14:41 坐看风起 阅读(1793) 评论(2) 推荐(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.org/1999/xhtml"><head><meta htt... 阅读全文
posted @ 2009-10-27 14:38 坐看风起 阅读(685) 评论(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.org/1999/xhtml"><head><meta htt... 阅读全文
posted @ 2009-10-27 14:34 坐看风起 阅读(267) 评论(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.org/1999/xhtml"><head><meta htt... 阅读全文
posted @ 2009-10-27 14:24 坐看风起 阅读(393) 评论(0) 推荐(0)
摘要:Skin.html<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>网页焕肤</title><style type="text/cs... 阅读全文
posted @ 2009-10-27 11:05 坐看风起 阅读(4063) 评论(0) 推荐(0)