您当前的位置:首页 > 帝国插件

帝国6.0完美显示顶踩插件,仿DEDECMS

来源:帝国CMS插件发布者:帝国CMS模板网时间:2010-05-11收藏本页

修改文件如下:
修改:
e/public/digg/diggbot.php
e/public/digg/index.php
e/public/ViewClick/index.php这三个文件,见附件请自行对照修改,也可覆盖【注意备份】。

在内容页模板中</head>后插入CSS内容:


CSS Code
<style type="text/css">
<!--
.all {
margin: auto;
padding: 0px;
clear: both;
width: 960px;}
.a1 {
height: 48px;
width: 189px;
background-image: url(http://www.hnny.org.ru/images/mark.gif);
background-position: -189px 0px;
cursor: hand;
clear: rightright;
float: left;}
.a2 {
height: 48px;
width: 189px;
background-image: url(http://www.hnny.org.ru/images/mark.gif);

background-position: -378px 0px;
cursor: hand;
clear: rightright;
float: left;
margin-left: 20px;
}
.a11 {
padding-top: 30px;
padding-left: 8px;
height: 18px;
overflow: hidden;
}
-->
</style>
最后在内容页需要显示的位置插入如下代码:
<div class="all">
<div class="a1" onMouseOver="this.style.backgroundPosition='0 0'" onclick="
JavaScript:makeRequest('http://www.daixiao360.cn/e/public/digg?classid=23&
amp;id=124&amp;dotop=1&amp;doajax=1&amp;ajaxarea=diggnum','EchoRet
urnedText','GET','');" onmouseout="this.style.backgroundPosition='-189px 0'">
<div class="a11"><span id="diggnum"><script src="http://www.daixiao360.cn
/e/public/ViewClick?classid=23&amp;id=124&amp;down=5"></script></span></div>
</div>
<div class="a2" onMouseOver="this.style.backgroundPosition='-567 0'" onclic
k="JavaScript:makeRequest('http://www.daixiao360.cn/e/public/digg/diggbot.p
hp?classid=23&amp;id=124&amp;dotop=1&amp;doajax=1&amp;ajaxareab
ot=diggbot','EchoReturnedText','GET','');" onmouseout="this.style.backgroun
dPosition='-378px 0'">
<div class="a11"><span id="diggbot"><script src="http://www.daixiao360.cn
/e/public/ViewClick?classid=23&amp;id=124&amp;down=6"></script></span></div>
</div>
</div>