background preloader

Js

Facebook Twitter

Game

IE和FireFox在js和css的23处不同点(转贴) - Java世界. 1.document.formName.item("itemName") 问题问题说明:IE下,可以使用 document.formName.item("itemName") 或 document.formName.elements ["elementName"];Firefox下,只能使用document.formName.elements["elementName"]。

IE和FireFox在js和css的23处不同点(转贴) - Java世界

解决方法:统一使用document.formName.elements["elementName"]。 2.集合类对象问题问题说明:IE下,可以使用 () 或 [] 获取集合类对象;Firefox下,只能使用 [ ]获取集合类对象。 解决方法:统一使用 [] 获取集合类对象。 3.自定义属性问题问题说明:IE下,可以使用获取常规属性的方法来获取自定义属性,也可以使用 getAttribute() 获取自定义属性;Firefox下,只能使用 getAttribute() 获取自定义属性。 解决方法:统一通过 getAttribute() 获取自定义属性。 4.eval("idName")问题问题说明:IE下,可以使用 eval("idName") 或 getElementById("idName") 来取得 id 为 idName 的HTML对象;Firefox下,只能使用 getElementById("idName") 来取得 id 为 idName 的HTML对象。 JSDoc Homepage - JavaScript Documentation Tool. RegexPal: JavaScript Regex Tester. Open Source Flash - flashjs:docs:installation. 在FireFox中实现selectNodes() 和 selectSingleNode() 方法 - 琥珀BLOG. 取得input元素中部分选中(selected)的值for IE and Firefox. Random things. 添加到收藏夹的Javascript脚本 for ie,firefox - WEB标准网站设计心得. 一片写的比较好的js cookie的文章.

沐风经典 - JS写的cookie类. Étape suivante: S'il vous plaît sélectionner un prix, entrez votre adresse courriel et de remplir vos informations de livraison pour avoir une chance de gagner! Quantité restante: 1 Quantité restante: 8 Date d'attribution: September 8, 2011 réclamation. JavaScript中的类继承(一) - lycboy - 新浪BLOG. Douglas Crockfordwww.crockford.com 翻译 ShiningRay www.nirvanastudio.org And you think you're so clever and classless and free John Lennon javascript 一种没有类的,面向对象的语言,它使用原型继承来代替类继承。

JavaScript中的类继承(一) - lycboy - 新浪BLOG

但首先,为什么我们如此关心继承呢? 第二个原因是为了代码的服用。 要展示这一点,我们要介绍一个小小的“甜点”可以主我们像一个常规的类语言一样写代码。 类继承. Prototype 源码解读 之 prototype.js(一) - Net Fetch Studio(网魂工作室)——潜龙勿用. Prototype1.3.1源代码解读. 博客园 - The shortest answer is doing - prototype.js 1.4版开发者手册(强烈推荐. Last update: March 30th 2006 中文版:THIN.

博客园 - The shortest answer is doing - prototype.js 1.4版开发者手册(强烈推荐

Prototype in scriptaculous wiki. Script.aculo.us is a set of JavaScript libraries to enhance the user interface of web sites.

Prototype in scriptaculous wiki

It provides an visual effects engine, a drag and drop library (including sortable lists), a couple of controls (Ajax-based autocompletion, in-place editing, sliders) and more. Be sure to have a look at the demos! API Documentation and Reference. Youngpup.net. Aaronboodman.com Hi, I'm Aaron Boodman.

youngpup.net

I created Greasemonkey and was a technical lead on Chrome. I live in San Francisco with Susan, Miles, and Abigail. In my spare time, I like to snowboard, travel, and ride my motorcycle. ProjectsAnswersElsewhere Browsers: How do they work? Updated frequently: Blog A journal of mostly personal stuff. Myjs- 51windows.Net. DOM-Drag. DragModule. So What is "Feed to JavaScript"? Prototype JavaScript Framework: Class-style OO, Ajax, and more. Ten good practices for writing JavaScript in 2005. 1.

Ten good practices for writing JavaScript in 2005

Make sure your JavaScript code is in balance with its environment Web Standards are a three-legged stool, or without metaphors, a threesome of technologies that should live together in harmony. (X)HTML adds structure and semantics to your content, CSS is responsible for its presentation, and the DOM provides an interface to add behavior. You keep your Web pages flexible (or: easier to understand, maintain, restyle and update behavior) by separating all three layers; structure and content from presentation, structure and content from behavior and presentation from behavior. To accomplish this, try to avoid inline behavior and use unobtrusive techniques instead.

When you attach behavior on page load, you may have to work around some known issues. Choose your markup wisely, so you can take full advantage of the power of the DOM. In those cases where CSS currently lacks cross-browser support or is missing features for adding presentation, DOM based scripting can supplement CSS. 利用鼠标滚轮控制图片自动缩放的子程序 - Liubao. 有关 string 对象的增强方法! - 经典论坛. 蓝色理想 - 用 prototype 定义自己的方法. 本文是本人通过个人理解所写成的,没有参照任何资料,如有雷同,纯属巧合,同时,如果您要引用本文文字,请注明 — 作者:windy_sk;Email:seasonx@163.net,谢谢!

蓝色理想 - 用 prototype 定义自己的方法

本文进通过实例,讲述通过 prototype 自定义方法的过程,旨在抛砖引玉,如果不对的地方,欢迎指正! Prototype 是在 IE 4 及其以后版本引入的一个针对于某一类的对象的方法,而且特殊的地方便在于:它是一个给类的对象添加方法的方法! 这一点可能听起来会有点乱,别急,下面我便通过实例对这一特殊的方法作已下讲解: 首先,我们要先了解一下类的概念,JavaScript 本身是一种面向对象的语言,它所涉及的元素根据其属性的不同都依附于某一个特定的类。 我们所常见的类包括:数组变量(Array)、逻辑变量(Boolean)、日期变量(Date)、结构变量(Function)、数值变量(Number)、对象变量(Object)、字符串变量(String) 等,而相关的类的方法,也是程序员经常用到的(在这里要区分一下类的注意和属性发方法),例如数组的push方法、日期的get系列方法、字符串的split方法等等, 但是在实际的编程过程中不知道有没有感觉到现有方法的不足? 蓝色理想 - Object对象的一些的隐藏函数介绍. 属性:Object.constructor 该属性被定义在类的prototype中,当对象实例创建后通过__proto__链可被对象实例所调用,并指向当前类的构造函数。

蓝色理想 - Object对象的一些的隐藏函数介绍

以此可判断某个对象直接所属的类是哪个(与instanceof不同,instanceof并不局限于对象直接所属的类,即使是父类也返回true)。 [示例]trace(Object.prototype.constructor == Object); //输出 truevar a = new Object();trace(a.constructor == Object); //输出 truevar b = new Array();trace(b.constructor == Array); //输出 truetrace(b.constructor == Object); //输出 falsetrace(b instanceof Object); //输出 true 代码拷贝框. Document.execCommand()说明. Png website. Multiple-Themed Windows XP CSS Desktop v1.0. 预览待上传的本地图片 - SharkUI.com. KehuiCMS技术文档-: javascript与xml实现web分页 -可慧网络 KehuiCMS 内容管理系统官方网站. 蓝色理想 - js 几种常用的表单输入判断. 网页设计师:文章教程. 蓝色理想 - 艺术设计.