爱易网
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 浏览次数:20553 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<!--第一步:把如下代码加入<head>区域中--> <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> <!--第二步:把如下代码加入<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[cellIdx-1]) if (cellIdx<size-1) setColor(board.rows[rowIdx].cells[cellIdx+1]) moves++ document.all.moves.innerText = moves win = countLights() if (win) { board.onclick
上一篇:狡猾的按钮特效
下一篇:俄罗斯方块
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
猎豹移动上市押海外市场 与小米有合作空间
微软小冰复活再战移动端:改与米聊、易信和触宝合作
微软与摩托罗拉授权协议涵盖Android和Chrome设备
HTC与苹果三星距离扩展 C2B形式成新武器
苹果售后生态链乱象:供需失衡价钱不一
美图手机2问世 三大问题令其市场销量堪忧
黑狐病毒疯传播 电脑管家首推 专杀工具
聚美向左,唯品向右,怎能耐得住高跟和红唇的诱惑!
从雷军的“互联网七字诀”告诉你一个非妖魔化的小米
推荐阅读
更多>
P2P平台科迅网疑“跑路” 涉及金额超2700万
三大运营商合建铁塔公司真相:未涉及电信业重组
传陌陌或12月赴美IPO 估值约30亿美元
巧用百度推行系统 突显竞价效果
京东物流"最后一公里":颠覆阿里或者被阿里干掉
京东终于想明白,这些年错过的财运,都藏在女人的时装下
墨迹天气:产品创新以攻为守方能对抗巨头
诺基亚培育低端机市场 迂回战术要挟中华酷联
中移动“重启”自有品牌手机成败难料
“扫黄打非”下9158否认遭整顿
首个释放出搅局房地产信号的互联网公司不是小米而是58同城
同样的背景,罗永浩和雷军到底有什么不同?
总部大楼已换微软Logo:回忆诺基亚的兴衰史
568倍PE,“长跑者”亚马逊的高估值之谜
韩国研制无线充电系统:一次可充40部手机
弯曲变形:手机全新的交互方式
虚拟运营商流量不清零吸引用户 盈利待明
淘宝公布新规:升级售假卖家惩罚力度
索尼移动中国区陷裁员风波:业务不佳 员工焦虑
二代 iPad Air将配备2GB内存?为同屏多任务做准备