⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 [原创]用51单片机+lcm12864做的贪吃蛇游戏,拿出来晾一下.mht

📁 单片机上的贪吃蛇。12864显示。含详细资料
💻 MHT
📖 第 1 页 / 共 2 页
字号:
a");
	tmp =3D tmp.replace(/(value)/gim,"%76alue");
	tmp =3D tmp.replace(/(document)(.)(cookie)/gim,"$1%2e$3");
	tmp =3D tmp.replace(/(')/g,"%27");
	tmp =3D tmp.replace(/(")/g,"%22");
	return(tmp);
}

function convertcode(str)
{
	str =3D str.replace(/\n/g, "");

	str =3D str.replace(/\[code\](.+?)\[\/code\]/gim,function($0,$1){var s =
=3D $1;s=3Ds.replace(/\[/g,'[');s=3Ds.replace(/\]/g,']');return =
("<table code width=3D100% bgcolor=3D#cccccc cellpadding=3D5 =
cellspacing=3D1 class=3DTBAnc><tr><td bgcolor=3D#f7f7f7 =
class=3DTBBGAnc>LEADBBS CODE</td></tr><tr><td bgcolor=3D#f7f7f7 =
class=3DTBBGAnc>"+s+"</td></tr></table>")});//[code]
	str =3D =
str.replace(/\[(\/?(u|b|i|sup|sub|strike|ul|ol|tr|td|pre|hr))\]/gim,"<$1>=
");//[u] [b] [i] [sup] [strike] [ul] [/ol] [tr] [td] [pre] [hr]
	str =3D str.replace(/\[(\/?)\*\]/gim,"<$1LI>");//[li]
	str =3D str.replace(/\[(\/?)PP\]/gim,"<$1P>");//[PP]
	str =3D str.replace(/\[quote\](.+?)\[\/quote\]/gim,"<table code =
width=3D100% bgcolor=3D#cccccc cellpadding=3D5 cellspacing=3D1 =
class=3DTBAnc><tr><td bgcolor=3D#f7f7f7 =
class=3DTBBGAnc>$1</td></tr></table>");//[quote]
	str =3D str.replace(/\[face=3D([#0-9 =
a-z]{1,20})\](.+?)\[\/face\]/gim,"<font =
face=3D\"$1\">$2</font>");//[font]
	str =3D =
str.replace(/\[FIELDSET=3D(.+?)\](.+?)\[\/FIELDSET\]/gim,"<FIELDSET><LEGE=
ND>$1</LEGEND>$2</FIELDSET>");//[FIELDSET]
	str =3D =
str.replace(/\[size=3D([#0-9a-z]{1,20})\](.+?)\[\/size\]/gim,"<font =
size=3D\"$1\">$2</font>");//[size]
	str =3D =
str.replace(/\[color=3D([#0-9a-z]{1,12})\](.+?)\[\/color\]/gim,"<font =
color=3D\"$1\">$2</font>");//[color]
	str =3D =
str.replace(/\[bgColor=3D([#0-9a-z]{1,12}),([#0-9a-z]{1,12})\](.+?)\[\/bg=
Color\]/gim,"<font style=3D\"BACKGROUND-COLOR: $1\" =
color=3D\"$2\">$3</font>");//[bgcolor]
	str =3D =
str.replace(/\[glow=3D([0-9]{1,3}),([#0-9a-z]{1,12}),([0-9]{1,3})\](.+?)\=
[\/glow\]/gim,"<table glow width=3D$1><tr><td =
style=3D\"filter:glow(color=3D$2, =
strength=3D$3)\">$4</td></tr></table>");//[glow]
	str =3D =
str.replace(/\[SHADOW=3D([0-9]{1,3}),([#0-9a-z]{1,12}),([0-9]{1,3})\](.+?=
)\[\/SHADOW\]/gim,"<table glow width=3D$1><tr><td =
style=3D\"filter:shadow(color=3D$2, =
strength=3D$3)\">$4</td></tr></table>");//[SHADOW]
	str =3D =
str.replace(/\[fly\](.+?)\[\/fly\]/gi,"<MARQUEE>$1</MARQUEE>");//[fly\]
	str =3D str.replace(/\[light\](.+?)\[\/light\]/gi,"<span =
style=3D\"behavior:url(../inc/font.htc)\">$1</span>");//[fly\]
	str =3D =
str.replace(/\[email=3D(.+?)\](.+?)\[\/email\]/gi,function($0,$1,$2){retu=
rn("<a href=3D\"mailto:" + url_filter($1) + "\">" + $2 + =
"</a>")});//[email\]
	str =3D =
str.replace(/\[email\](.+?)\[\/email\]/gi,function($0,$1,$2){return("<a =
href=3D\"mailto:" + url_filter($1) + "\">" + $1 + "</a>")});//[email\]
	str =3D =
str.replace(/(\[align=3D)(left|center|right|justify)(\])(.+?)(\[\/align\]=
)/gim,"<div style=3D\"text-align:$2\">$4</div>");//[align]
	str =3D =
str.replace(/\[img\](\/|..\/|http:\/\/|https:\/\/|ftp:\/\/)(.+?)\[\/img\]=
/gi,function($0,$1,$2){return("<img src=3D\"" + url_filter($1+$2) + "\" =
align=3Dabsmiddle border=3D0 =
onmouseover=3D\"javascript:if(this.width>520)this.width=3D520;\" =
onload=3D\"javascript:if(this.width>520)this.width=3D520;\">")});//[img]
	str =3D =
str.replace(/\[img=3D([0-9]{1,2}),(absmiddle|left|right|top|middle|bottom=
|absbottom|baseline|texttop)\](\/|..\/|http:\/\/|https:\/\/|ftp:\/\/)(.+?=
)\[\/img\]/gi,function($0,$1,$2,$3,$4){return("<img src=3D\"" + =
url_filter($3+$4) + "\" align=3D$2 border=3D\"$1\" =
onmouseover=3D\"javascript:if(this.width>520)this.width=3D520;\" =
onload=3D\"javascript:if(this.width>520)this.width=3D520;\">")});//[img=3D=
*,*]
	str =3D =
str.replace(/\[imga\](\/|..\/|http:\/\/|https:\/\/|ftp:\/\/)(.+?)\[\/imga=
\]/gi,function($0,$1,$2){return("<img src=3D\"" + url_filter($1+$2) + =
"\" style=3D\"CURSOR: hand\" =
onclick=3D\"javascript:window.open(this.src);\" align=3Dabsmiddle =
border=3D0 =
onmouseover=3D\"javascript:if(this.width>520)this.width=3D520;\" =
onload=3D\"javascript:if(this.width>520)this.width=3D520;\">")});//[imga]=

	str =3D =
str.replace(/\[imga=3D([0-9]{1,2}),(absmiddle|left|right|top|middle|botto=
m|absbottom|baseline|texttop)\](\/|..\/|http:\/\/|https:\/\/|ftp:\/\/)(.+=
?)\[\/imga\]/gi,function($0,$1,$2,$3,$4){return("<img src=3D\"" + =
url_filter($3+$4) + "\" align=3D\"$2\" border=3D\"$1\" style=3D\"CURSOR: =
hand\" onclick=3D\"javascript:window.open(this.src);\" =
onmouseover=3D\"javascript:if(this.width>520)this.width=3D520;\" =
onload=3D\"javascript:if(this.width>520)this.width=3D520;\">")});//[img=3D=
*,*]

	str =3D =
str.replace(/\[MP=3D([0-9]{1,4}),([0-9]{1,4})\](.+?)\[\/MP\]/gi,function(=
$0,$1,$2,$3){var u=3Durl_filter($3),w=3D$1,h=3D$2;if =
(vnum<1){vnum++;return("<span id=3Dmplay" + vnum + "><object =
align=3Dmiddle classid=3DCLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 =
class=3DOBJECT id=3DMediaPlayer" + vnum + " width=3D\"" + w + "\" =
height=3D\"" + h + "\"><param name=3DShowStatusBar value=3D-1><param =
name=3DFilename value=3D\"" + u + "\"><embed =
type=3Dapplication/x-oleobject =
codebase=3Dhttp://activex.microsoft.com/activex/controls/mplayer/en/nsmp2=
inf.cab#Version=3D5,1,52,701 flename=3Dmp src=3D\"" + h + "\" =
width=3D\"" + w + "\" height=3D\"" + h + "\"></embed><PARAM =
NAME=3DAUTOSTART VALUE=3D1></object></span><span id=3Dmplayerurl" + vnum =
+ " onclick=3D\"mpplay(" + vnum + ");\" =
style=3D\"display:none;cursor:hand\"><IMG =
SRC=3D../images/FileType/mp3.gif border=3D0 align=3Dabsmiddle =
height=3D16 width=3D16>" + u + "</span>");} else {vnum++;return("<span =
id=3Dmplay" + vnum + " style=3D\"display:none;\"><object align=3Dmiddle =
classid=3DCLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 class=3DOBJECT =
id=3DMediaPlayer" + vnum + " width=3D\"" + w + "\" height=3D\"" + h + =
"\"><param name=3DShowStatusBar value=3D-1><param name=3DFilename =
value=3D\"" + u + "\"><embed type=3Dapplication/x-oleobject =
codebase=3Dhttp://activex.microsoft.com/activex/controls/mplayer/en/nsmp2=
inf.cab#Version=3D5,1,52,701 flename=3Dmp src=3D\"" + h + "\" =
width=3D\"" + w + "\" height=3D\"" + h + "\"></embed><PARAM =
NAME=3DAUTOSTART VALUE=3D0></object></span><span id=3Dmplayerurl" + vnum =
+ " onclick=3D\"mpplay(" + vnum + ");\" style=3D\"cursor:hand\"><IMG =
SRC=3D../images/FileType/mp3.gif border=3D0 align=3Dabsmiddle =
height=3D16 width=3D16>" + u + "</span>");} } );//[MP]
	//str =3D =
str.replace(/\[MP=3D([0-9]{1,4}),([0-9]{1,4})\](.+?)\[\/MP\]/gi,function(=
$0,$1,$2,$3){var u=3Durl_filter($3),w=3D$1,h=3D$2;if =
(vnum<1){vnum++;return("<object align=3Dmiddle =
classid=3DCLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 class=3DOBJECT =
id=3DMediaPlayer width=3D\"" + w + "\" height=3D\"" + h + "\"><param =
name=3DShowStatusBar value=3D-1><param name=3DFilename value=3D\"" + u + =
"\"><embed type=3Dapplication/x-oleobject =
codebase=3Dhttp://activex.microsoft.com/activex/controls/mplayer/en/nsmp2=
inf.cab#Version=3D5,1,52,701 flename=3Dmp src=3D\"" + u + "\" =
width=3D\"" + w + "\" height=3D\"" + h + "\"></embed><PARAM =
NAME=3DAUTOSTART VALUE=3D1></object>");} else {return("<IMG =
SRC=3D../images/FileType/mp3.gif border=3D0 align=3Dabsmiddle =
height=3D16 width=3D16> " + getlink(u,u,0));} } );//[MP]
	str =3D =
str.replace(/\[RM=3D([0-9]{1,4}),([0-9]{1,4})\](.+?)\[\/RM\]/gi,function(=
$0,$1,$2,$3){var u=3Durl_filter($3),w=3D$1,h=3D$2;if =
(vnum<1){vnum++;return("<OBJECT =
classid=3Dclsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA class=3DOBJECT =
id=3DRAOCX width=3D\"" + w + "\" height=3D\"" + h + "\"><PARAM =
NAME=3DSRC VALUE=3D\"" + u + "\"><PARAM NAME=3DCONSOLE VALUE=3D\"2423" + =
u + "\"><PARAM NAME=3DCONTROLS VALUE=3Dimagewindow><PARAM =
NAME=3DAUTOSTART VALUE=3D0></OBJECT><br><OBJECT =
classid=3DCLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA height=3D32 =
id=3Dvideo2 width=3D\"" + w + "\"><PARAM NAME=3DSRC VALUE=3D\"" + u + =
"\"><PARAM NAME=3DAUTOSTART VALUE=3D0><PARAM NAME=3DCONTROLS =
VALUE=3Dcontrolpanel><PARAM NAME=3DCONSOLE VALUE=3D\"2423" + u + =
"\"></OBJECT>");} else {return("<IMG SRC=3D../images/tc/2.gif border=3D0 =
align=3Dabsmiddle height=3D16 width=3D16>" + getlink(u,u,0));} } =
);//[RM]
	str =3D =
str.replace(/\[FLASH=3D([0-9]{1,4}),([0-9]{1,4})\](.+?)\[\/FLASH\]/gi,fun=
ction($0,$1,$2,$3){var u=3Durl_filter($3),w=3D$1,h=3D$2;if =
(vnum<1){vnum++;return("<OBJECT =
codeBase=3Dhttp://download.macromedia.com/pub/shockwave/cabs/flash/swflas=
h.cab#version=3D4,0,2,0 =
classid=3Dclsid:D27CDB6E-AE6D-11cf-96B8-444553540000 width=3D\"" + w + =
"\" height=3D\"" + h + "\"><PARAM NAME=3Dmovie VALUE=3D\"" + u + =
"\"><PARAM NAME=3Dquality VALUE=3Dhigh><embed src=3D\"" + u + "\" =
quality=3Dhigh =
pluginspage=3D\"http://www.macromedia.com/shockwave/download/index.cgi?P1=
_Prod_Version=3DShockwaveFlash\" =
type=3D\"application/x-shockwave-flash\" width=3D\"" + w + "\" =
height=3D\"" + h + "\">" + u + "</embed></OBJECT>");} else {return("<IMG =
SRC=3D../images/FileType/swf.gif border=3D0 align=3Dabsmiddle =
height=3D16 width=3D16>" + getlink(u,u,0));} } );//[flash=3D*,*]
	str =3D str.replace(/\[FLASH\](.+?)\[\/FLASH\]/gi,function($0,$1){var =
u=3Durl_filter($1),w=3D500,h=3D400;if (vnum<1){vnum++;return("<OBJECT =
codeBase=3Dhttp://download.macromedia.com/pub/shockwave/cabs/flash/swflas=
h.cab#version=3D4,0,2,0 =
classid=3Dclsid:D27CDB6E-AE6D-11cf-96B8-444553540000 width=3D\"" + w + =
"\" height=3D\"" + h + "\"><PARAM NAME=3Dmovie VALUE=3D\"" + u + =
"\"><PARAM NAME=3Dquality VALUE=3Dhigh><embed src=3D\"" + u + "\" =
quality=3Dhigh =
pluginspage=3D\"http://www.macromedia.com/shockwave/download/index.cgi?P1=
_Prod_Version=3DShockwaveFlash\" =
type=3D\"application/x-shockwave-flash\" width=3D\"" + w + "\" =
height=3D\"" + h + "\">" + u + "</embed></OBJECT>");} else {return("<IMG =
SRC=3D../images/FileType/swf.gif border=3D0 align=3Dabsmiddle =
height=3D16 width=3D16>" + getlink(u,u,0));} } );//[flash]
	str =3D =
str.replace(/\[url=3D(.+?)\](.+?)\[\/url\]/gi,function($0,$1,$2){return(g=
etlink(url_filter($1),$2,0))});//[url]
	str =3D =
str.replace(/\[url\](.+?)\[\/url\]/gi,function($0,$1){return(getlink(url_=
filter($1),$1,1))});//[url]
	str =3D str.replace(/\[em([0-9]{1,2})\]/gi,"<img =
src=3D\"../images/UBBicon/em$1.GIF\" width=3D20 height=3D20 =
align=3Dabsmiddle border=3D0>");//[em**]
=09
	str =3D str.replace(/\[nulltable\](.+?)\[\/nulltable\]/gim,"<table =
border=3D0 cellspacing=3D0 cellpadding=3D0>$1</table>");//[nulltable]
	str =3D =
str.replace(/\[nulltable=3D(.+?)\](.+?)\[\/nulltable\]/gim,function($0,$1=
,$2){return("<table border=3D0 width=3D100% cellspacing=3D0 =
cellpadding=3D0 background=3D\"" + url_filter($1) + "\">" + $2 + =
"</table>")});//[nulltable]
	str =3D =
str.replace(/\[nulltr\](.+?)\[\/nulltr\]/gim,"<tr>$1</tr>");//[nulltr]
	str =3D =
str.replace(/\[nulltd\](.+?)\[\/nulltd\]/gim,"<td>$1</td>");//[nulltd]
	str =3D str.replace(/\[table\](.+?)\[\/table\]/gim,"<table border=3D1 =
bordercolor=3Dgray cellspacing=3D0 =
cellpadding=3D3>$1</table>");//[table]
	str =3D =
str.replace(/\[table=3D([#0-9a-z]{1,12}),([0-9]{1,3}),([0-9]{1,3}),([0-9\=
%\|\"\&quot\;]{1,12}),(left|center|right),([#0-9a-z]{1,12}),([0-9]{1,3}),=
(.+?)\](.+?)\[\/table\]/gim,function($0,$1,$2,$3,$4,$5,$6,$7,$8,$9){retur=
n("<table borderColor=3D" + $1 + " cellSpacing=3D" + $2 + " =
cellPadding=3D" + $3 + " width=3D" + $4 + " align=3D" + $5 + " =
bgColor=3D" + $6 + " background=3D\"" + url_filter($8) + "\" border=3D" =
+ $7 + ">" + $9+ "</table>")});//[table]
	str =3D str.replace(/\[sound\](.+?)\[\/sound\]/gim,function($0,$1){var =
u=3Durl_filter($1);return("<a href=3D\"" + u + "\" target=3D_blank><IMG =
SRC=3D../images/FileType/mid.gif border=3D0 =
alt=3D\"=B1=B3=BE=B0=D2=F4=C0=D6\" height=3D16 width=3D16></a><bgsound =
src=3D\"" + u + "\" loop=3D-1>")});//[sound]

	str =3D str.replace(/( =
|\n|\r|\t|\v|\<br\>|\=A3=BA|\:|=A1=A1)(http:\/\/|ftp:\/\/|https:\/\/|mms:=
\/\/|rtsp:\/\/|www.)([^# =
\f\n\r\t\v\<=A1=A1]*)/gi,function($0,$1,$2,$3){var =
u=3D$2;if(u.substr(0,4).toLowerCase()=3D=3D'www.')u=3D'http://'+u;return(=
$1+getlink(url_filter(u+$3),$2+$3,0));});//[url]
	str =3D =
str.replace(/^(http:\/\/|ftp:\/\/|https:\/\/|mms:\/\/|rtsp:\/\/|www.)([^#=
 \f\n\r\t\v\<=A1=A1]*)/gi,function($0,$1,$2){var =
u=3D$1;if(u.substr(0,4).toLowerCase()=3D=3D'www.')u=3D'http://'+u;return(=
getlink(url_filter(u+$2),$1+$2,0));});//first [url]
	return str;
}

//check safe link.
function chklink(ul)
{
	if(ul.substr(0,3) =3D=3D '../'){return 1;}
	ul =3D ul.match(/^http:\/\/(\w+\.)?(\w+?\.\w+)/);
	if (ul && ul[2])
	{
		switch (ul[2].toLowerCase())
			{
				case 'leadbbs.com':
				case '53520.com':
				case 'wensui.com':
				case GBL_domain:
				return 1;
			}
	}
	return 0;
}

function hideulname()
{
	for(var n=3D0;n<urlname;n++)
	{
		=
if(document.getElementById('ulname'+n).style.display=3D=3D'inline')docume=
nt.getElementById('ulname'+n).style.display=3D'none';
	}
}

//convert [url]
function getlink(u,nm,f)
{
var c =3D '',ed;
var t =3D '',t2 =3D '';
ed =3D ">";
if (f =3D=3D 1){t2 =3D "<IMG SRC=3D../images/tc/5.gif border=3D0 =
align=3Dabsmiddle height=3D16 width=3D16>";}
if (chklink(u) =3D=3D 0)
	{
		ed =3D " =
onclick=3D'hideulname();preEmt(this).childNodes[0].style.display=3D\"inli=
ne\";return false' " + ed;
		t =3D "<span name=3Dulname" + urlname + " id=3Dulname" + urlname + " =
class=3DAltLink style=3D\"DISPLAY: =
none;padding:6px;font-size:9pt;POSITION: =
absolute;text-align:center;\"><font color=3Dgray class=3DGrayFont>" + u =
+ "</font><br><font color=3Dred =
class=3DRedFont>=B7=C3=CE=CA=CD=F8=D6=B7=B3=AC=B3=F6=B1=BE=D5=BE=B7=B6=CE=
=A7=A3=AC=B2=BB=C4=DC=C8=B7=B6=A8=CA=C7=B7=F1=B0=B2=C8=AB</font> <br><a =
href=3D\"" + u + "\" =
onclick=3D'this.parentNode.style.display=3D\"none\"' =
target=3D'_blank'>=BC=CC=D0=F8=B7=C3=CE=CA</a> <a href=3D'#ntg' =
onclick=3D'this.parentNode.style.display=3D\"none\"'>=C8=A1=CF=FB=B7=C3=CE=
=CA</a></span>";
		urlname++;
	}
return (t2 + "<span>" + t + "</span><a href=3D\"" + u + "\" =
target=3D'_blank' " + ed + nm + "</a>");
}//prevenient Element
function preEmt(i)
{
var p =3D i.previousSibling;
while (p.nodeType =3D=3D 3){p =3D p.previousSibling;}
return p;
}
------=_NextPart_000_000C_01C9A356.60B1F4C0--

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -