|
| |
精品推荐 |
 |
|
| |
|
|
|
|
去除网页广告和乱码
|
日期:2008年6月7日 作者:清风网络学院 查看:[大字体
中字体 小字体]
|
最新杀窗的办法 (51.net) 对象:适合51.net免费空间所有CGI或PHP程序! 要求:在其它空间有一个无广告的页面,如:myrice.com、3322.net的非index.html home.sohu.com空间 方法: 第一步: 在51.net免费空间的cgi或php目录中新建 main.htm文件。 文件内容如下: <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>我的LB5000 II论坛</title> </head> <body topmargin="0" leftmargin="0"> <iframe src="about:blank" name="vh4t8jkn34" width="100%" height="0" border="0" frameborder="0"></iframe> <iframe src="leoboard.cgi" width="100%" height="100%" border="0" frameborder="0"></iframe> #51Net --> </body> </html>
第二步: 在无广告的空间新建一个引用此论坛或其它程序的页面 如 bbs.htm 内容如下: <script language="javascript"> var title="我的新论坛" //论坛标题 var url="http://wayou.51.net/cgi-bin/" //论坛所在目录
document.writeln("<html><head><meta HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=gb2312\">"); document.writeln("<title>"+title+"</title></head><frameset rows=\"1*,0\" frameborder=\"NO\" border=\"0\" framespacing=\"0\" cols=\"*\">"); document.writeln("<frame name=\"main\" scrolling=\"no\" noresize src=\""+url+"main.htm\">"); document.writeln("<noframes><body><p>此网页使用了框架,但您的浏览器不支持框架。</p></body>"); document.writeln("</noframes></frameset></html>"); </Script>
第三步:完了。
优点: 无广告显示,但实际上打开了51.net的广告,只是在隐藏页面中。所以广告计数算进去了,管理员不会认为非法屏蔽了广告。
日本isweb.infoseek.co.jp超高速支持CGI+FTP空间去广告 方法一:
第一行: <div style="margin-top:-120"> 最后一行: </div> 倒数第二行: <style> 以上这些是去除页面的广告 去除弹出窗口: 在<body>的前加上 <script language="javascript"> <body>后加上</script>
方法二: isweb.infoseek.co.jp 此空间有三个广告,我用以下代码去了 去弹出广告:在<body>前加<title>,在<body>后加</title> 去底下的广告:在最后加<style>
http://isweb.infoseek.co.jp 免费空间的cgi如何设置
上一篇:Global.asa 正确使用
下一篇:代理服务器
|
| 相关文章: |
|
|
|
| 相关软件: |
|
|
|
|