手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >javascript操作表格
javascript操作表格
摘要:PowerTablebody{FONT-SIZE:9pt;PADDING-RIGHT:0px;PADDING-LEFT:0px;PADDIN...

Power Tablebody{ FONT-SIZE: 9pt; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px;}input { FONT-SIZE: 9pt; height: 15pt; width:50px; cursor: default;}table{ font-size: 9pt; word-break:break-all; cursor: default; BORDER: black 1px solid; background-color:#eeeecc; border-collapse:collapse; border-Color:#999999; align:center;}/* This following code are designed and writen by Windy_sk You can use it freely, but u must held all the copyright items!*/

var Main_Tab = null;var cur_row = null;var cur_col = null;var cur_cell = null;var Org_con = "";var sort_col = null;

var show_col = false;var charMode = 1;var act_bgc = "#BEC5DE";var act_fc = "black";var cur_bgc = "#ccffcc";var cur_fc = "black";

function init(){ cur_row = null; cur_col = null; cur_cell = null; sort_col = null; Main_Tab = PowerTable; read_def(Main_Tab) Main_Tab.onmouseover = overIt; Main_Tab.onmouseout = outIt; Main_Tab.onclick = clickIt; Main_Tab.ondblclick = dblclickIt; Org_con = Main_Tab.outerHTML; arrow = document.createElement("SPAN"); arrow.style.cssText = "PADDING-RIGHT: 0px; MARGIN-TOP: -3px; PADDING-LEFT: 0px; FONT-SIZE: 10px; MARGIN-BOTTOM: 2px; PADDING-BOTTOM: 2px; OVERFLOW: hidden; WIDTH: 10px; COLOR: blue; PADDING-TOP: 0px; FONT-FAMILY: webdings; HEIGHT: 11px";}

function window.onload(){ init();

drag = document.createElement("DIV"); drag.innerHTML = ""; drag.style.textAlign = "center"; drag.style.position = "absolute"; drag.style.cursor = "hand"; drag.style.border = "1 solid black"; drag.style.display = "none"; drag.style.zIndex = "999"; document.body.insertBefore(drag); setInterval("judge_move()",100); setInterval("showContent.value=Main_Tab.innerHTML;monitor.value='cur_row: '+cur_row+'; cur_col: '+cur_col + '; sort_col: ' +sort_col",1000);

sel_Mode.selectedIndex=charMode;}

function judge_move(){ move[0].disabled=(cur_row == null || cur_row

【javascript操作表格】相关文章:

JavaScript的Date()方法使用详解

谈一谈javascript中继承的多种方式

javascript制作的滑动图片菜单

Node.js中JavaScript操作MySQL的常用方法整理

javascript中clipboardData对象用法

详谈javascript中的cookie

javascript匹配车牌号正则表达式

JavaScript基本数据结构

javascript字符串与数组转换汇总

javascript生成不重复的随机数

上一篇: popdiv
精品推荐
分类导航