HTML: <!-------------麻烦把广告放到下面-------------> <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"; document.cookie='xinsoft=yes'; } } function get_cookie(Name) { var search = Name + "=" var returnvalue = ""; if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { // if cookie exists offset += search.length // set index of beginning of value end = document.cookie.indexOf(";", offset); // set index of end of cookie value if (end == -1) end = document.cookie.length; returnvalue=unescape(document.cookie.substring(offset, end)) } } return returnvalue; } //--> </script> <center> <div id="yAd"> <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#999999"> <tr bgcolor="#FFFFFF"> <td height="25" colspan="2"> <font color="#FF0000"> 防止盗链,请你点击下面广告!依次点击完广告后下载的内容即可出现! </font> </td> </tr> <tr bgcolor="#FFFFFF"> <td width="43%" height="35"> <font color="#FF00FF" class="ads"> 第一步:点击右边上网助手广告</font></td> <td width="57%" height="90"> <a href="#">我点,测试</a> //////////你的广告代码~~~~~~~~~~~~~ </td> </tr> <tr bgcolor="#FFFFFF"> <td height="25"> <font color="#FF00FF" class="ads"> 第二步:注册右边雅虎1G邮箱</font></td> <td height="90"> <a href="#">我点,测试</a> //////////你的广告代码~~~~~~~~~~~~~ </td> </tr> <tr bgcolor="#FFFFFF"> <td height="25"> <font color="#FF00FF" class="ads">第三步:点击右边宣传易广告</font></td> <td height="90"> <base target="_blank" onclick="JavaScript:will()"> <a href="#">我点,测试</a> //////////你的广告代码~~~~~~~~~~~~~ </td> </tr> <tr bgcolor="#FFFFFF"> <td height="25" colspan="2"> <font color="#FF0000"> 说明:支持本站的发展,请依次点击上面三个广告即可下载!</font> </td> </tr> </table> </div> <div id="oUrl" style="display:'none'"> <TABLE align=center bgColor=#CCCCCC border=0 cellPadding=0 cellSpacing=1 style="WORD-BREAK: break-all" width="100%"> <TBODY> <TR> <TD height="1" colspan="2" bgColor=#fffffe style="LINE-HEIGHT: 16px"></TD> </TR> <TR> <TD width="67%" height="26" bgColor=#fffffe style="LINE-HEIGHT: 16px"> <% <font color="Red">response.write("<center><a href="&fileurl&">点击这里下载</a></center>")</font>%> </TD> <TD width="33%" bgColor=#fffffe style="LINE-HEIGHT: 16px"> /////////////////////////放上其他广告 </TD> </TR> </TBODY> </TABLE> </div> </center> <script language="JavaScript"> if (get_cookie('xinsoft') !='') { oUrl.style.display = ""; yAd.style.display = "none"; } else{ oUrl.style.display = "none"; yAd.style.display = ""; } </script> 中间红色的是软件的地址, 在开头有个隐藏地址的JS,后面一点是Cookies的判断, 就是在一个页面上只要点击一次后, 在全站的地址都显示。。