江西广告网
标题:
下载时弹出广告位 for Discuz!7.0 02.11更新
[打印本页]
作者:
anchen
时间:
2009-7-1 17:35
标题:
下载时弹出广告位 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[aid]&k=$k&t=$timestamp&fid=$fid&nothumb=yes&sid=$sidauth" onmouseover="showMenu(this.id,false,2)" id="aid$attach[aid]" class="bold" target="_blank">$attach[filename]</a>
<em>($attach[attachsize])</em>
</p>
复制代码
替换为
<p class="imgtitle">
<a href="attachment.php?aid=$attach[aid]&k=$k&t=$timestamp&fid=$fid&nothumb=yes&sid=$sidauth" onmouseover="showMenu(this.id,false,2)" id="aid$attach[aid]" class="bold" rel="downPop" >$attach[filename]</a>
<em>($attach[attachsize])</em>
</p>
复制代码
码查找
<dl class="t_attachlist">
<dt>
$attach[attachicon]
</dt>
<dd>
<p class="attachname">
<a href="attachment.php?aid=$attach[aid]&k=$k&t=$timestamp&fid=$fid&sid=$sidauth" onmouseover="showMenu(this.id,false,2)" id="aid$attach[aid]" target="_blank" title="">$attach[filename]</a> ($attach[attachsize])
复制代码
替换为
<dl class="t_attachlist">
<dt>
$attach[attachicon]
</dt>
<dd>
<p class="attachname">
<a href="attachment.php?aid=$attach[aid]&k=$k&t=$timestamp&fid=$fid&sid=$sidauth" onmouseover="showMenu(this.id,false,2)" id="aid$attach[aid]" rel="downPop" title="">$attach[filename]</a> ($attach[attachsize])
复制代码
查找
$attach[attachicon] <span style="white-space: nowrap" id="attach_$attach[aid]" onmouseover="showMenu(this.id, false, 2)"><a href="attachment.php?aid=$attach[aid]&k=$k&t=$timestamp&sid=$sidauth" target="_blank"><strong>$attach[filename]</strong></a></span> ($attach[attachsize])
复制代码
替换为
$attach[attachicon] <span style="white-space: nowrap" id="attach_$attach[aid]" onmouseover="showMenu(this.id, false, 2)"><a href="attachment.php?aid=$attach[aid]&k=$k&t=$timestamp&sid=$sidauth" rel="downPop"><strong>$attach[filename]</strong></a></span> ($attach[attachsize])
复制代码
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,下载附件上传到服务器
下载弹出插件.rar
2009-7-1 17:35 上传
点击文件名下载附件
19.75 KB, 下载次数: 4
售价:
1 币锐币
[
记录
]
作者:
gxlan
时间:
2009-7-31 07:25
感谢楼主这么麻烦发上好东西来
作者:
gxlan
时间:
2009-7-31 07:27
感谢楼主这么麻烦发上好东西
欢迎光临 江西广告网 (http://bbs.jxadw.com/)
Powered by Discuz! X3.2