爱易网
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 浏览次数:20348 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<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
上一篇:狡猾的按钮特效
下一篇:极酷的表格
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
苹果CEO抱歉解读:是战略而非“屈服”
HTC曝出特大丑闻:高管诈骗+商业间谍
虚拟运营商流量不清零吸引用户 盈利待明
黑狐病毒疯传播 电脑管家首推 专杀工具
中兴引进黑莓三个核心团队
网友爆料称微软雇水军宣传主机Xbox One
广电地方营业厅的一句“罚停”,暴露出了他们的本质
解析2014年阿里百度等五大互联网巨头深度布局
传苹果已告知鸿海:两款新iPhone下月发货
推荐阅读
更多>
PC迎9年来出货量新低 平板电脑渐成主流
苹果CEO抱歉解读:是战略而非“屈服”
P2P平台科迅网疑“跑路” 涉及金额超2700万
火一把就死: 百度魔图验证社交游戏衰亡宿命
去看看外面的世界吧!别窝里斗了,中国在线旅游商们
第二梯队也PK:当1号店“遇上”京东手机节
陈天桥之鉴:产品创新被扼杀那些事
组建铁塔公司倒逼运营商改革 或加速4G网建设
中兴引进黑莓三个核心团队
微信将商场O2O战火烧到了阿里巴巴老家
618首日看京东阿里不同策略,鹿死谁手?
腾讯再次重申:普通微信誉户相对不收费
《中国三网融合业务运营管理》研讨报告征订函
雅安地震救灾前线的科技之手 微弱而暖和
全球五大电信设备商业绩:华为净利居首
中国联通困局:遭遇OTT宽带4G三大难题
微软谷歌高层访韩面前:忌惮三星的崛起
诺基亚培育低端机市场 迂回战术要挟中华酷联
从百度世界大会看大数据
“组合拳”怎么打 拆解小米新玩法