下载时弹出广告位 for Discuz!7.0 02.11更新
全新安装不再提供直接覆盖安装办法,修改较容易
1,打开风格目录【如果您不想修改默认目录,请复制修改对应风格。缺少文件从默认目录拷贝文件过去再修改】
1.1 修改header.htm
在<script type="text/javascript" src="include/js/common.js?{VERHASH}"></script>后面添加<!--{if CURSCRIPT == 'viewthread'}-->
<script type="text/javascript" src="include/js/downopen.js"></script>
<!--{/if}-->1.2 修改discuzcode.htm
查找 <p class="imgtitle">
<a href="attachment.php?aid=$attach&k=$k&t=$timestamp&fid=$fid&nothumb=yes&sid=$sidauth" onmouseover="showMenu(this.id,false,2)" id="aid$attach" class="bold" target="_blank">$attach</a>
<em>($attach)</em>
</p>替换为<p class="imgtitle">
<a href="attachment.php?aid=$attach&k=$k&t=$timestamp&fid=$fid&nothumb=yes&sid=$sidauth" onmouseover="showMenu(this.id,false,2)" id="aid$attach" class="bold" rel="downPop" >$attach</a>
<em>($attach)</em>
</p>码查找 <dl class="t_attachlist">
<dt>
$attach
</dt>
<dd>
<p class="attachname">
<a href="attachment.php?aid=$attach&k=$k&t=$timestamp&fid=$fid&sid=$sidauth"onmouseover="showMenu(this.id,false,2)" id="aid$attach" target="_blank" title="">$attach</a> ($attach)替换为<dl class="t_attachlist">
<dt>
$attach
</dt>
<dd>
<p class="attachname">
<a href="attachment.php?aid=$attach&k=$k&t=$timestamp&fid=$fid&sid=$sidauth"onmouseover="showMenu(this.id,false,2)" id="aid$attach" rel="downPop" title="">$attach</a> ($attach)查找$attach <span style="white-space: nowrap" id="attach_$attach" onmouseover="showMenu(this.id, false, 2)"><a href="attachment.php?aid=$attach&k=$k&t=$timestamp&sid=$sidauth" target="_blank"><strong>$attach</strong></a></span> ($attach)替换为$attach <span style="white-space: nowrap" id="attach_$attach" onmouseover="showMenu(this.id, false, 2)"><a href="attachment.php?aid=$attach&k=$k&t=$timestamp&sid=$sidauth" rel="downPop"><strong>$attach</strong></a></span> ($attach)1.3 修改css_common.htm
在文件末尾添加/*download openpop*/
#down_block {
BORDER-RIGHT: #a4cfff 10px solid; BORDER-TOP: #a4cfff 10px solid; Z-INDEX: 100000; BACKGROUND: #fdfdff; LEFT: 50%; MARGIN-LEFT: -190px; OVERFLOW: hidden; BORDER-LEFT: #a4cfff 10px solid; WIDTH: 380px; BORDER-BOTTOM: #a4cfff 10px solid; POSITION: absolute; TOP: 150px; HEIGHT: 280px
}
#down_block IMG.pop_ad {
DISPLAY: block; MARGIN: 10px auto
}
#down_block H2 {
FONT-WEIGHT: 600; FONT-SIZE: 14px; MARGIN: 10px; OVERFLOW: hidden; COLOR: #0066ff; WHITE-SPACE: nowrap
}
#down_block P {
MARGIN: 10px; TEXT-ALIGN: left
}
#down_block P IMG {
MARGIN-RIGHT: 20px
}
#down_block A.down_pop_close {
DISPLAY: block; RIGHT: 10px; BACKGROUND: url({IMGDIR}/close.gif) no-repeat 0 0; OVERFLOW: hidden; WIDTH: 12px; BOTTOM: 15px; TEXT-INDENT: -9999px; POSITION: absolute; HEIGHT: 12px
}
#down_block A.down_pop_close:hover {background-position: 0 -12px;}2,下载附件上传到服务器 感谢楼主这么麻烦发上好东西来 感谢楼主这么麻烦发上好东西
页:
[1]