在好例子网,分享、交流、成长!
您当前所在位置:首页C# 开发实例C#游戏开发 → 网页版植物大战僵尸中文版 游戏源码

网页版植物大战僵尸中文版 游戏源码

C#游戏开发

下载此实例
  • 开发语言:C#
  • 实例大小:73.05M
  • 下载次数:85
  • 浏览次数:1368
  • 发布时间:2018-04-11
  • 实例类别:C#游戏开发
  • 发 布 人:SSky
  • 文件格式:.zip
  • 所需积分:10
 相关标签: 网页游戏

实例介绍

【实例简介】网页版植物大战僵尸中文版源码

可以自己下载看看,很好的实例

【实例截图】

from clipboard


from clipboard


from clipboard


from clipboard

【核心代码】

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta http-equiv="Cache-Control" content="max-age=3600">
<meta name="keywords" content="lonelystar,星空之旅,植物大战僵尸,植物大战僵尸下载,植物大战僵尸游戏下载,植物大战僵尸游戏攻略,植物大战僵尸网页版,JS植物大战僵尸,植物僵尸,植物大战,僵尸大战,PVZ植物大战僵尸,新版植物大战僵尸,JSPVZ,JS版植物大战僵尸,植物大战僵尸javascript,植物大战僵尸小游戏,植物人大战僵尸,d2forum,D2,辣妈僵尸,网页游戏,植物大站僵尸源代码,囧丫乙,在线植物大战僵尸,大波僵尸,僵尸大战植物,online web game,web game,webgame,youxi,xiaoyouxi">
<meta name="description" content="在线js植物大战僵尸网页版是LonelyStar个人制作的纯JavaScript植物大战僵尸小游戏,欢迎收藏JavaScript植物大战僵尸小游戏,分享js植物大战僵尸小游戏的快乐。">
<base id="baseURL"></base>
<link rel="shortcut icon" href="favicon.ico">
<link type=text/css rel=stylesheet href="g.css">
<script src="js/Cfunction.js"></script>
<script src="js/CPlants.js"></script>
<script src="js/CZombie.js"></script>
<script id="JSProcess"></script>
<body id="dBody" topmargin="0" leftmargin="0" oncontextmenu="return false" ondragstart="return false" onselectstart="return false">
<script>
//每关小链接
google_ad_client = "ca-pub-0191257348916303";
google_ad_slot = "2263586206";
google_ad_width = 468;
google_ad_height = 15;
</script>
<!--相关链接-->
<div id="dLvlLink">
	<span>Game 相关的链接</span>&nbsp;&nbsp;&nbsp;&nbsp;
	<a href="http://www.baidu.com/s?wd=%D6%B2%CE%EF%B4%F3%D5%BD%BD%A9%CA%AC%CD%F8%D2%B3%B0%E6" target="_blank">搜索游戏内容</a>&nbsp;&nbsp;&nbsp;&nbsp;
	<a href="javascript:;" target="_blank" id="aLvlLink">本关攻略</a>&nbsp;&nbsp;&nbsp;&nbsp;
	<a href="http://www.lonelystar.org/html/1-1.htm" target="_blank">壁纸和音乐</a>&nbsp;&nbsp;&nbsp;&nbsp;
	<a href="http://blog.lonelystar.org" target="_blank">作者博客</a>
</div>
<div id="dAD2"><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>
<div id="dAdFlash">
	<iframe name="fGGAdsense" marginwidth="1" marginheight="1" height="280" width="336" scrolling="no" border="0" frameborder="0" src="js/ggadsense.htm"></iframe>
	<div>Google提供的广告</div>
</div>
<!--进度条-->
<div id="dFlagMeter">
	<div id="dFlagMeterTitle"><div id="dFlagMeterTitleB"></div><div id="sFlagMeterTitleF"></div></div>
	<div id="dFlagMeterContent">
		<img id="imgFlagMeterEmpty" src="images/interface/FlagMeterEmpty.png">
		<img id="imgFlagMeterFull" src="images/interface/FlagMeterFull.png">
		<img class="flag" id="imgFlag1" src="images/interface/FlagMeterParts2.png">
		<img class="flag" id="imgFlag2" src="images/interface/FlagMeterParts2.png">
		<img class="flag" id="imgFlag3" src="images/interface/FlagMeterParts2.png">
		<img class="flag" id="imgFlag4" src="images/interface/FlagMeterParts2.png">
		<img id="imgGQJC" src="images/interface/FlagMeterLevelProgress.png">
		<img id="imgFlagHead" src="images/interface/FlagMeterParts1.png">
	</div>
</div>

<!--选项界面-->
<div id="dSurface" class="WindowFrame">
	<div id="iSurfaceBackground">
		<map name="FPMap0">
			<script>
			(function(){
				var s="",ar=[{c:'641,466,724,527',k:'ShowOptions()'},{c:'718,512,790,558',k:'ShowHelp()'},{c:'800,495,879,548',k:'SetNone($(\'dSurface\'));PlayAudio(\'tap\')'}];
				for(var i=0;i<=2;i  )s ='<area href="javascript:;" shape="rect" coords="' ar[i].c '" onclick="' ar[i].k '">';document.write(s);
			})()
			</script>
		</map>
		<img src="images/interface/Surface.jpg" usemap="#FPMap0" border="0">
		<div style="position:absolute;width:350px;height:150px;left:468px;top:82px;background:url(images/interface/SelectorScreen_Shadow_Adventure.png)"></div>
		<div class="adventure0" id="dAdventure" onmouseover="this.style.backgroundPosition='bottom';PlayAudio('bleep');" onmouseout="this.style.backgroundPosition='top'" onclick="StartAdventure()"></div>
		<div style="position:absolute;width:318px;height:136px;left:476px;top:208px;background:url(images/interface/SelectorScreen_Shadow_Survival.png)"></div>
		<div class="mini" onmouseover="this.style.backgroundPosition='bottom';PlayAudio('bleep');" onmouseout="this.style.backgroundPosition='top'" onclick="ShowMiniGame()"></div>
		<div style="position:absolute;width:289px;height:127px;left:480px;top:307px;background:url(images/interface/SelectorScreen_Shadow_Challenge.png)"></div>
		<div class="riddle" onmouseover="this.style.backgroundPosition='bottom';PlayAudio('bleep');" onmouseout="this.style.backgroundPosition='top'" onclick="ShowRiddleGame()"></div>
		<div class="Sunflower_trophy"><script>document.write('<img onclick="PlayAudio(\'buttonclick\');alert(\'游戏数据中心即将开放,敬请期待!\')" title="游戏数据中心即将开放!" alt="游戏数据中心即将开放!!" src="images/interface/Sunflower_trophy' ($User.Browser.IE?8:32) '.png">')</script></div>
		<div class="handbook" onmouseover="this.style.backgroundPosition='bottom'" onmouseout="this.style.backgroundPosition='top'" onclick="ViewHandBook()"></div>
		<div id="ZombieHand"></div> <!--僵尸手-->
		<div id="dNameDiv0">
			<div id="dName">&lt;游客&gt;</div>
			<div id="dNameDiv1" onmouseover="this.style.backgroundPosition='bottom'" onmouseout="this.style.backgroundPosition='top'" onclick="ShowLoginDiv()"></div>
			<div id="dNameDiv2"></div>
		</div>
	</div>

	<!--用户登录注册界面-->
	<div id="dLogin">
		<table border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td width="107" height="142" valign="bottom"><img border="0" src="images/interface/dialog_topleft.png" width="107" height="97"></td>
				<td style="background: url(images/interface/dialog_topmiddle.png) repeat-x bottom center" height="142" valign="top" align="center"><img border="0" src="images/interface/dialog_header.png" width="187" height="64"></td>
				<td width="120" height="142" valign="bottom"><img border="0" src="images/interface/dialog_topright.png" width="120" height="97"></td>
			</tr>
			<tr>
				<td width="107" style="background:url(images/interface/dialog_centerleft.png) repeat-y"> </td>
				<td bgcolor="#212431"> </td>
				<td width="120" style="background:url(images/interface/dialog_centerright.png) repeat-y"> </td>
			</tr>
			<tr>
				<td width="107" valign="top" height="114">
					<img border="0" src="images/interface/dialog_bottomleft.png" width="107" height="97">
				</td>
				<td style="background:url(images/interface/dialog_bottommiddle.png) repeat-x" height="114">	</td>
				<td width="120" valign="top" height="114">
					<img border="0" src="images/interface/dialog_bottomright.png" width="108" height="97">
				</td>
			</tr>
		</table>
		<div class="list">
			<div style="top:85px;cursor:pointer">注册用户每玩过一关将会自动保存关卡</div>
			<div style="top:100px;cursor:pointer;color:#F93">只能输入3-10个中文、字母、数字、下划线</div>
			<div style="top:120px">用 户&nbsp;&nbsp;<input name="txtName" id="txtName" type="text" width="60" style="cursor:pointer" value=""></div>
			<div style="top:135px;cursor:pointer;color:#F93">只能输入3-20个字母、数字、下划线</div>
			<div style="top:150px">密 码&nbsp;&nbsp;<input name="txtPass" id="txtPass" type="password" width="60" style="cursor:pointer" value=""></div>
			<div id="dLoadUserName">正在载入用户信息,请稍候!</div>
		</div>
		<div class="button" id="dLoginButton" style="left:293px" onclick="GameLogin();PlayAudio('gravebutton');">登录</div>
		<div class="button" id="dRegButton" style="left:360px" onclick="GameLogin(1);PlayAudio('gravebutton');">注册</div>
		<div class="button" style="left:430px" onclick="SetNone($('dLogin'));PlayAudio('gravebutton');">取消</div>
		<div class="button" style="left:505px" onclick="GameLogout();SetNone($('dLogin'));PlayAudio('gravebutton');">注销</div>
	</div>

	<!--暂停界面-->
	<div id="dPause">
		<table border="0" width="434" cellspacing="0" cellpadding="0" height="484">
			<tr>
				<td width="107" height="142" valign="bottom">
				<img border="0" src="images/interface/dialog_topleft.png" width="107" height="97"></td>
				<td style="background: url(images/interface/dialog_topmiddle.png) repeat-x bottom center" height="142" valign="top" align="center">
				<img border="0" src="images/interface/dialog_header.png" width="187" height="64"></td>
				<td width="120" height="142" valign="bottom">
				<img border="0" src="images/interface/dialog_topright.png" width="120" height="97"></td>
			</tr>
			<tr>
				<td width="107" style="background:url(images/interface/dialog_centerleft.png) repeat-y"> </td>
				<td bgcolor="#212431"> </td>
				<td width="120" style="background:url(images/interface/dialog_centerright.png) repeat-y"> </td>
			</tr>
			<tr>
				<td width="107" valign="top" height="114">
				<img border="0" src="images/interface/dialog_bottomleft.png" width="107" height="97"></td>
				<td style="background:url(images/interface/dialog_bottommiddle.png) repeat-x" height="114">	</td>
				<td width="120" valign="top" height="114">
				<img border="0" src="images/interface/dialog_bottomright.png" width="108" height="97"></td>
			</tr>
		</table>
		<div class="list">
			<div class="hidden" onclick="SetNone($('dSurface'),$('dPause'))">点这里隐藏暂停窗口</div>
			<div id="dPauseAD"></div>
			<div class="pause">休息,休息一会儿~</div>
		</div>
		<div class="button" onclick="ResetGame($('dMenu0'))">返回游戏</div>
	</div>
	<div id="dSurfaceBack">
		<div id="dHelp" onclick="HiddenHelp()"></div>
		<div id="dOptionsMenuback">
			<div id="dOptionsMenu">
				<div class="OMd0">
					<div class="OMd1">
						<div><input type="checkbox" id="cAutoSun" value="1" onchange="CheckAutoSun(this)"> <label for="cAutoSun" id="lAutoSun">自动拾取阳光</label></div>
						<div><input type="checkbox" id="cSilence" value="1"> <label for="cSilence" id="lSilence">静&nbsp;&nbsp; &nbsp;&nbsp;音&nbsp;&nbsp;  </label></div>
					</div>
				</div>
				<div class="BigLevel button" onclick="ShowLevel()">游戏选关</div>
				<div class="BigLevel button" onclick="ShowSpeed()">游戏调速</div>
				<div class="BigLevel button" onclick="ViewHandBook()">查看图鉴</div>
				<div class="BigLevel button" onclick="SelectModal(oS.Lvl)">重新开始</div>
				<div class="BigLevel button" onclick="SelectModal(0);HiddenOptions();SetBlock($('dSurface'),$('iSurfaceBackground'));ShowNameDiv();">返回菜单</div>
				<div class="OptionsMenuButton" style="margin-top:20px" onmousedown="OptionsMenuDown(this,$('sOptionsMenu'))" onmouseup="OptionsMenuUP(this,$('sOptionsMenu'));HiddenOptions();CheckAutoSun($('cAutoSun'));CheckSilence($('cSilence'))"><span id="sOptionsMenu" class="OptionsMenuButtonSpan">继续游戏</span></div>
			</div>
<script>
var ArLvl={1:'一',2:'二',3:'三',4:'四',5:'五',6:'六',7:'七',8:'八',9:'九',10:'十'},
LvlList=function(BLvl,SLvl1,SLvl2){
	var s='',startlvl=BLvl*10;
	do{
		s ='<span class="lvl" onclick="StartAdventure(' (startlvl SLvl1) ')">第' ArLvl[SLvl1] '关</span>';
	}while(SLvl1  <SLvl2)
	document.write(s);
};
</script>
		</div>
		<div id="dAdvSmallContainer" class="TitleSmallContainer Challenge_Background">
			<div id="dAdvSmallTitle">冒险模式</div>
			<div class="list">
				<div class="title">白天草地</div>
				<div class="icon">
					<img class="img1" style="clip:rect(0,61px,auto,0);left:16px" border="0" src="images/interface/Almanac_Ground.jpg" width="366" height="61"></td>
					<img class="img2" border="0" src="images/interface/Almanac_ZombieWindow2.png" width="76" height="76"></p>
				</div>
				<div class="lvl2">
					<script>LvlList(0,1,10)</script>
				</div>
			</div>
			<div class="list">
				<div class="title">夜晚草地</div>
				<div class="icon">
					<img class="img1" style="clip:rect(0,183px,auto,122px);left:-106px" border="0" src="images/interface/Almanac_Ground.jpg" width="366" height="61"></td>
					<img class="img2" border="0" src="images/interface/Almanac_ZombieWindow2.png" width="76" height="76"></p>
				</div>
				<div class="lvl2">
					<script>LvlList(1,1,10)</script>
				</div>
			</div>
			<div class="list">
				<div class="title">白天泳池</div>
				<div class="icon">
					<img class="img1" style="clip:rect(0,305px,auto,244px);left:-228px" border="0" src="images/interface/Almanac_Ground.jpg" width="366" height="61"></td>
					<img class="img2" border="0" src="images/interface/Almanac_ZombieWindow2.png" width="76" height="76"></p>
				</div>
				<div class="lvl2">
					<script>LvlList(2,1,10)</script>
				</div>
			</div>
			<div class="list">
				<div class="title">夜晚泳池</div>
				<div class="icon">
					<img class="img1" style="clip:rect(0,244px,auto,183px);left:-167px" border="0" src="images/interface/Almanac_Ground.jpg" width="366" height="61"></td>
					<img class="img2" border="0" src="images/interface/Almanac_ZombieWindow2.png" width="76" height="76"></p>
				</div>
				<div class="lvl2">
					<script>LvlList(3,1,1)</script>
				</div>
			</div>
			<div class="button" onmouseover="this.style.backgroundPosition='bottom'" onmouseout="this.style.backgroundPosition='top'"  onclick="HiddenLevel()">关闭</div>
		</div>
		
		<div id="dMiniSmallContainer" class="TitleSmallContainer Challenge_Background">
			<div id="dMiniSmallTitle">迷 你 游 戏</div>
			<div id="dMini0">
				<table cellspacing="10" width="100%">
				<script>
					(function(){
						var ar=['NutBowling2','坚果保龄球 2','baolingqiu.png',
						'NutBowling','坚果保龄球','baolingqiu.png',
						'Boom','核爆!','hebao.png',
						'FlightOfFancy','我心飞翔','woxinfeixiang.png',
						'DisposableProducts','一次性消费','yicixingxiaofei.gif',
						'StrongLevel','超乎寻常的压力!','yali.gif',
						'TestUHeart','你的心脏够强劲吗?','xinzang.png',
						'ZombieRun','僵尸快跑!','jiangshikuaipao.png',
						'PovertyOfTheSoil','贫瘠之地','pinjizhidi.png',
						'MassGrave','乱葬岗','luanzanggang.png',
						'DependOnHeavenForFood','靠天吃饭','kaotianchifan.png'],
						v,i=0,n,l=ar.length,s='';
						for(n=0;n<l;n =3){
							i%5==0&&(s ='<tr>');
							s ='<td height="139" valign="top" onclick="SelectModal(\'' ar[n] '\')"><div><img src="images/interface/' ar[n 2] '"></div><div class="list">' ar[n 1] '</div></td>';
							(i 1)%5==0?(
								s ='</tr>',
								i=0
							):  i;
						}
						if(i!=0){
							while(--i)s ='<td> </td>';
							s ='</tr>';
						}
						document.write(s)
					})()
				</script>
				</table>
				<div class="button" onmouseover="this.style.backgroundPosition='bottom'" onmouseout="this.style.backgroundPosition='top'"  onclick="HiddenMiniGame()">关闭</div>
			</div>
		</div>

		<div id="dRiddleSmallContainer" class="TitleSmallContainer Almanac_ZombieBack">
			<div id="dRiddleTitle">益 智 模 式</div>
			<!--单机对战选择界面-->
			<div id="dRiddleInx">
				<div>
					<div class="inx0" title="我玩僵尸,跟电脑的植物方作战" onclick="ShowRiddle0()"></div>
				</div>
				<div style="left:50%">
					<div class="inx1" title="我玩僵尸或者植物,跟玩家的植物或者僵尸作战" onclick="ShowRiddle1()"></div>
				</div>
			</div>
			<!--单机界面-->
			<div id="dRiddle0">
				<table cellspacing="10" width="100%">
					<script>
						(function(){
							var ar={ImZombie1:'我是僵尸!',ImZombie2:'我也是僵尸!',ImZombie7:'僵尸摇摆'},v,i=0,s='';
							for(v in ar){
								i%5==0&&(s ='<tr>');
								s ='<td onclick="SelectModal(\'' v '\')"><div><img src="images/interface/woshijiangshi.png"></div><div class="list">' ar[v] '</div></td>';
								(i 1)%5==0?(
									s ='</tr>',
									i=0
								):  i;
							}
							if(i!=0){
								while(--i)s ='<td> </td>';
								s ='</tr>';
							}
							document.write(s)
						})()
					</script>
				</table>
				<div class="button" onmouseover="this.style.backgroundPosition='bottom'" onmouseout="this.style.backgroundPosition='top'"  onclick="ReturnRiddleInx()">益智模式索引</div>
			</div>
			<!--对战界面-->
			<div id="dRiddle1">
				<div style="position:relative;width:94%;font-size:12px;margin-top:10px;margin-left:auto;margin-right:auto;color:#000">
					<button class="jhp" style="height:23px" onclick="window.frames['fRiddleAlreadyCreateGame'].SearchLvl(0)">所有游戏</button> 
					<button class="jhp" style="height:23px" onclick="window.frames['fRiddleAlreadyCreateGame'].SearchLvl(1)">我创建的</button> 
					<button class="jhp" style="height:23px" onclick="window.frames['fRiddleAlreadyCreateGame'].SearchLvl(2)">我玩过的</button>&nbsp;&nbsp;&nbsp;
					<input type=text id="tRiddleID" size="1"><button class="jhp" style="height:23px" onclick="window.frames['fRiddleAlreadyCreateGame'].SearchLvl(3,$('tRiddleID').value)">序号查询</button>&nbsp;&nbsp;&nbsp;
					<input type=text id="tRiddleUserName" size="3"><button class="jhp" style="height:23px" onclick="window.frames['fRiddleAlreadyCreateGame'].SearchLvl(4,$('tRiddleUserName').value)">创建人查询</button>&nbsp;&nbsp;&nbsp;
					<input type=text id="tRiddleTitle" size="3"><button class="jhp" style="height:23px" onclick="window.frames['fRiddleAlreadyCreateGame'].SearchLvl(5,$('tRiddleTitle').value)">标题查询</button>
					<div style="border:1px solid #000;height:440px;width:100%;background:#fafafa">
						<iframe name="fRiddleAlreadyCreateGame" id="fRiddleAlreadyCreateGame" marginwidth="1" marginheight="1" height="100%" width="100%" scrolling="no" border="0" frameborder="0"></iframe>
					</div>
				</div>
				<div class="button" onmouseover="this.style.backgroundPosition='bottom'" onmouseout="this.style.backgroundPosition='top'"  onclick="ReturnRiddleInx()">益智模式索引</div>
				<div class="button" style="left:220px" onmouseover="this.style.backgroundPosition='bottom'" onmouseout="this.style.backgroundPosition='top'"  onclick="if($User.Visitor.UserName!='游客'||confirm('游客只能体验创建功能无法存档\n请使用注册用户以保存你的创意!'))SelectModal('ImZombieCreateGame')">创建新的关卡</div>
			</div>
			<div id="dRiddleClose" onmouseover="this.style.backgroundPosition='bottom'" onmouseout="this.style.backgroundPosition='top'" onclick="HiddenRiddleGame()">关 闭&nbsp;</div>				
		</div>
	</div>
</div>

<!--主界面EDAll-->
<div class="WindowFrame" id="dAll">
	<!--背景图片-->
	<div id="tGround"></div>
	<!--左边卡片列-->
	<div id="dCardList"></div>
	<!--出场僵尸显示-->
	<div id="dZombie"></div>
	<!--右下角的显示图鉴按钮-->
	<div id="bShowHandBook" onmouseover="this.style.backgroundPosition='bottom'" onmouseout="this.style.backgroundPosition='top'" onclick="ViewHandBook()">图 鉴&nbsp;</div>
	<!--选择卡片-->
	<div id="dSelectCard">
		<div class="title">选择你的卡片</div>
		<div id="dPCard"></div>
		<div class="bTitle">
			<input class="button" onclick="ResetSelectCard()" type="button" value="重选" name="btnReset" id="btnReset" style="color:#FC6">
			<input class="button" onclick="oS.ScrollBack(LetsGO)" type="button" value="GO!" disabled="disabled" name="btnOK" id="btnOK" style="color:#888">
		</div>
	</div>
	<!--阳光和铲子-->
	<div id="dTop">
		<div id="dSunNum">
			<span id="sSunNum"></span>
		</div>
		<div id="tdShovel">
			<img id="imgShovel" src="images/interface/Shovel.png" onmousedown="ChoseShovel(event)">
		</div>
	</div>
	<div id="dPZ"></div>
</div>


<!--菜单-->
<div id="dMenu">
	<div id="dMenu0" class="Menu" onclick="PauseGame(this)">暂 停</div>
	<div id="dMenu1" class="Menu" onclick="ClickMenu()">菜 单</div>
</div>

<!--图鉴-->
<div id="dHandBook" class="WindowFrame">
	<div class="title">图鉴——索引</div>
	<div class="content">
		<div>
			<img border="0" src="images/Plants/SunFlower/0.gif" width="73" height="74"><br>
			<input class="button" type="button" value="查看植物" name="btnViewPlant" id="btnViewPlant" onclick="InitHandBookPCard()">
		</div>
		<div style="left:50%;padding-top:95px">
			<img border="0" src="images/Zombies/Zombie/0.gif" width="149" height="130"><br>
			<input class="button" type="button" value="查看僵尸" name="btnViewZombie" id="btnViewZombie" onclick="InitHandBookZCard()">
		</div>
	</div>
	<div class="close" onmouseover="this.style.backgroundPosition='bottom'" onmouseout="this.style.backgroundPosition='top'" onclick="CloseHandBook()">关 闭&nbsp;</div>
</div>

<div id="dHandBookPZ" class="WindowFrame Almanac_PlantBack">
	<div id="dHandBookP">
		<div class="title">图鉴——植物</div>
		<div id="dHandBookPCard"></div>
		<div id="pPlantBack"></div>
		<div class="list">
			<div id="pHandBookPlant"></div>
			<div id="dHandBookPlantName"></div>
			<div id="dProducePlant"></div>
			<div class="cost_cool">
				<span class="cost">花费:</span><span id="spSunNum"></span><span class="cool">冷却:</span><span id="spCoolTime"></span>
			</div>
		</div>
	</div>
	<div id="dHandBookZ">
		<div class="title">图鉴——僵尸</div>
		<div id="dHandBookZCard"></div>
		<div id="pZombieBack"></div>
		<div class="list">
			<div id="pHandBookZombie"></div>
			<div id="dHandBookZombieName"></div>
			<div id="dProduceZombie"></div>
		</div>
	</div>
	<div class="dButton">
		<div class="button1" onmouseover="this.style.backgroundPosition='bottom'" onmouseout="this.style.backgroundPosition='top'" onclick="ReturnHandBookInx()">图鉴索引</div>
		<div class="button2" onmouseover="this.style.backgroundPosition='bottom'" onmouseout="this.style.backgroundPosition='top'" onclick="CloseHandBook()">关 闭&nbsp;</div>
	</div>
</div>

<!--获得新植物-->
<div id="dNewPlant">
	<div id="dNewPlantTitle">你获得了一棵新的植物!</div>
	<div class="card">
		<img id="iNewPlantCard" border="0">
	</div>
	<br>
	<div id="dNewPlantName"></div>
	<br><br><br>
	<div id="dNewPlantTooltip"></div>
	<br><br><br><br><br><br>
	<input type="button" value="下一关!" name="btnNextLevel" id="btnNextLevel">
</div>

<!--开发进度显示-->
<div id="dProcess">
	<div id="dProcess2">
		<span id="sFailed"><br><br>未成功从作者网站上加载到进度文件<br>如果互联网未连接或者作者网站无法成功打开则无法查看最新进度显示!</span>
	</div>
	<br>
	<input class="button" type="button" value="关闭" onclick="SetHidden($('dProcess'))">
	<script>document.write('<a style="margin-left:50px;cursor:pointer;color:#FF0;font-size:15px;text-decoration:none;font-weight:bold" target="_blank" href="http://' $User.AuthorWebsite '/process.htm">查看更多开发进度信息 >>></a>');</script>
</div>
<div id="oEmbed"></div>

<!--聊天窗口-->
<div id="dChat">
	<div id="dChatView">
		<div class="bg"></div>
		<div>
			<iframe name="ChatView" id="ChatView" src="" allowtransparency="true" frameborder="0" width="842" height="585" scrolling="no"></iframe>
		</div>
		<div class="IF2">
			<iframe id="IF2" name="IF2" style="display:none" allowtransparency="true" src="" marginwidth="0" marginheight="0" height="35" width="100%" scrolling="no" border="0" frameborder="0"></iframe>
		</div>
	</div>
