当前位置: 首页 > 图文教程 > 网络编程 > Javascript > prototype Element学习笔记(Element篇三)

Javascript
Add a Table to a Word Document
Add Formatted Text to a Word Document
用jscript实现新建word文档
用jscript实现新建和保存一个word文档
Open and Print a Word Document
Use Word to Search for Files
Convert Seconds To Hours
Sample script that deletes a SQL Server database
Sample script that displays all of the users in a given SQL Server DB
firefox中用javascript实现鼠标位置的定位
div+css实现鼠标放上去,背景跟图片都会变化。
Locate a File Using a File Open Dialog Box
Save a File Using a File Save Dialog Box
用jscript实现列出安装的软件列表
List the Stored Procedures in a SQL Server database
Display SQL Server Login Mode
Display SQL Server Version Information
List all the Databases on a SQL Server
用jscript启动sqlserver
Stop SQL Server

Javascript 中的 prototype Element学习笔记(Element篇三)


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-12   浏览: 182 ::
收藏到网摘: n/a

上一篇把Element的所函数都梳理了一遍,下面总结一下这些函数的功能,毕竟函数太多,不分门别类一下还是没有底。 一、筛选类函数
  ancestors、recursivelyCollect、descendants、firstDescendant、immediateDescendants、previousSiblings、nextSiblings、siblings、match、up、down、previous、next、select、adjacent。
  二、增、删、改元素类函数
  insert、update、remove、replace、wrap、cleanWhitespace
  三、设置元素各种属性类函数
  visible、toggle、hidde、show、identify、readAttribute、writeAttribute、makeClipping、undoClipping
  四、样式处理类函数
  classNames、hasClassName、addClassName、removeClassName、toggleClassName、getStyle、setStyle、getOpacity、setOpacity。
  五、位置处理类函数
  getHeight、getWidth、scrollTo、getDimensions、makePositioned、undoPositioned、cumulativeOffset、positionedOffset、absolutize、relativize、cumulativeScrollOffset、getOffsetParent、viewportOffset、clonePosition。
  六、几个返回布尔型的函数
  empty、descendantOf、visible
  七、事件管理类
  fire、observe、stopObserving
  八、static函数
  extend
  基本上就是这么几类了。不过,关于位置类函数,只有取,没有设置的,功能不完善啊。这里面的查找类函数的用法文档中也没有尽言,关键是怎么写选择符