爱易网
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 浏览次数:20251 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<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
上一篇:狡猾的按钮特效
下一篇:极酷的表格
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
美国电影协会在华起诉迅雷侵权 要求赔偿并道歉
微信收费形式三选一 腾讯或变身运营商
巧用百度推行系统 突显竞价效果
首家国有独资P2P平台上线 或预示政策日渐明朗
蓝宝石PK大猩猩玻璃:作为屏幕谁更有优势?
组建铁塔公司倒逼运营商改革 或加速4G网建设
电信设备商淘金中国4G:华为中兴领衔
支付宝27日晚间曝严重破绽:买卖记载可被搜索
京东封杀财付通:终极目标是电商生态圈
推荐阅读
更多>
广东移动董事长徐龙受调查 圈内对其褒贬不一
曝阿里巴巴一怀孕员工过劳死 加班情况引争议
小米移动芯片:英伟达退出,终会加强与联发科合作
苹果股价突破100美元大关:投资者看好iPhone 6
任正非:华为决不上市 上市公司股东贪婪而短视
170号码扎堆上市:手机话费私人定制时代到来?
美图手机2问世 三大问题令其市场销量堪忧
诺基亚仍是第二大手机商:功用机有利可图
2013年至今中国互联网行业十大并购案汇总
亚马逊宣布新春大促策略 欲打造另一个"黑五"
微软小冰复活再战移动端:改与米聊、易信和触宝合作
弯曲变形:手机全新的交互方式
中国电信内外受困 去电信化思绪待改
微博启动自媒体计划 粉丝+收入双激励是亮点
传苹果与雅虎协作信息提供 进一步摆脱谷歌
总部大楼已换微软Logo:回忆诺基亚的兴衰史
腾讯为何在与阿里百度的收购比赛中当看客?
腾讯微信昨晚再现大规模故障 多地受到影响
阿里巴巴上市后雅虎将面临更大的业绩压力
北京今日实现用支付宝钱包为公交卡充值