⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vad.js

📁 最强的爬虫工程
💻 JS
字号:
//2008-1-23
var _IE = document.all;
var oswf;
var itv;
try{
	if(v_agent && v_agent!=''){
		//document.write('<div id="v_trace_div" style="position:absolute;">&nbsp;</div>');
		document.write('<div id="v_count_div" style="position:absolute;">&nbsp;</div>');
		document.write('<script language="javascript" type="text/javascript" src="'+v_script_url+'"></scr'+'ipt>');
		itv = setInterval(init,100);
	}
}catch(e){}
function init(){
	try{
		if(videoWin){
			try{
				if(v_agent=='iCast'){
					oswf = getWinSwf("iCastPlayer") || getWinSwf("flash");
				}else if(v_agent=='SmartCreative'){
					oswf = getWinSwf("button690") || getWinSwf("hotson");
				}else if(v_agent=='yeazone'){
					oswf = videoWin.document.getElementById("YZAD");
				}
				if(oswf){
					clearInterval(itv);
					itv = setInterval(detect,100);
				}
			}catch(e){
				try{document.domain='sina.com.cn';}catch(e){}
			}
		}
	}catch(e){}
}
function detect(){
	try{
		var per = Math.round((oswf.CurrentFrame()+1)/oswf.TotalFrames*100);
	}catch(e){
		var per=0;
	}
	for(var i=0; i<v_counter_url.length; i++){
		if(per>=v_counter_url[i].per && !v_counter_url[i].counted){ //播放到x% //访问计数服务器
			v_counter_url[i].counted = true;
			document.getElementById('v_count_div').innerHTML = v_counter_url[i].url;
			/*
			if(v_counter_url[i].per==1){
				if(v_agent=='iCast'){
					document.getElementById('v_trace_div').innerHTML = '<img src="http://sina.allyes.com/main/adfclick?db=sina&bid=70656,128179,128331&cid=0,0,0&sid=120187&advid=358&camid=14021&show=ignore&url=&'+Math.random()+'" width="1" height="1" />';
				}else if(v_agent=='SmartCreative'){
					document.getElementById('v_trace_div').innerHTML = '<img src="http://sina.allyes.com/main/adfclick?db=sina&bid=70656,128193,128345&cid=0,0,0&sid=120199&advid=358&camid=14021&show=ignore&url=&'+Math.random()+'" width="1" height="1" />';
				}
			}
			*/
		}
	}
	if(per>=100) clearInterval(itv);
}
function getWinSwf(id){
	if(_IE){
		return(videoWin.document.getElementById(id));
	}else{
		return(videoWin.document.embeds[id]);
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -