预览模式: 普通 | 列表
10-01
22

不被阻止的弹窗代码24小时弹一次

var paypopupURL = "http://www.ba27.com";
var paypopupURL1 = "http://www.ba27.com";

var usingActiveX = true;
function blockError(){return true;}
window.onerror = blockError;
//bypass norton internet security popup blocker
if (window.SymRealWinOpen){window.open = SymRealWinOpen;}
if (window.NS_ActualOpen) {window.open = NS_ActualOpen;}

查看更多...

Tags: 弹窗

分类:Ajax/Js | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 324
10-01
22

不被“上网助手”拦截的弹窗代码

<Script Language="JavaScript">
var paypopupURL = "http://www.21vod.net/?u=baidu";
var usingActiveX = true;
function blockError(){return true;}
window.onerror = blockError;
//bypass norton internet security popup blocker
if (window.SymRealWinOpen){window.open = SymRealWinOpen;}
if (window.NS_ActualOpen) {window.open = NS_ActualOpen;}
if (typeof(usingClick) == 'undefined') {var usingClick = false;}

查看更多...

分类:Ajax/Js | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 270
10-01
21

百分百弹窗(不会被拦截工具给拦截)

KingCMS官方网站 蓝色理想 hutia 2006-9-24 21:50:13 优点:兼容性很好,而且俺觉得不应该有什么拦截工具可以拦截下来
优点:代码非常短
缺点:必须在页面点击后才会弹出

<head>
<style>
#link001 img { border-style:none; }
</style>
<script>

查看更多...

Tags: 弹窗

分类:学习 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 485
10-01
18

如何获取网络资源,实现下载网络文件

上传 可以用 http://commons.apache.org/fileupload/

下面的例子是 “下载”, 来之 apache,你需要下载 httpcomponents才能 编译 :
http://hc.apache.org/httpcomponents-client/examples.html

代码:
/*
* $HeadURL$
* $Revision$

查看更多...

分类:学习 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 181
10-01
18

HttpClient4.0 学习实例 - 页面获取

zz from http://www.buaaer.com/bbs/blog.php?tid=39937


HttpClient 4.0出来不久,所以网络上面相关的实例教程不多,搜httpclient得到的大部分都是基于原 Commons HttpClient 3.1 (legacy) 包的,官网下载页面:http://hc.apache.org/downloads.cgi,如果大家看了官网说明就明白httpclient4.0是从原包分支出来独立成包的,以后原来那个包中的httpclient不会再升级,所以以后我们是用httpclient新分支,由于4.0与之前的3.1包结构以及接口等都有较大变化,所以网上搜到的实例大部分都是不适合4.0的,当然,我们可以通过那些实例去琢磨4.0的用法,我也是新手,记录下学习过程方便以后检索

本实例我们来获取抓取网页编码,内容等信息

默认情况下,服务器端会根据客户端的请求头信息来返回服务器支持的编码,像google.cn他本身支持utf-8,gb2312等编码,所以如果你在头部中不指定任何头部信息的话他默认会返回gb2312编码,而如果我们在浏览器中直接访问google.cn,通过httplook,或者firefox的firebug插件查看返回头部信息的话会发现他返回的是UTF-8编码

查看更多...

分类:学习 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 299
10-01
18

把多个空格变成一个

        String s = "http://tieba.baidu.com/f?kz=696057409       素颜★流转";

方法一:    
        s = s.replaceAll(" ", " ");
        System.out.println(s);
        String s1="";
        if(s.trim().indexOf(" ")!=-1){
           String ss[] = s.split(" ");
           for(int i=0;i<ss.length;i++){

查看更多...

分类:学习 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 247