1 Star 0 Fork 1

行路人/webgame-plugin

forked from skye/webgame-plugin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
game.html 6.75 KB
一键复制 编辑 原始数据 按行查看 历史
skye 提交于 2014-11-01 00:21 . 提交代码
<html>
<head>
<title>傲视苍穹 - 压力测试版本</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-cn">
<meta name="description" content="2D网页游戏《傲视苍穹》 - GCP工作室" />
<meta name="keywords" content="2D网页游戏《傲视苍穹》" />
</head>
<body style="color: #dddddd; margin-left: 0; margin-top: 0; background-color: #000000">
<table width="100%" height="100%" border="0" align="center" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="middle">
<script language="JavaScript">
<!--
function printAllPlugin()
{
var num_of_plugins = navigator.plugins.length;
for (var i=0; i < num_of_plugins; i++) {
var list_number=i+1;
document.write("<font color=red>Plug-in No." + list_number + "- </font>"+navigator.plugins[i].name+" <br>[Location: " + navigator.plugins[i].filename + "]<p>");
}
if (list_number>15)
alert("\n哇!你有 " + list_number + " 种插件程序!")
else
alert ("\n多找一些插件程序吧! 你只有 "+ list_number + " 种插件程序,有点逊!")
}
function checkPlugins(pluginsName, activexObjectName) {
// 通常ActiveXObject的对象名称是两个插件名称的组合
if (activexObjectName == '') activexObjectName = pluginsName + "." + pluginsName;
var np = navigator.plugins;
// 针对于FF等非IE
if (np && np.length) {
for(var i = 0; i < np.length; i ++) {
if(np[i].name.indexOf(pluginsName) != -1) return true;
}
return false;
}
// 针对于IE
else if (window.ActiveXObject) {
try {
var axobj =eval("new ActiveXObject(activexObjectName);");
// 将对象转化为布尔类型
return axobj ? true : false;
} catch (e) {
return false;
}
} else {
// 以上情况都排除则返回false
return false;
}
}
function checkGamePlugin()
{
return checkPlugins("GamePlayerPlugin","np_game_player.ms_game_player.1");
}
function WritePluginDownload()
{
document.write("<img src='http://z2.ucjoy.com/Zeus/loading.jpg'><br><br><a href='http://z2.ucjoy.com/Zeus/TrianglePlayer_setup11111656.exe'><img src='http://z2.ucjoy.com/img/button.png' border=0></a><br>(480KB,根据您的网速,预计3秒)<br><br><img src='http://z2.ucjoy.com/img/1.gif'>");
document.write("<br>");
}
function StartGame(){
/*
try
{
var comActiveX = new ActiveXObject("MSActiveX.GameShell.15");
comActiveX.Start('Zeus Zeus.dll zs999 1 localversion z.ucjoy.com facebook');
}
catch(e)
{
WritePluginDownload();
}
*/
}
function getOs()
{
var OsObject = "";
if(navigator.userAgent.indexOf("MSIE")>0) {
return "MSIE";
}
if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){
return "Firefox";
}
if(isSafari=navigator.userAgent.indexOf("Safari")>0) {
return "Safari";
}
if(isCamino=navigator.userAgent.indexOf("Camino")>0){
return "Camino";
}
if(isMozilla=navigator.userAgent.indexOf("Gecko/")>0){
return "Gecko";
}
}
if (getOs() == "Firefox" || getOs() == "Safari")
{
// Firfox或google浏览器下的逻辑处理
//alert("google浏览器");
var MyGamePlugin = navigator.plugins["GamePlayerPlugin"];
if (MyGamePlugin != null)
{
var PluginsDescription = MyGamePlugin.description;
var descArray = PluginsDescription.split(" ");
if (descArray[1] != "1.0.0.1")
{
// 版本不匹配,重新下载插件
WritePluginDownload();
}
else
{
// NPAPI 模式下的插件安装
document.write("<object id='NPGamePlayer' type='application/np_game_player' width='800' height='600'>");
document.write("<PARAM NAME ='gamename' VALUE='傲视苍穹'>");
document.write("<PARAM NAME ='gameclass' VALUE='mywoool_client'/>");
document.write("<PARAM NAME ='gamecore' VALUE='Client2D.dat'/>");
document.write("<PARAM NAME ='cmdline' VALUE='-rundq'/>");
document.write("<PARAM NAME ='userid' VALUE='zs999' />");
document.write("<PARAM NAME ='userkey' VALUE='zs999' />");
document.write("<PARAM NAME ='resurl' VALUE='z.ucjoy.com'/>");
document.write("</object>");
}
}
else
{
// 没找到插件,重新下载插件
WritePluginDownload();
}
}
else
{
//alert("IE浏览器");
// IE浏览器下的逻辑处理
if (checkGamePlugin())
{
document.write("<object ID='ms_game_player' codeBase='MSPlayerShellCab.cab#version=1,0,0,1' CLASSID='CLSID:4A8A0E74-934D-498A-B9B0-8490C500EAA7' width='800' height='600'>");
document.write("<PARAM NAME ='gamename' VALUE='傲视苍穹'>");
document.write("<PARAM NAME ='gameclass' VALUE='mywoool_client'/>");
document.write("<PARAM NAME ='gamecore' VALUE='Client2D.dat'/>");
document.write("<PARAM NAME ='cmdline' VALUE='-rundq'/>");
document.write("<PARAM NAME ='userid' VALUE='zs999' />");
document.write("<PARAM NAME ='userkey' VALUE='zs999' />");
document.write("<PARAM NAME ='resurl' VALUE='z.ucjoy.com'/>");
document.write("</object>");
} else {
//alert("未安装插件");
WritePluginDownload();
}
/*
try
{
var comActiveX = new ActiveXObject("np_game_player.PluginWindow.1");
if (comActiveX.IsLaunch() == 'ok')
{
document.write("<img src='http://z2.ucjoy.com/Zeus/loading.jpg'><br><br><a href='javascript:StartGame()'><img src='http://z2.ucjoy.com/img/launch.png' border=0></a>");
document.write("<br>");
//alert(comActiveX.Start(Zeus Zeus.dll zs999 1 localversion zeus.gameres.com facebook"));
}
else
{
document.write("<object ID='NPGamePlayer' codeBase='MSPlayerShellCab.cab#version=1,0,0,1' CLASSID='CLSID:3EC5BF33-5ABB-4A0A-AC9B-5C094BB1DF0A' width='800' height='600'>");
document.write("<PARAM NAME ='productname' VALUE='Zeus'>");
document.write("<PARAM NAME ='loader' VALUE='Zeus.dll'/>");
document.write("<PARAM NAME ='userid' VALUE='zs999' />");
document.write("<PARAM NAME ='key' VALUE='zs999' />");
document.write("<PARAM NAME ='localversion' VALUE='localversion_001341324134'/>");
document.write("<PARAM NAME ='resourceurl' VALUE='z.ucjoy.com'/>");
var strFrom="<PARAM NAME ='from' VALUE='";
//if (navigator.userAgent.indexOf("360") > 0)
//{
strFrom = strFrom + navigator.userAgent;
strFrom = strFrom + "'/>";
//}
//alert(strFrom);
document.write(strFrom);
document.write("</object>");
}
}
catch(e)
{
WritePluginDownload();
}
*/
}
-->
</script>
<br><font size=2>(C) 2011-2012 上海GCP软件开发有限公司 
<script language='javascript' type='text/javascript' src='http://js.users.51.la/111111.js'></script></font>
</td>
</tr>
</table>
<script language=JavaScript type=text/JavaScript>
document.body.oncontextmenu=function(){
var obj=event.srcElement;
if(obj && obj.tagName!="INPUT"){
event.returnValue=false;
return false;
}
}
</script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/xcy021/webgame-plugin.git
[email protected]:xcy021/webgame-plugin.git
xcy021
webgame-plugin
webgame-plugin
master

搜索帮助