=波波日志 > JavaScript/Ajax > IE浏览器table控件moveRow方法使用说明=
[转]IE浏览器table控件moveRow方法使用说明
Moves a table row to a new position.将表格的一行启动到另外一个外置
dhtml语法
orow = object.moverow(isource, itarget)
parameters
iSource Required. Integerthat specifies the index in the rows collection of the table row that is moved.
-1 Default. iTarget Required. Integerthat specifies where the row is moved within the rows collection.
-1 Default.
Return Value
Object. Returns a reference to the table row that is moved.
Remarks
Rows between the iSource and iTarget positions in the rows collection are shifted based on the direction the row moves.
DHTML代码范例
This example uses the moveRow method to exchange the first and second rows in a table when the user clicks a button.
+展开
-HTML
<SCRIPT>
function fnMove(){
oTable.moveRow(0,1);
}
</script>
<INPUT TYPE="button" VALUE="Change Rows" onclick="fnMove()">
<TABLE ID="oTable">
<TR><TD>Cell 1, Row 1</TD></TR>
<TR><TD>Cell 1, Row 2</TD></TR>
</TABLE>
function fnMove(){
oTable.moveRow(0,1);
}
</script>
<INPUT TYPE="button" VALUE="Change Rows" onclick="fnMove()">
<TABLE ID="oTable">
<TR><TD>Cell 1, Row 1</TD></TR>
<TR><TD>Cell 1, Row 2</TD></TR>
</TABLE>
是否符合公共标准
There is no public standard that applies to this method.
Applies To
|
TABLE, TBODY, TFOOT, THEAD | ||||||
| Move the mouse pointer over an element in the Applies To list to display availability information for the listed platforms. | |||||||
|
|||||||||||
| Move the mouse pointer over adisplay availability infor thlisted platfoms. | |||||||||||
类别:JavaScript/Ajax 作者:转载 日期:2011-03-10 【评论:0】
相关文章
暂时没有评论!
发表留言
热门博文
- AJAX跨域问题解决办法
- ajax问题总结
- jQuery dataType指定为json的问题
- ajax+asp.net+mssql无刷新聊天室
- ajax无刷新上传文件,使用iframe模仿
- ajax对象abort方法
最新博文
- jquery+flash显示图片实时加载进度插件
- jquery浮动层拖动插件
- firefox NPMethod called on non-NPObject wrapped JSObject!错误
- IE浏览器setCapture和releaseCapture介绍
- 51.la统计出问题了
- 隐藏删除ckeditor状态栏
随机博文
- firefox下光标处插入文本
- uncaught exception: [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIDOMHTMLFormElement.submit]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: :: anonymous :: line 11" data: no]
- JavaScript精粹读书笔记(7)
- js引擎工作原理学习笔记
- 怎么样把左边框架中的源代码完整赋值给右边框架的一个文本框?要求IE/FF/Opera可以运行。
- JavaScript精粹读书笔记(4)
广告商赞助

