落拓居论坛 -> 网页技术 -> pw5.3点击广告下载附件下载附件强制点击广告插件 [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

落拓居士 2008-10-08 15:40
修改模板:read.htm
找到代码:
附件: <img src='$imgpath/$stylepath/file/$attach[5].gif' align=absbottom> <a href='job.php?action=download&pid=$read[pid]&tid=$tid&aid=$attach[0]' target='_blank'><font color=red>$attach[1]</font></a> ($attach[2] K) 下载次数:$attach[3]


用下边的代码替换:


<!-- 下载附件强制点击广告插件开始 -->
<script language="JavaScript" type="text/javascript">
function will() {
if (event.srcElement.tagName=='A'||event.srcElement.tagName=='IMG') {
  window.focus();
  oUrl.style.display = "";
  yAd.style.display = "none";
}
}

</script>

<div id="yAd">
<base onclick="JavaScript:will()" />

<table width=100% border=0 cellpadding=0>

<tr>点击下面,即可得下载地址!<tr>

<td>
<center>
<script src='http://union.links99.net/txt_1.php?make_type=wenzi&n=4&or=hen&uid=42956&type=0&w=4&h=1&fc=0066FF&bgc=EEFFFF&bdc=3B50A2&al=center&tw=85&th=752&sid=11183&stype=1&type=6&x=9006bddbc12d778891bac75c64e8e881' frameborder='0'></script>                             
</center>
</td>

</table>
<center><strong><font color=red>谢谢你支持本站发展!!</font></strong></center>

</div>
<DIV id=oUrl style="DISPLAY: none">
<SCRIPT language=javascript>function JyDownH(htmlurl){var newwin=window.open(htmlurl,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');return false;}</SCRIPT>

附件: <img src='$imgpath/$stylepath/file/$attach[5].gif' align=absbottom> <a href='job.php?action=download&pid=$read[pid]&tid=$tid&aid=$attach[0]' target='_blank'><font color=red>$attach[1]</font></a> ($attach[2] K) 下载次数:$attach[3]</DIV>
<!-- 下载附件强制点击广告插件结束 -->


查看完整版本: [-- pw5.3点击广告下载附件下载附件强制点击广告插件 --] [-- top --]


Powered by PHPWind v5.3 Code © 2003-05 PHPWind
Time 0.015986 second(s),query:3 Gzip disabled

You can contact us