正 文

点击广告出现下载地址的代码


www.7dspace.com  更新日期:2005-8-16 4:24:19  七度空间


  常看到一些网站上有“点击广告出现下载地址”等,,代码如下仅供参考:

<table onclick=window.open(下载地址,_blank,width=0,height=0)>
<tr>
<td>
<广告代码>
</td>
</tr>
</table>

还有一种方法,代码是这样的:

<script language="javascript" type="text/javascript">
<!--
function will() {
     if (event.srcElement.tagName=='A'||event.srcElement.tagName=='AD') {
           window.focus();
           oUrl.style.display = "";
           yAd.style.display = "none";
     }
}
//-->
        </script>
      <base target="_blank" onclick="javascript:will()">
      <div id="yAd">
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
          <tr>
            <td align="center" width="100%"广告广告广告广告广告广告</td>
          </tr>
        </table>
      </div>
      <div id="oUrl" style="display:none;">
<a href='#' target='_blank'>下载地址1</a>  
      </div>

  注意:提醒大家要是想做个长久的站,最好不要用此类代码!

上一篇:精彩:网页设计初学者指南
下一篇:如何用关键字优化网站?
作者:  来源: ( 责任编辑:7dspace )
收藏此页】【打印】【关闭
站 内 搜 索
 

热 点 导 读
特 别 推 荐