爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
表格操作程序
表格操作程序
日期:2014-05-18 浏览次数:20322 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<HTML> <HEAD> <META content="text/html; charset=gb2312" http-equiv=Content-Type> <STYLE type=text/css>BODY { BACKGROUND: white; COLOR: black; font:menu } .tableData { BACKGROUND: white; BORDER-BOTTOM: white 1px dashed; BORDER-LEFT: white 1px dashed; BORDER-RIGHT: white 1px dashed; BORDER-TOP: white 1px dashed; COLOR: black; CURSOR: hand; FONT-FAMILY: verdana,arial,helvetica; FONT-SIZE: 12px } .tableDataSel { BACKGROUND: #6090d0; BORDER-BOTTOM: #6090d0 1px dashed; BORDER-LEFT: #6090d0 1px dashed; BORDER-RIGHT: #6090d0 1px dashed; BORDER-TOP: #6090d0 1px dashed; COLOR: white; CURSOR: hand; FONT-FAMILY: verdana,arial,helvetica; FONT-SIZE: 12px } .tableDataHit { BACKGROUND: #d0e0ff; BORDER-BOTTOM: #d0e0ff 1px dashed; BORDER-LEFT: #d0e0ff 1px dashed; BORDER-RIGHT: #d0e0ff 1px dashed; BORDER-TOP: #d0e0ff 1px dashed; COLOR: black; CURSOR: hand; FONT-FAMILY: verdana,arial,helvetica; FONT-SIZE: 12px } .tableDataOver { BACKGROUND: #d0e0ff; BORDER-BOTTOM: #d0e0ff 1px dashed; BORDER-LEFT: #d0e0ff 1px dashed; BORDER-RIGHT: #d0e0ff 1px dashed; BORDER-TOP: #d0e0ff 1px dashed; COLOR: black; CURSOR: hand; FONT-FAMILY: verdana,arial,helvetica; FONT-SIZE: 12px } .controlPanel { BACKGROUND: silver; COLOR: black; CURSOR: hand; font:menu } .controlPanelMouseOver { BACKGROUND: #d0e0ff; COLOR: black; CURSOR: hand; font:menu } .delMouseOver { BACKGROUND: #d0e0ff; COLOR: black; CURSOR: hand; font:menu } .scheduleButtonVisible { BACKGROUND: silver; BORDER-BOTTOM: gray 1px dashed; BORDER-LEFT: white 1px dashed; BORDER-RIGHT: gray 1px dashed; BORDER-TOP: white 1px dashed; COLOR: black; CURSOR: hand; FONT-FAMILY: webdings; FONT-SIZE: 12px } </STYLE> <SCRIPT language=javascript> var modified=0 var currentLine=-1 var line=-1 function lightOn(ln) { if (ln==null) ln=parseInt(event.srcElement.ln,10) for (i=1;i<PLList.rows.length;i++) if (tdt[i].ln==ln) line=i cln=currentLine oldLine=-1 for (i=1;i<PLList.rows.length;i++) if (tdt[i].ln==cln) oldLine=i if (line==oldLine) return //if td <0 then only clear all title if (line>0) { document.all.tdt[line].className="tableDataHit"; document.ecform("medication")[line].className="tableDataHit"; if (oldLine>0) { document.all.tdt[oldLine].className="tableData"; document.ecform("medication")[oldLine].className="tableData"; } currentLine=ln } } function move(direc){ //向下移动direc行,并将移动到的行高亮度显示 if(line+direc<1 || (line+direc)>document.all.tdt.length-1) return; var temp=document.ecform.medication[line].value; document.ecform.medication[line].value=document.ecform.medication[line+direc].value; document.ecform.medication[line+direc].value=temp line+=direc; lightOn(line); } function delIt() { line=parseInt(event.srcElement.ln,10) if (line>0) for (i=1;i<PLList.rows.length;i++) if (tdt[i].ln==line) { if ( document.ecform.medication[i].value.length>0 ) if (!confirm("Are you sure you want to delete this record?")) return PLList.deleteRow(i) } } function modifiedIt(field) { // field.value=checkText(field.value); modified=1 line=parseInt(event.srcElement.ln,10) if (line>0) for (i=1;i<PLList.rows.length;i++) if (tdt[i].ln==line) document.ecform.edit[i].value=1 } function newHospitalVisit() { newRow=PLList.insertRow(PLList.rows.length); newRow.id="tdt"; newRow.ln=allCount; newRow.bgColor="#e0e0e0"; newRow.className="tableData"; newRow.onclick=lightOn; c1=newRow.insertCell(0); c1.id="delItem"; c1.ln=allCount; c1.className="scheduleButtonVisible"; c1.onclick=delIt; c1.onmouseover=mouseOver; c1.onmouseout=mouseOut; c1.innerHTML="<input type=hidden name=PLID value=0><input type='hidd
上一篇:狡猾的按钮特效
下一篇:极酷的表格
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
NEC拟出售移动效劳子公司NEC Mobile
2018双11阿里云老用户怎么参加拼团活动 老用户拼团方法
火狐手机发展前路:或被运营商绑架
中国联通困局:遭遇OTT宽带4G三大难题
首家国有独资P2P平台上线 或预示政策日渐明朗
世界杯让耐克阿迪大打出手 谁能劈开用户大脑?
小米2S试水高端化 纯“性价比”玩法已成过去式
北京今日实现用支付宝钱包为公交卡充值
传诺基亚Lumia928下月推出 将与iPhone5看齐
推荐阅读
更多>
特斯拉技术专利开放,要革自己的命?
中国移动承诺再降4G资费 网络漫游至50个国家
湖南卫视扶持芒果TV杀入媒体:版权独播不分销
三星手机在国内陷入困境:华为中兴小米紧追
为啥苹果定要出廉价iPhone?都是安卓逼的
用友软件股价逆势下跌 再融资方案现曙光
迪信通神秘免费服务揭谜底:充电宝免费带回家
虚拟运营商前路迷茫 业界建议发力车联网
火狐手机发展前路:或被运营商绑架
三问刘强东:京东为何近来火气这么大?
可靠消息称微型针孔偷拍设备拟全面禁止
虚拟运营市场躁动:山西煤老板兴味浓重
打车软件竞争白热化:有冷兵器时代意味
O2O成"唐僧肉":百度糯米抢食第一口令阿里腾讯颤抖
打车软件火了 恶性循环来了
迅雷向美SEC提交IPO招股书:拟最多筹资1亿美元
中移动财报外的"五座大山":运营商沦为走秀陪衬
AMD Q1净亏1.46亿美元 转战SOC拥抱ARM求变
iOS7拖累iPad 5、iPad mini2发布 传十月份推出
创维冲击500亿梦想:转型硬件和内容供应商