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

📄 userhead.js.php

📁 最强的爬虫工程
💻 PHP
📖 第 1 页 / 共 5 页
字号:
	iframeResize:	function(){

		var reFraem   = this.$$(this.sFrame);

		if (reFraem != null){
			var sWidth	= reFraem.document.body.offsetHeight.toString();
			var sHeight	= reFraem.document.body.offsetWidth.toString();
			if(sWidth != '0' && sHeight != '0'){
				this.$('win').style.height			= sWidth + 'px';
				this.$('win').style.width			= sHeight + 'px';
				this.$('iframeShow').style.height	= sWidth + 'px';
				this.$('iframeShow').style.width	= sHeight + 'px';
			}
		}
	},
	copy:			function(_sID, _sTxt){
		var oCtrl	= parent.vDialog.$(_sID).select();
		oCtrl.createTextRange().execCommand("Copy");
		alert(_sTxt);
		parent.vDialog.reset();
	}
};//
//#############################//
var base	= {
	tmp:		{},
	swfTmp:		null,
	$:			function(_sID){
		return document.getElementById(_sID);
	},
	$$:			function(_sID){
		return document.frames ? document.frames[_sID] : this.$(_sID).contentWindow;
	},
	$F:			function(_sID){
		return navigator.appName.indexOf("Microsoft") != -1 ? window[_sID] : document[_sID];
	},
	hide:		function(_sID){
		if(this.$(_sID).style.display == 'none')
			this.$(_sID).style.display	= '';
		else
			this.$(_sID).style.display	= 'none';
	},
	select:		function(_oThis, _sTag, _oArea, _vChange){
		var sFlg	= true;
		var aObject	= document.getElementsByTagName(_sTag);
		for(var i = 0; i < aObject.length; i++){
			for(attribute in _oArea){
				if(aObject[i].getAttribute(attribute) == _oArea[attribute])
					sFlg	= false;
			}
			if(sFlg	== false)
				for(k in _vChange)
					aObject[i].checked	= _oThis.checked;

			sFlg	= true;
		}
	},
	getValue:	function(_oThis, _sTag, _oArea){
		var aValue	= [];
		var sFlg	= true;
		var aObject	= documen
			t.getElementsByTagName(_sTag);
		for(var i = 0; i < aObject.length; i++){
			for(attribute in _oArea){
				if(aObject[i].getAttribute(attribute).toString() == _oArea[attribute].toString())
					sFlg	= false;
			}

			if(sFlg	== false)
				aValue[aValue.length]	= aObject[i].value;
					
			sFlg	= true;
		}
		return aValue.toString();
	},
	pointer:			function(_target) {
		var windowWidth, windowHeight;
		if(_target)
			target = _target.document;
		else
			target = document;

		if (self.innerHeight){
			if(_target)
				target = _target.self;
			else
				target = self;
			windowWidth		= target.innerWidth;
			windowHeight	= target.innerHeight;
		} else if (target.documentElement && target.documentElement.clientHeight) {
			windowWidth		= target.documentElement.clientWidth;
			windowHeight	= target.documentElement.clientHeight;
		} else if (target.body) {
			windowWidth		= target.body.clientWidth;
			windowHeight	= target.body.clientHeight;
		}
		return {width:parseInt(windowWidth),height:parseInt(windowHeight)};
	},
	swfSize:	function(_fID, _sMode, _iWidth, _iHeight){

		var fPlayer	= this.$F(_fID);

		var XY		= this.pointer();

		var parentObject	= fPlayer.parentNode;
		while(parentObject.tagName.toUpperCase() != "DIV"){
			parentObject	= parentObject.parentNode;
		}

		if(!fPlayer.getAttribute('initWidth')){
			fPlayer.setAttribute('initWidth',	fPlayer.getAttribute('width'));
			fPlayer.setAttribute('initHeight',	fPlayer.getAttribute('height'));
		}

		if(_sMode == 'full'){
			parentObject.style.position		= 'absolute';
			parentObject.style.overflow		= 'hidden';
			parentObject.style.zIndex		= '999999999';
			parentObject.style.top			= 0;
			parentObject.style.left			= 0;
			parentObject.style.width		= XY.width.toString() + 'px';
			parentObject.style.height		= XY.height.toString() + 'px';
			this.$F(_fID)['width']			= '100%';
			this.$F(_fID)['height']			= '100%';
		}else if(_sMode == 'zoom'){
			parentObject.style.position		= 'absolute';
			parentObject.style.overflow		= 'hidden';
			parentObject.style.width		= _iWidth;
			parentObject.style.height		= _iHeight;
			fPlayer['width']				= parentObject.style.width;
			fPlayer['height']				= parentObject.style.height;
		}else if(_sMode == 'init'){

			parentObject.style.position		= '';
			parentObject.style.position		= 'static';
			parentObject.style.overflow		= '';

			parentObject.style.width		= this.$F(_fID).getAttribute('initWidth') + 'px';
			parentObject.style.height		= this.$F(_fID).getAttribute('initHeight') + 'px';
			this.$F(_fID)['width']			= this.$F(_fID).getAttribute('initWidth');
			this.$F(_fID)['height']			= this.$F(_fID).getAttribute('initHeight');
		}
	}
}

