Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[已解决] 秀下我的农场(小小宇的版本),已经解决了无法除草的问题,欢迎大家下载测试

[复制链接]
xin996611 发表于 2009-12-26 14:20:36 | 显示全部楼层
支持 支持 支持
回复

使用道具 举报

 楼主| hdba331 发表于 2009-12-26 14:21:16 | 显示全部楼层
本帖最后由 hdba331 于 2009-12-26 14:36 编辑

现在放出一个修改方法,鉴于有人提出缺少CSS文件

在模板的header.htm文件的任何一处<!--{/if}-->后面加入以下代码

不用覆盖header.htm文件

<!--{if $happyfarm}-->
<style type="text/css">
#divokok {
        display: none;
        position: absolute;
        z-index: 998;
        height: 2000px;
        width: 100%;
        background: #000000;
        filter:Alpha(opacity=60);
}
#div2 {
        display: none;
        position: absolute;
        height: 100%;
        width: 100%;
        padding-top: 10%;
        z-index: 999;
}

</style>

<script type="text/javascript">
var Mouse_Obj="none",_x,_y;
document.onmousemove=function()
{
        if(Mouse_Obj!=="none")
        {
        document.getElementById(Mouse_Obj).style.left=_x+event.x;
        document.getElementById(Mouse_Obj).style.top=_y+event.y;
        event.returnValue=false;
        }
}
document.onmouseup=function()
{
        Mouse_Obj="none";
}
function m(o)
{
        Mouse_Obj=o;
        _x=parseInt(document.getElementById(Mouse_Obj).style.left)-event.x;
        _y=parseInt(document.getElementById(Mouse_Obj).style.top)-event.y;
}
</script>
<div id="divokok"></div>
<div id="div2" onmousedown="m(this.id)" style="left: 0px;top: 0px;">
<table width="50%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#8BACD0"  style="background: #8bacd0; position:static;filter:progid:DXImageTransform.Microsoft.DropShadow(color=#666666,offX=4,offY=4,positives=true)">
  <tr style="cursor: move;">
<td width="68%"><img src="image/pupop_bg_go.gif" width="100" height="28" border="0"></td>
    <td width="6%" align="right"><a href="happyfarm/?act=nc" target="myfarm" ><img src="image/pupop_bg_to.gif" width="44" height="28" border="0" align="right" onClick="parent.window.frames['qpgo'].location.href='about:blank';document.getElementById('divokok').style.display='none';document.getElementById('div2').style.display='none';"></a></td>
</tr>
  <tr>
    <td height="150" colspan="4"
align="center" valign="middle" bgcolor="#FFFFFF">
<iframe id="qpgo" name="qpgo" width="988" src="about:blank" scrolling="no" frameborder="0" onload="this.height=500"></iframe><script type="text/javascript">

function reinitIframe()

{

var iframe = document.getElementById("qpgo");

try{var bHeight = iframe.contentWindow.document.body.scrollHeight;

var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;

var height = Math.max(bHeight, dHeight);

iframe.height = height;

}

catch (ex)

{

}

}

window.setInterval("reinitIframe()", 200);</script></td>
  </tr>
</table>
</div>
<!--{/if}-->

因为本人改动比较大,对各位带来的不便我深感歉意!
回复

使用道具 举报

chenguangbin 发表于 2009-12-26 14:28:39 | 显示全部楼层
这么有奉献精神,支持。下一个试试看。谢谢。
回复

使用道具 举报

老陕北 发表于 2009-12-26 14:45:11 | 显示全部楼层
顶,湖南老乡
回复

使用道具 举报

佘詩曼 发表于 2009-12-26 14:54:42 | 显示全部楼层
我喜欢你~
凡军 发表于 2009-12-26 10:53


喜歡我幹嘛呢??  逗。{:2_123:}
回复

使用道具 举报

 楼主| hdba331 发表于 2009-12-26 15:16:29 | 显示全部楼层
呵呵,老佘,这个农场几个版本都出一样的意外
回复

使用道具 举报

65657338o 发表于 2009-12-26 15:18:12 | 显示全部楼层
只要是好东西就要顶啊.多谢楼主,先下了.
回复

使用道具 举报

wwwgggppp 发表于 2009-12-26 15:25:46 | 显示全部楼层
下好了,谢谢,定你一下啊
回复

使用道具 举报

 楼主| hdba331 发表于 2009-12-26 15:28:30 | 显示全部楼层
谢谢支持,太感谢大家了
回复

使用道具 举报

fxbzn 发表于 2009-12-26 16:22:17 | 显示全部楼层
顶了 支持你
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-9-17 14:41 , Processed in 0.129370 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表