</div>

<!--游戏调速-->
<div id="dSpeedContainer">
	<div class="title">应玩家要求,特推出游戏调速功能</div>
	<div class="dSpeed" title="点击一个速度选择软加速">
		<div class="dS1">在相应的速度上点击</div>
		<div class="dS2"><div onclick="CSpeed(1,20,.5)">1/2<br><br>┕━</div><div onclick="CSpeed(1,10,1)">原速<br><br>━┻━</div><div onclick="CSpeed(2,10,2)">2<br><br>━┻━</div><div onclick="CSpeed(5,10,5)">5<br><br>━┻━</div><div onclick="CSpeed(5,5,10)">10<br><br>━┛</div></div>
	</div>
	<div class="nowspeed">当前的游戏速度:<span id="dDisplaySpeed">1</span> 倍速</div>
	<div class="content"><span>&nbsp;&nbsp;&nbsp; 调速说明</span>:理想状态下,游戏提供的速度调节是<font color="#FFFF00">1/2倍速-10倍速</font>。但是调速效果跟你的浏览器以及电脑有关,比如IE6浏览器在再好的电脑上也别指望能上10倍速。<br>&nbsp;&nbsp;&nbsp; 调速后可能画面视觉会出现偶尔有点一顿一顿的感觉,并且在比较高的速度时某些浏览器可能无法实现加速效果或者只能短时间加速然后速度便慢下来。<br>&nbsp;&nbsp;&nbsp; <span style="color:#FF0"><b>最后强烈推荐使用IE9,Chrome,FireFox,Opera浏览器,能让你用豌豆射手体验到机关枪的感觉!<br>&nbsp;&nbsp;&nbsp; 声明:受浏览器和电脑限制,该调速不保证一定能达到选择速度的效果!</b></span></div>
	<br>
	<div><input type=button value="返回游戏" onclick="HiddenSpeed()">&nbsp;&nbsp; <input type=button value="恢复原速" onclick="CSpeed(1,10,1)"></div>
</div>


<script>
//背景音乐和自动拾取阳光代码
$User.Client.PC&&$User.HTTP?( 
	//电脑且是Http协议访问,则读取缓存
	//缓存是允许自动拾取阳光,则勾选.默认不自动拾取
	(oS.AutoSun=Math.floor(getCookie('JSPVZAutoSun')))&&($('cAutoSun').checked=true),
	//是否,默认不静音
	(oS.Silence=Math.floor(getCookie('JSPVZSilence')))&&($('cSilence').checked=true)
):(
	//非电脑或者非http协议,默认自动拾取阳光
	oS.AutoSun=1,$('cAutoSun').checked=true,
	//默认不静音
	oS.Silence=0,$('cSilence').checked=false
);

//ggadsense
ShowAD();
//初始化系统对象
InitGame();
</script>
<script id="JSPVZ"></script>
</body>
</html> 

标签: 网页游戏

实例下载地址

网页版植物大战僵尸中文版 游戏源码

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

第 1 楼 赵文赫 发表于: 2020-07-31 21:21 41
你这个积分太贵了 (▼-▼)

支持(0) 盖楼(回复)

发表评论

(您的评论需要经过审核才能显示)

查看所有1条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警