爱易网
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 浏览次数:20270 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<html> <head> <title>爱易网网页特效演示,动脑小游戏</title> <style type="text/css"> <!-- body { font-family: "宋体"; font-size: 9pt; margin-top: 0px; margin-left: 0px; margin-right: 0px} A { COLOR: black; FONT-SIZE: 13px; FONT-WEIGHT: 400; TEXT-DECORATION: none } A:hover { COLOR: red; FONT-SIZE: 13px; FONT-WEIGHT: 400; TEXT-DECORATION: underline } a:active { font: 9pt "宋体"; cursor: hand; color: #FF0033 } --> </style> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <script> function ShowMenu(bMenu) { document.all.idFinder.style.display = (bMenu) ? "none" : "block" document.all.idMenu.style.display = (bMenu) ? "block" : "none" idML.className = (bMenu) ? "cOn" : "cOff" idRL.className = (bMenu) ? "cOff" : "cOn" return false } </script> <style> <!-- A.cOn {text-decoration:none;font-weight:bolder} #article {font: 12pt Verdana, geneva, arial, sans-serif; background: white; color: black; padding: 10pt 15pt 0 5pt} #article P.start {text-indent: 0pt} #article P {margin-top:0pt;font-size:10pt;text-indent:12pt} #article #author {margin-bottom:5pt;text-indent:0pt;font-style: italic} #pageList P {padding-top:10pt} #article H3 {font-weight:bold} #article DL, UL, OL {font-size: 10pt} --> </style> <script> <!-- function addList(url,desc) { if ((navigator.appName=="Netscape") || (parseInt(navigator.appVersion)>=4)) { var w=window.open("","_IDHTML_LIST_","top=0,left=0,width=475,height=150,history=no,menubar=no,status=no,resizable=no") var d=w.document if (!w._init) { d.open() d.write("<TITLE>Loading...</TITLE><EM>Loading...</EM>") d.close() d.location.replace("/assist/listing.asp?url="+escape(url)+"&desc="+escape(desc)) w.opener=self window.status="Personal Assistant (Adding): " + desc } else { window.status=w.addOption(url,desc) w.focus() } } else alert("Your browser does not support the personal assistant.") return false } // --> </script> <style> #board {cursor: default} #board TD {width: 25px; height: 25px; } </style> </head> <body> <script> var size=10 var moves = 0 var off = size*2 var on = 0 var current = null function doOver() { if ((event.srcElement.tagName=="TD") && (current!=event.srcElement)) { if (current!=null) current.style.backgroundColor = current._background event.srcElement._background = event.srcElement.style.backgroundColor event.srcElement.style.backgroundColor = "lightgrey" current = event.srcElement } } function setColor(el) { if ((el._background=="") || (el._background==null)) { el.style.backgroundColor = "yellow" el._background = "yellow" } else { el.style.backgroundColor = "" el._background = "" } } function countLights() { off = 0; on = 0 for (var x=0; x < size; x++) for (var y=0; y < size; y++) { var p = board.rows[x].cells[y] if (p._background=="yellow") on++ else off ++ } document.all.on.innerText = on if (off!=0) document.all.off.innerText = off else document.all.off.innerText = "You Win!" return (off==0) } function doClick() { setColor(current) var cellIdx = current.cellIndex var rowIdx = current.parentElement.rowIndex if (rowIdx>0) setColor(board.rows[rowIdx-1].cells[cellIdx]) if (rowIdx<size-1) setColor(board.rows[rowIdx+1].cells[cellIdx]) if (cellIdx>0) setColor(board.rows[rowIdx].cells[ce
上一篇:狡猾的按钮特效
下一篇:给文本输入框里加个小动画
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
IT时代周刊总编辑曹健:投资人刘志硕印象记
电信业营改增今起实施 运营商短期利润骤降
都是300元内 乐视盒子与小米盒子对比体验
亚马逊Fire Phone:请别拿我跟苹果三星比
靠价格战赚取资费套餐利润差,虚拟运营商必死无疑
HTC曝出特大丑闻:高管诈骗+商业间谍
扎克伯格华裔妻子首度亮相电视节目畅谈情史
清点:罗永浩推锤子ROM 小米打法遭模拟
云储存有多远:跨过数据安全问题即可到达
推荐阅读
更多>
如家撤离同程内情:祸起反水OTA“联盟”?
微信收费形式三选一 腾讯或变身运营商
HTC的三大迷惘:高管釜底抽薪 产品营销战略混乱
英特尔承认,联想最新K系列智能手机放弃英特尔处理器
充斥着假消息负能量的“秘密”缺乏普适性
618首日看京东阿里不同策略,鹿死谁手?
微软很“捉急”:补贴Win8 重加末尾按钮
京东确定IPO定价区间 最高募资16.9亿美元
传4G牌照国庆节前后发放 TD-LTE制式优先
开个房刷个卡全世界都知道个人隐私成公开秘密
优酷土豆携手新浪微博 谋攻移动视频失地
易迅大众点评缩水执行“七天后悔权”被约谈
想玩P2P?几个您必须知道的潜规则
iOS7拖累iPad 5、iPad mini2发布 传十月份推出
第二梯队也PK:当1号店“遇上”京东手机节
据消息传百度将要控股携程 整合去哪儿
原万网CTO周雷加盟亿玛 出任CTO一职
频繁自杀 折射媒体变革中的媒体人迷茫与压力并存
携程整合去哪儿陷入僵局 欲联手老对手艺龙
携程艺龙联手死磕同程 价钱烽烟蔓延至机票