- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gbk" />
- <meta http-equiv="Content-Language" content="gbk" />
- <title>QQ农场</title>
- <link rel="stylesheet" rev="stylesheet" href="js/app_happyfarm.css" type="text/css" media="screen"/>
- <link rel="stylesheet" rev="stylesheet" href="js/gb_color.css" type="text/css" media="screen"/>
- <link rel="Shortcut Icon" href="/favicon.ico" type="image/x-icon" />
- <style type="text/css">
- <!--
- body { /*overflow:hidden;*/ background-color:#FFFFFF; }
- -->
- </style>
- <script type="text/javascript" src="js/swfobject_qzone.js?v=2.1"></script>
- <script type="text/javascript" src="js/core.js"></script>
- </head>
- <!-- QZFL库本体 -->
- <body>
- <div class="bg_mode" style="width:100%">
- <div class="box_ml bor">
- <div class="mode_gb">
- <div class="mode_gb_cont app_happyfarm">
- <?php
- error_reporting(E_ALL & ~E_NOTICE);
- include_once( "config.php" );
- $query = $_SGLOBAL['db']->query( "SELECT yb FROM ".tname( "happyfarm_config" )." where uid=".intval( $_SGLOBAL['supe_uid'] ) );
- while ( $value = $_SGLOBAL['db']->fetch_array( $query ) )
- {
- $yb1 = $value[yb];
- }
- if ( $_REQUEST['act'] == "nc" )
- {
- echo "<!--==S 顶部-->";
- echo "<div class="happyfarm_toolbar">";
- echo "<!--==S 顶部tag-->";
- echo "<div class="happyfarm_broadcast"><p><img src="js/b.gif" class="icon_owner_msg" alt="系统消息"/>";
- echo "<a href="#" target="_blank" id='msg_viewer'>请勿使用第三方软件,以免QQ号码被盗或被降级处罚。</a>";
- echo "</p>";
- echo "</div>";
- echo "<div class="mode_menu_tag2">";
- echo "<ul>";
- echo "<li class="nowtag"><a href="?act=nc">我的农场</a></li>";
- echo "<li><a href="?act=setting">游戏设置</a></li>";
- echo "<li><a href="?acr=yb">对换Y币</a></li>";
- echo "<li><a href="?acr=vip">VIP升级</a></li>";
- echo "<li><a href="../cp.php?ac=invite">好友邀请</a></li>";
- echo "<li><a href="?acr=help">游戏帮助</a></li>";
- echo "<li><a href="?act=full">大窗口模式</a></li>";
- echo "</ul>";
-
- echo "<span style='float:right;'>Y币:<b style='color:red;'>$yb1</b>个 </span>";
- echo "</div>";
- echo "<!--==E 顶部tag-->";
- echo "</div>";
- echo "<!--==E 顶部-->";
- echo "<!--flash位置开始(嵌入flash后请删掉img)-->";
- echo "<div class="my_farm_wrap" id="myContentnc">";
- echo "</div>";
- echo "<div class="my_farm_wrap" id="myContentmc" style="display: none;"></div>";
- echo "<!--flash位置结束(嵌入flash后请删掉img)-->";
- }
- else if ($_REQUEST['act'] == "setting" )
- {
- include_once( "config.php" );
- $query = $_SGLOBAL['db']->query( "SELECT setting1,setting2,setting3,setting4,setting5,setting6,yb FROM ".tname( "happyfarm_config" )." where uid=".intval( $_SGLOBAL['supe_uid'] ) );
- while ( $value = $_SGLOBAL['db']->fetch_array( $query ) )
- {
- $list[] = $value;
- }
- $Tips_water_b = $list[0][setting6];
- $Tips_weed_b = $list[0][setting1];
- $Tips_pest_b = $list[0][setting2];
- $Tips_weed_a = $list[0][setting3];
- $Tips_pest_a = $list[0][setting4];
- $Tips_water_b = iconv( "UTF-8","GBK", json_decode(""".str_replace( "\\\u", "\\u", $Tips_water_b )."""));
- $Tips_weed_b = iconv( "UTF-8","GBK",json_decode(""".str_replace( "\\\u", "\\u", $Tips_weed_b ).""")) ;
- $Tips_pest_b = iconv( "UTF-8","GBK",json_decode(""".str_replace( "\\\u", "\\u", $Tips_pest_b ).""")) ;
- $Tips_weed_a = iconv( "UTF-8","GBK",json_decode(""".str_replace( "\\\u", "\\u", $Tips_weed_a ).""")) ;
- $Tips_pest_a = iconv( "UTF-8","GBK",json_decode(""".str_replace( "\\\u", "\\u", $Tips_pest_a ).""")) ;
- echo "<!--==S 顶部-->";
- echo "<div class="happyfarm_toolbar">";
- echo "<!--==S 顶部tag-->";
- echo "<div class="happyfarm_broadcast"><p><img src="js/b.gif" class="icon_owner_msg" alt="系统消息"/>";
- echo "<a href="#" target="_blank" id='msg_viewer'>请勿使用第三方软件,以免QQ号码被盗或被降级处罚。</a>";
- echo "</p>";
- echo "</div>";
- echo "<div class="mode_menu_tag2">";
- echo "<ul>";
- echo "<li><a href="?act=nc">我的农场</a></li>";
- echo "<li class="nowtag"><a href="?act=setting">游戏设置</a></li>";
- echo "<li><a href="?acr=yb">对换Y币</a></li>";
- echo "<li><a href="?acr=vip">VIP升级</a></li>";
- echo "<li><a href="../cp.php?ac=invite">好友邀请</a></li>";
- echo "<li><a href="?acr=help">游戏帮助</a></li>";
- echo "<li><a href="?act=full">大窗口模式</a></li>";
- echo "</ul>";
- echo "<span style='float:right;'>Y币:<b style='color:red;'>$yb1</b>个 </span>";
- echo "</div>";
- echo "<!--==E 顶部tag-->";
- echo "</div>";
- echo "<!--==E 顶部-->";
- echo "<script src="js/jquery.js" type="text/javascript"></script>";
- echo "<script src="js/setting.js" type="text/javascript"></script>";
- echo "";
- echo "<div class="app_happyfarm_cont" style="height:500px;">";
- echo "<!--S 游戏设置-->";
- echo "<div class="set_game_wrap">";
- echo "<strong class="inst_tx">你可以在这里修改游戏里的一些设定</strong>";
- echo "<ul class="list_set">";
- echo "<li>";
- echo "<p class="set_sort">如果你的好友帮你浇水,你会对他说什么感谢的话呢?(12字以内)</p>";
- echo "<form action="?act=setting" method="post">";
- echo "<p class="input_wrap">";
- echo "<input name="content" id="word_1" type="text" value="".$Tips_water_b."" size="50" maxlength="12" class="text-input" onchange="javascript: onChangFn(0)" />";
- echo "<button class="bt_tx2" type="button" onclick="request('happyfarm.php?act=setting&submit=1','word_1','loading_1',6,0);" >确定</button>";
- echo "<button class="bt_tx4" type="button" onclick="setDefault('word_1',0,'happyfarm.php?act=setting&submit=1','loading_1',6);">恢复默认</button>";
- echo "<span id="loading_1" class="loading"></span>";
- echo "</p>";
- echo "</form> ";
- echo "</li>";
- echo "<li>";
- echo "<p class="set_sort">如果你的好友帮你除草,你会对他说什么感谢的话呢?(12字以内)</p>";
- echo "<form action="?act=setting" method="post">";
- echo "<input type="hidden" name="tipId" value="1" />";
- echo "<p class="input_wrap">";
- echo "<input name="content" id="word_2" type="text" value="".$Tips_weed_b."" size="50" maxlength="12" class="text-input" onchange="javascript: onChangFn(1)" />";
- echo "<button class="bt_tx2" type="button" onclick="request('happyfarm.php?act=setting&submit=1','word_2','loading_2',1,1);" >确定</button>";
- echo "<button class="bt_tx4" type="button" onclick="setDefault('word_2',1,'happyfarm.php?act=setting&submit=1','loading_2',1);">恢复默认</button>";
- echo "<span id="loading_2" class="loading"></span>";
- echo "</p>";
- echo "</form> ";
- echo "</li>";
- echo "<li>";
- echo "<p class="set_sort">如果你的好友帮你除虫,你会对他说什么感谢的话呢?(12字以内)</p>";
- echo "<form action="?act=setting" method="post">";
- echo "<input type="hidden" name="tipId" value="2" />";
- echo "<p class="input_wrap">";
- echo "<input name="content" id="word_3" type="text" value="".$Tips_pest_b."" size="50" maxlength="12" class="text-input" onchange="javascript: onChangFn(2)" />";
- echo "<button class="bt_tx2" type="button" onclick="request('happyfarm.php?act=setting&submit=1','word_3','loading_3',2,2);" >确定</button>";
- echo "<button class="bt_tx4" type="button" onclick="setDefault('word_3',2,'happyfarm.php?act=setting&submit=1','loading_3',2);">恢复默认</button>";
- echo "<span id="loading_3" class="loading"></span>";
- echo "</p>";
- echo "</form> ";
- echo "</li>";
- echo "<li>";
- echo "<p class="set_sort">如果你的好友给你种草,你会对他说什么呢?(12字以内)</p>";
- echo "<form action="?act=setting" method="post">";
- echo "<input type="hidden" name="tipId" value="3" />";
- echo "<p class="input_wrap">";
- echo "<input name="content" id="word_4" type="text" value="".$Tips_weed_a."" size="50" maxlength="12" class="text-input" onchange="javascript: onChangFn(3)" />";
- echo "<button class="bt_tx2" type="button" onclick="request('happyfarm.php?act=setting&submit=1','word_4','loading_4',3,3);" >确定</button>";
- echo "<button class="bt_tx4" type="button" onclick="setDefault('word_4',3,'happyfarm.php?act=setting&submit=1','loading_4',3);">恢复默认</button>";
- echo "<span id="loading_4" class="loading"></span>";
- echo "</p>";
- echo "</form> ";
- echo "</li>";
- echo "<li>";
- echo "<p class="set_sort">如果你的好友给你放虫,你会对他说什么呢?(12字以内)</p>";
- echo "<form action="?act=setting" method="post">";
- echo "<input type="hidden" name="tipId" value="4" />";
- echo "<p class="input_wrap">";
- echo "<input name="content" id="word_5" type="text" value="".$Tips_pest_a."" size="50" maxlength="12" class="text-input" onchange="javascript: onChangFn(4)" />";
- echo "<button class="bt_tx2" type="button" onclick="request('happyfarm.php?act=setting&submit=1','word_5','loading_5',4,4);" >确定</button>";
- echo "<button class="bt_tx4" type="button" onclick="setDefault('word_5',4,'happyfarm.php?act=setting&submit=1','loading_5',4);">恢复默认</button>";
- echo "<span id="loading_5" class="loading"></span>";
- echo "</p>";
- echo "</form> ";
- echo "</li>";
- echo "</ul>";
- }
- else if ($_REQUEST['acr'] == "yb" )
- {
- echo "<!--==S 顶部-->";
- echo "<div class="happyfarm_toolbar">";
- echo "<!--==S 顶部tag-->";
- echo "<div class="happyfarm_broadcast"><p><img src="js/b.gif" class="icon_owner_msg" alt="系统消息"/>";
- echo "<a href="#" target="_blank" id='msg_viewer'>请勿使用第三方软件,以免QQ号码被盗或被降级处罚。</a>";
- echo "</p>";
- echo "</div>";
- echo "<div class="mode_menu_tag2">";
- echo "<ul>";
- echo "<li><a href="?act=nc">我的农场</a></li>";
- echo "<li><a href="?act=setting">游戏设置</a></li>";
- echo "<li class="nowtag"><a href="?acr=yb">对换Y币</a></li>";
- echo "<li><a href="?acr=vip">VIP升级</a></li>";
- echo "<li><a href="../cp.php?ac=invite">好友邀请</a></li>";
- echo "<li><a href="?acr=help">游戏帮助</a></li>";
- echo "<li><a href="?act=full">大窗口模式</a></li>";
- echo "</ul>";
- echo "<span style='float:right;'>Y币:<b style='color:red;'>$yb1</b>个 </span>";
- echo "</div>";
- echo "<!--==E 顶部tag-->";
- echo "</div>";
- echo "<!--==E 顶部-->";
- echo "<table width='362' height='200' border='0' align='center' cellpadding='0' cellspacing='0'>";
- echo "<tr><td align='center'> <br /><br /><br /><br /><font color='#ff0000' style='font-size:12px'>使用本站积分兑换,10个积分兑换 1个Y币</font></td></tr>";
- echo "<tr><td align='center'><div>";
- echo "<form method='post' action='yb.php'>";
- echo " <font color='#000000' style='font-size:12px'>请输入兑换数目:</font><input type='text' id='fb' name='fb' class='line' size='15' /> ";
- echo "<br /><br /><input type='submit' class='btn' title='确定兑换' value='确定兑换' />";
- echo "</form><div><br /><br /></td></tr></table>";
- }
- else if ($_REQUEST['acr'] == "vip" )
- {
- $query = $_SGLOBAL['db']->query( "SELECT vip FROM ".tname( "happyfarm_config" )." where uid=".intval( $_SGLOBAL['supe_uid'] ) );
- while ( $value = $_SGLOBAL['db']->fetch_array( $query ) )
- {
- $vip1 = $value[vip];
- }
- switch(($vip1+1)){
- case 1:
- $vipYB = 0;
- break;
- case 2:
- $vipYB = 50;
- break;
- case 3:
- $vipYB = 100;
- break;
- case 4:
- $vipYB = 200;
- break;
- case 5:
- $vipYB = 400;
- break;
- case 6:
- $vipYB = 600;
- break;
- case 7:
- $vipYB = 800;
- break;
- case 8:
- $vipYB = 1000;
- break;
- case 9:
- $vipYB = 1500;
- break;
- }
-
- echo "<!--==S 顶部-->";
- echo "<div class="happyfarm_toolbar">";
- echo "<!--==S 顶部tag-->";
- echo "<div class="happyfarm_broadcast"><p><img src="js/b.gif" class="icon_owner_msg" alt="系统消息"/>";
- echo "<a href="#" target="_blank" id='msg_viewer'>请勿使用第三方软件,以免QQ号码被盗或被降级处罚。</a>";
- echo "</p>";
- echo "</div>";
- echo "<div class="mode_menu_tag2">";
- echo "<ul>";
- echo "<li><a href="?act=nc">我的农场</a></li>";
- echo "<li><a href="?act=setting">游戏设置</a></li>";
- echo "<li><a href="?acr=yb">对换Y币</a></li>";
- echo "<li class="nowtag"><a href="?acr=vip">VIP升级</a></li>";
- echo "<li><a href="../cp.php?ac=invite">好友邀请</a></li>";
- echo "<li><a href="?acr=help">游戏帮助</a></li>";
- echo "<li><a href="?act=full">大窗口模式</a></li>";
- echo "</ul>";
- echo "<span style='float:right;'>Y币:<b style='color:red;'>$yb1</b>个 </span>";
- echo "</div>";
- echo "<!--==E 顶部tag-->";
- echo "</div>";
- echo "<!--==E 顶部-->";
- echo "<table width='362' height='200' border='0' align='center' cellpadding='0' cellspacing='0'>";
- echo "<tr><td align='center'> <br /><br /><br /><br /><font color='#ff0000' style='font-size:22px'>当前VIP等级:".$vip1."</font></td></tr>";
- if($vip1 == 9){
- echo "<tr><td align='center' style='font-size:22px'>你已经处于最高级!</td></table>";
- } else {
- echo "<tr><td align='center' style='font-size:22px'>升级到VIP".($vip1+1)."需要".$vipYB."Y币 ";
- echo "<a href='vip.php?up_vip=".($vip1+1)."'><font color='#ff0000'>点击升级</font></a></td></tr></table><br /><br /><br /><br />";
- }
- }
- else if ($_REQUEST['acr'] == "help" )
- {
- echo "<!--==S 顶部-->";
- echo "<div class="happyfarm_toolbar">";
- echo "<!--==S 顶部tag-->";
- echo "<div class="happyfarm_broadcast"><p><img src="js/b.gif" class="icon_owner_msg" alt="系统消息"/>";
- echo "<a href="#" target="_blank" id='msg_viewer'>请勿使用第三方软件,以免QQ号码被盗或被降级处罚。</a>";
- echo "</p>";
- echo "</div>";
- echo "<div class="mode_menu_tag2">";
- echo "<ul>";
- echo "<li><a href="?act=nc">我的农场</a></li>";
- echo "<li><a href="?act=setting">游戏设置</a></li>";
- echo "<li><a href="?acr=yb">对换Y币</a></li>";
- echo "<li><a href="?acr=vip">VIP升级</a></li>";
- echo "<li><a href="../cp.php?ac=invite">好友邀请</a></li>";
- echo "<li class="nowtag"><a href="?acr=help">游戏帮助</a></li>";
- echo "<li><a href="?act=full">大窗口模式</a></li>";
- echo "</ul>";
- echo "<span style='float:right;'>Y币:<b style='color:red;'>$yb1</b>个 </span>";
- echo "</div>";
- echo "<!--==E 顶部tag-->";
- echo "</div>";
- echo "<!--==E 顶部-->";
- echo "<script src="js/jquery.js" type="text/javascript"></script>";
- echo "<script src="js/setting.js" type="text/javascript"></script>";
- echo "<div class="app_happyfarm_cont" style="height:500px;">";
- echo "<div class="set_game_wrap">";
- echo "<li>";
- echo "<strong class="inst_tx">多季作物的含义</strong>";
- echo "<p class="set_sort">多季作物是指该作物种植一次后可以多次收获</p>";
- echo "</form> ";
- echo "</li>";
- echo "<li>";
- echo "<strong class="inst_tx">“产xx剩xx”是什么意思?</strong>";
- echo "<p class="set_sort">“产xx剩xx”表示该作物成熟了,产xx是指该作物产出的数量,剩xx是指该作物被摘过后,剩下的数量。</p>";
- echo "</p>";
- echo "</form> ";
- echo "</li>";
- echo "<li>";
- echo "<strong class="inst_tx">为什么好友的作物已经成熟了可是我不能摘?</strong>";
- echo "<p class="set_sort">每个作物成熟后,不仅每人只能摘一次,而且该作物至多能被摘取产出量的40%。</p>";
- echo "</p>";
- echo "</form> ";
- echo "</li>";
- echo "<li>";
- echo "<strong class="inst_tx">如何给好友留言“和”查看各种消息?</strong>";
- echo "<p class="set_sort">只需要大家点击右侧的好友列表,进入好友的农场以后,点击左侧的好友头像,会出现一个好友资料的界面,里面有好友的姓名,个人主页地址,等级,经验,现金,以及各种农作物收获+摘取总值。</p>";
- echo "</p>";
- echo "</form> ";
- echo "</li>";
- echo "<li>";
- echo "<strong class="inst_tx">待续</strong>";
- echo "<p class="set_sort">......</p>";
- echo "</p>";
- echo "</form> ";
- echo "</li>";
- echo "</ul>";
- }
- else if ($_REQUEST['act'] == "full")
- {
- echo "<!--flash位置开始(嵌入flash后请删掉img)-->";
- echo "<div class="my_farm_wrap" id="myContentnc">";
- echo "</div>";
- echo "<div class="my_farm_wrap" id="myContentmc" style="display: none;"></div>";
- echo "<!--flash位置结束(嵌入flash后请删掉img)-->";
- }
- else
- {
- exit ();
- }
- ?>
- </div>
- <!--==E 模框内容-->
- </div>
- </div>
- </div>
- <script type="text/javascript">
- /**
- * SWF链接代理
- * @param {String} methodName 呼叫的方法名称
- * @param {Object} arg 需要给方法传递的参数(可以不填写)
- * @param {String} module 需要调用哪个Flash的方法 'nc' 表示农场, 'mc' 表示牧场, 此参数也可以不填写
- * @return {*} 如果函数有返回则返回函数返回的结果,无则返回null
- */
- function connectSWF(methodName, arg, module){
- var m = module || curModule;
- var re = null;
- //try{
- if(arg){
- re = $("myContent" + m)[methodName](arg) || null;
- } else {
- re = $("myContent" + m)[methodName]();
- }
- //} catch (error){}
-
- return re;
- }
- var expressUser;
- function setExpressUser(user){
- expressUser = user;
- }
- function getExpressUser(user){
- return expressUser;
- }
-
- var curModule = 'nc';
-
- /**
- * 拉取用户的头像
- */
- /* function getUserPortrait(){
- var uin = QZONE.FP.getQzoneConfig().ownerUin;
- QZONE.FP.getPortraitList([uin],function(o){
- $(['myContent', curModule].join('')).setOwnerHead(o[uin][0], o[uin][6]);
- });
- }
-
- //老函数映射接口
- var getOwnerHead = getOwnerHead || getUserPortrait;*/
-
- var helpBtn = $('help_btn');
-
- /**
- * 切换农场牧场
- * @param {String} module 模式的名称 nc 表示农场, mc表示牧场(特此声明:鄙视拼音啊,切此函数命名不是我写的)
- *广告
- *"ShopHeadLink" : "<u>疯抢!上拍拍充话费送化肥!</u>|http://www.paipai.com/chong/charge_index_event.shtml?PTAG=30764.1.3"
- */
- var switchfarm = function(module){
- curModule = module;
-
- var flashvars = {
- "useOldEnter" :1,
- "module" : module,
- "ShopHeadLink" : "<u>QQ农牧场</u>|#",
- "ShopToolLink" : "",
- "autoStatus" : 1,
- "mode" : "",
- "filterLV" : 6,
- "app_key" : "happyfarm",
- "api_enter_1" : "",
- "api_enter_from" : 0,
- "api_enter_to" : 999,
- "api_steal" : "",
- "api_steal_from" : 0,
- "api_steal_to" : 999,
- "api_farm" : "",
- "api_farm_from" : 0,
- "api_farm_to" : 999,
- "api_planting" : "",
- "api_planting_from" : 0,
- "api_planting_to" : 999
- };
-
- var others = {
- "batchStealHour":"5-23",
- "cacheDiy":4,
- "cacheSeed":13,
- "buyToolHour":"5-24",
- "buyToolTips":"\u5bd2\u51ac\u6765\u4e34\uff0c\u5316\u80a5\u4f9b\u5e94\u7d27\u5f20\uff0c\u76ee\u524d\u6682\u4e0d\u80fd\u8d2d\u4e70\u5316\u80a5",
- "healthModeTime":"00:00 - 06:00",
- "api_checkStatus":"",
- "api_checkStatus_from":0,
- "api_checkStatus_to":999,
- "api_userCrop":"",
- "api_userCrop_from":0,
- "api_userCrop_to":999,
- "api_friend":"",
- "api_friend_from":999,
- "api_friend_to":999,
- "api_listFilter":"",
- "api_listFilter_from":1000,
- "api_listFilter_to":1000,
- "api_friendStatus":"",
- "api_friendStatus_from":1000,
- "api_friendStatus_to":1000,
- "api_sale":"",
- "api_sale_from":999,
- "api_sale_to":999,
- "api_saleall":"",
- "api_saleall_from":999,
- "api_saleall_to":999,
- "api_repertory":"",
- "api_repertory_from":1000,
- "api_repertory_to":1000,
- "api_item":"",
- "api_item_from":1000,
- "api_item_to":1000,
- "api_chat":"",
- "api_chat_from":1000,
- "api_chat_to":1000,
- "api_user":"",
- "api_user_from":1000,
- "api_user_to":1000,
- "reqYellowlevel":1,
- "filterUrl":"",
- "noFoodTips":"\u5bd2\u51ac\u6765\u4e34\uff0c\u72d7\u7cae\u8fd0\u8f93\u56f0\u96be\uff0c\u76ee\u524d\u6682\u4e0d\u80fd\u8d2d\u4e70\u72d7\u7cae\u3002",
- "missionTitle":"\u5723\u8bde\u6d3b\u52a8",
- "missionPrepareTime":"2009-12-07 02:00:12",
- "missionBeginTime":"2009-12-21 15:00:00",
- "missionEndTime":"2009-12-30 15:00:00",
- "missionPrepareHtml":"<br /> \u5723\u8BDE\u8282\u5FEB\u5230\u4E86\uFF0C\u60F3\u8981\u4E00\u4E2A\u706B\u6811\u94F6\u82B1\u7684\u5723\u8BDE\u8282\u5417\uFF1F\u53EA\u8981\u4F60\u80FD\u8BC1\u660E\u81EA\u5DF1\u662F\u52E4\u52B3\u7684\u519C\u592B\uFF0C\u6211\u5C31\u9001\u4F60\u6302\u6EE1\u793C\u7269\u7684\u5723\u8BDE\u6811\uFF01\u4E0D\u7BA1\u4EC0\u4E48\u4F5C\u7269\uFF0C\u5728\u4ED3\u5E93\u4E2D\u7684\u6570\u91CF\u53EA\u8981\u8D85\u8FC750\u4E2A\u5C31\u80FD\u83B7\u5F9710\u9897\u5723\u8BDE\u6811\u79CD\u5B50\uFF0C\u6BCF\u79CD\u4F5C\u7269\u53EA\u80FD\u5151\u636210\u9897\u3002<br /><br /> \u6211\u4F1A\u572812\u670821\u65E515:00 -12\u670830\u65E515:00\u8FD9\u6BB5\u65F6\u95F4\u91CC\u7B49\u5019\u4F60\u6765\u9886\u53D6\u5723\u8BDE\u6811\uFF0C<font color="#FF0000">\u9886\u53D6\u673A\u4F1A\u53EA\u6709\u4E00\u6B21\u54E6!</font>",
- "missionBeginHtml":"<br /> Hi~\u7EC8\u4E8E\u5F00\u59CB\u53D1\u653E\u5723\u8BDE\u6811\u5566\uFF01\u5927\u5BB6\u7684\u4ED3\u5E93\u90FD\u51C6\u5907\u597D\u4E86\u5417\uFF1F<br /><br /> \u8FD8\u8BB0\u5F97\u89C4\u5219\u5417\uFF1F\u572812\u670830\u65E5\u4E0B\u5348\u4E09\u70B9\u524D\uFF0C\u4E0D\u7BA1\u4EC0\u4E48\u4F5C\u7269\uFF0C\u5728\u4ED3\u5E93\u4E2D\u7684\u6570\u91CF\u53EA\u8981\u8D85\u8FC750\u4E2A\u5C31\u80FD\u83B7\u5F9710\u9897\u5723\u8BDE\u6811\u79CD\u5B50\u3002<br /><br /> \u786E\u5B9A\u73B0\u5728\u9886\u53D6\u5956\u52B1\u5417\uFF1F<font color="#FF0000">\u53EA\u80FD\u9886\u53D6\u4E00\u6B21\u7684\u54E6\uFF01</font>"} ;
-
-
- for( var k in others )
- {
- flashvars[k] = others[k];
- }
-
- var flashDir = "";
-
- var attributes = {
- "MredirectURL" : "#"
- };
-
- var params = {
- base : flashDir,
- allowScriptAccess : "always",
- wmode : "opaque"
- };
-
- //区分农场牧场做不同的请求
- /*if(module == "nc"){
- flashvars.phpini = "http://happyfarm.qzone.qq.com/?mod=ini%26v=32";
- }*/
- flashvars.phpini = "module/nc/ini.xml";
- flashvars.phpini2 = "module/mc/ini.xml";
-
- if($(["myContent", module].join("")).tagName.toLowerCase() == 'div'){
- swfobject.embedSWF(
- "module/happyfarm_v_1.swf?v=1015",
- ["myContent", module].join(""),
- "100%",
- "560",
- "9.0.124",
- [flashDir, "/images/expressInstall.swf"].join(),
- flashvars,
- params,
- attributes,
- function(e)
- {
- if (!e.success)
- {
- $("myContentnc").innerHTML = '<div style="padding:20px"><h1>请下载最新的Flash插件</h1><p><a href="http://www.adobe.com/go/getflashplayer" target="_blank"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="下载最新的Flash插件" border="0" /></a></p></div>'
- }
- }
- );
- }
-
- //if(mainContainer){
- var moduleNc = $("myContentnc"),
- moduleMc = $("myContentmc");
-
- if(module == 'nc'){
- moduleNc.style.height = "560px";
- moduleMc.style.height = "0px";
- if(!ua.ie){
- moduleMc.style.marginTop = "-14px";
- }
- } else {
- moduleNc.style.height = "0px";
- moduleMc.style.height = "560px";
- if(!ua.ie){
- moduleMc.style.marginTop = "-14px";
- }
- }
- //}
- }
-
- retryOnce = false;
- /**
- * @return {String} 返回上传的地址
- */
- function getUploadUrl(){
- //先判断是否存在此方法,并且不存在5秒钟重试一次,并且仅仅重试一次。
- if(PhotoLogic && typeof(PhotoLogic.getExternalUploadUrl) == 'function'){
- PhotoLogic.getExternalUploadUrl({
- "uin" : QZONE.FP.getQzoneConfig().ownerUin,
- "aid" : 10000000,
- "refer" : "farmsnap",
- "callBack" : function(url){
- try{
- var swf = $("myContentnc") || $("myContent");
- swf.setUploadUrl(url);
- } catch (error){}
- },
- //当出错的时候则告诉
- "errBack" : function(){
- var swf = $("myContentnc") || $("myContent");
- swf.setUploadUrl('');
- }
- });
- } else if(!retryOnce){
- retryOnce = true;
- setTimeout(getUploadUrl, 5000);
- }
- }
-
- if(!$(["myContentnc"].join(""))){
- switchfarm = function(){};
- }
-
- (function(){
- var msgViewer = document.getElementById('msg_viewer'),
- _timer,
- _msgs = [
- {
- text : 'QQ农场黄钻分等级每日礼包于12月3日起停止赠送。',
- href : '#'
- },
- {
- text : '请勿使用第三方软件,情节严重者将禁止登录QQ农场。',
- href : '#'
- },
- {
- text : '关于打击QQ牧场外挂声明。',
- href : '#'
- },
- {
- text : '12月爱心果播种开始啦,支持公益月捐,领爱心果礼包。',
- href : '#'
- },
- {
- text : '上拍拍购物充值,领取农场星级大礼包!',
- href : '#'
- }
- ],
- _curIndex = 0,
- DELAY = 5000;
-
- var playMsg = function(){
- //当游戏信息大于一条的时候
- if(_msgs.length > 1){
- clearInterval(_timer);
- msgViewer.innerHTML = _msgs[_curIndex].text;
- msgViewer.target = '_blank';
- _timer = setInterval(function(){
- msgViewer.innerHTML = _msgs[_curIndex].text;
- msgViewer.target = '_blank';
- msgViewer.href = _msgs[_curIndex].href;
- if(++_curIndex == _msgs.length){
- _curIndex = 0;
- }
- }, 5000);
- } else {
- msgViewer.innerHTML = _msgs[0].text;
- msgViewer.target = '_blank';
- msgViewer.href = _msgs[0].href;
- }
- }
-
- if(typeof(msgViewer) != 'undefined' && msgViewer){
- playMsg();
- }
-
- try{
- switchfarm('nc');
- } catch (error){}
- })();
- </script>
- </body>
- </html>
复制代码 |