function browserDetect(){
	var sUA = navigator.userAgent.toLowerCase();
	var sIE = sUA.indexOf("msie");
	var sOpera = sUA.indexOf("opera");
	var sMoz = sUA.indexOf("gecko");
	if (sOpera != -1) return "opera";
	if (sIE != -1){
		nIeVer = parseFloat(sUA.substr(sIE + 5));
		if (nIeVer >= 6) return "ie6";
		else if (nIeVer >= 5.5) return "ie55";
		else if (nIeVer >= 5 ) return "ie5";
	}
	if (sMoz != -1)	return "moz";
	return "other";
}
BROWSER	= browserDetect();
var MOZ	= true;
function fullscreen(_iMode){
	
	if(_iMode == 1){
		base.swfSize('mymovie', 'full');
	}else{
		base.swfSize('mymovie', 'init');
	}

}
//
//#############################//

var Q="http://counter.sina.com.cn/querylist?format=js&entry=g_clist&id=0&key=";document.writeln('<scr'+'ipt id="COUNTER_FORIE" type="text/javascript"></scr'+'ipt>');var count_text="";var vids=[];var keys="";var obj_show;var commCountList={getCommSpans:function(){var objSpans=obj_show.getElementsByTagName('SPAN');var commSpans=[];var k=0;for(j=0;j<objSpans.length;j++){if("cmnt_count"==objSpans[j].getAttribute('name')){commSpans[k]=objSpans[j];k++;}}return commSpans;},filterData:function(arrData){var commSpans=this.getCommSpans();for(var i=0;i<arrData.length;i++){vid=arrData[i][0].split(':');var strCmnt_id="vblog:"+vid[1]+":0";for(j=0;j<commSpans.length;j++){if(strCmnt_id==commSpans[j].getAttribute('cmnt_id')){commSpans[j].style.display="";commSpans[j].innerHTML=arrData[i][1];}}}},clearDefault:function(){var commSpans=this.getCommSpans();for(j=0;j<commSpans.length;j++){var commSpansInnerHtml=commSpans[j].innerHTML.toLowerCase();if(commSpansInnerHtml.indexOf('_count_')>0){commSpans[j].style.display="";commSpans[j].innerHTML="0";}}},showCommCount:function(obj){count_text=obj.innerHTML;obj_show=obj;key_pattern=/vblog:([0-9]+):0/g;vids=count_text.match(key_pattern);if(vids!='undefined'&&vids!=null&&vids!=""&&vids.length>0){keys=vids.join(',');if(navigator.userAgent.toLowerCase().indexOf('msie')>=0){document.getElementById("COUNTER_FORIE").src=Q+keys;}else{var js=document.createElement("script");js.setAttribute("type","text/javascript");js.setAttribute("src",Q+keys);document.body.insertBefore(js,null);}}}};function counter_callback(){if(!document.getElementsByTagName){return false};commCountList.filterData(g_clist);commCountList.clearDefault();}function show_comment_count(data,obj){commCountList.showCommCount(obj);}
//
//#############################//

var loadData = {
	base:'http://you.video.sina.com.cn/',
	items:new Array(),
	tpls:new Array,
	pos:0,

⌨️ 快捷键说明

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