爱易网
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 浏览次数:20093 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<!--网页特效代码由驿站http://js.jojoo.net提供!--> <HTML> <HEAD> <META NAME="Title" CONTENT="JScript Simple Tetris"> <TITLE>Simple Tetris</TITLE> <style> body {margin:0;background:black;} td {height:20;width:20;} #block_div {position:absolute;z-index:1;width:80;} #table_div {position:absolute;z-index:0;width:320;} #nblock_div {position:absolute;z-index:2;font:48 system;color:red;} #title_div {position:absolute;left:326;top:7;font-size:22px;color:white} #infobar_div {position:absolute;left:396;top:416;} #infobar2_div {position:absolute;left:396;top:480;font-size:14px;color:white} #infobar2_div a{color:99ccff;font:system;text-decoration:none} </style> <SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript> <!-- if (document.all){ var n_width = 800; var n_height = 600; var n_left = Math.round( screen.width/2 ) - n_width/2; var n_top = Math.round( screen.height/2 ) - n_height/2; var n_IncStep = 20; var curBlcok,nextBlock; var arr_curBlock = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); var curX,curY; var speed=1; var maxspeed=9; var clr_per_line=18; var pause=0; var gameover=0; var colors = new Array("#999999","#0000FF","#80FFFF","#80FF80","#FFFF00","#FF8000","#FF00FF","#FF0000" ); var cid; var ncid; var blocks = new Array("tt_O1","tt_T2","tt_Z1","tt_S1","tt_L1","tt_J1","tt_I2"); var bid; var killedlines=0; var tt_O1 = new Array(0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0); var tt_O2 = new Array(0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0); var tt_O3 = new Array(0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0); var tt_O4 = new Array(0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0); var tt_T1 = new Array(0,0,0,0,0,1,0,0,1,1,0,0,0,1,0,0); var tt_T2 = new Array(0,0,0,0,0,0,0,0,1,1,1,0,0,1,0,0); var tt_T3 = new Array(0,0,0,0,0,1,0,0,0,1,1,0,0,1,0,0); var tt_T4 = new Array(0,0,0,0,0,1,0,0,1,1,1,0,0,0,0,0); var tt_Z1 = new Array(0,0,0,0,1,1,0,0,0,1,1,0,0,0,0,0); var tt_Z2 = new Array(0,0,0,0,0,0,1,0,0,1,1,0,0,1,0,0); var tt_Z3 = new Array(0,0,0,0,0,1,1,0,0,0,1,1,0,0,0,0); var tt_Z4 = new Array(0,0,1,0,0,1,1,0,0,1,0,0,0,0,0,0); var tt_S1 = new Array(0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0); var tt_S2 = new Array(0,0,0,0,0,1,0,0,0,1,1,0,0,0,1,0); var tt_S3 = new Array(0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0); var tt_S4 = new Array(0,1,0,0,0,1,1,0,0,0,1,0,0,0,0,0); var tt_L1 = new Array(0,1,0,0,0,1,0,0,0,1,1,0,0,0,0,0); var tt_L2 = new Array(0,0,0,0,0,0,1,0,1,1,1,0,0,0,0,0); var tt_L3 = new Array(0,0,0,0,0,1,1,0,0,0,1,0,0,0,1,0); var tt_L4 = new Array(0,0,0,0,0,1,1,1,0,1,0,0,0,0,0,0); var tt_J1 = new Array(0,0,1,0,0,0,1,0,0,1,1,0,0,0,0,0); var tt_J2 = new Array(0,0,0,0,1,1,1,0,0,0,1,0,0,0,0,0); var tt_J3 = new Array(0,0,0,0,0,1,1,0,0,1,0,0,0,1,0,0); var tt_J4 = new Array(0,0,0,0,0,1,0,0,0,1,1,1,0,0,0,0); var tt_I1 = new Array(0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0); var tt_I2 = new Array(0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1); var tt_I3 = new Array(0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0); var tt_I4 = new Array(0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1); var table = new Array( 1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1, 1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1, 1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1, 1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1, 1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1, 1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1, 1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1, 1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1, 1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1, 1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1, 1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1, 1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1, 1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1, 1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1, 1,
上一篇:狡猾的按钮特效
下一篇:猜数字游戏
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
从旗下三大业务BG发展看华为的过去现在和未来
途牛开盘价9美元 与发行价持平
组建铁塔公司倒逼运营商改革 或加速4G网建设
诺基亚培育低端机市场 迂回战术要挟中华酷联
华为美国推出电商网站 发售Mate 2LTE版
联想国庆完成收购IBM x86服务器
柳传志马云陷舆论漩涡:请不要辜负这个时代
HTC以品牌营销突围 专家建议改变经营思路
曹国伟:微博将关注Facebook和Twitter
推荐阅读
更多>
马云自称在美国曾被绑票
用友软件股价逆势下跌 再融资方案现曙光
历史惊人相似:如今的库克 曾经的鲍尔默
2018年阿里云双11活动如何参加?1折优惠大攻略
虚拟运营商们更像三大运营商的“二道贩子”
窗口期:还有哪些互联网公司可能今年IPO?
2013年至今中国互联网行业十大并购案汇总
迅雷向美SEC提交IPO招股书:拟最多筹资1亿美元
网易云音乐能否为丁磊拿到移动互联网门票?
中方抗议美方限购IT设备 紧张关系加剧
王建宙解构OTT效劳 中移动重塑飞信平台
微软小冰复活再战移动端:改与米聊、易信和触宝合作
公信力消失:马航事件社交媒体传播之痛
郭美美事件推手被抓 “秦火火”拷问网络底线
传4G牌照国庆节前后发放 TD-LTE制式优先
史玉柱此刻离任:营销巨匠为新游戏炒作?
高通拼抢国际芯片市场 联发科海外拓展难安心
从WPS到office365,中国企业能否赶超美国?
高通反垄断案下月有望落定
首批四款“官方”打车软件发布:均为安卓版本