首页
社区
课程
招聘
[求助]有兄弟能帮忙解密一下这个JS文件吗?
发表于: 2009-3-22 17:05 8205

[求助]有兄弟能帮忙解密一下这个JS文件吗?

2009-3-22 17:05
8205
一个*.js文件.

我如何利用这个JS文件+JS程序(javascript Language)处理后的网址.

来还原未处理前的真实的地址呢?

[招生]科锐逆向工程师培训(2024年11月15日实地,远程教学同时开班, 第51期)

上传的附件:
收藏
免费 0
支持
分享
最新回复 (6)
雪    币: 318
活跃值: (36)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
并没有加密,只是压缩了一下
http://www.cha88.cn/safe/jsformat.php
这里可以格式化

window.onerror=function (){
	return true;
	
};
var ac=1,ae,Paint,ak=0,sMarkA="",sMark="",ssNo="",sKey="",jpgpath="",at=new Array(),aA=new Array(),ab="",ag="",aD=690,aE=956,did="",PdgPath="",am=true,ap=27,ShowMode=true;
var ah,al,af,ai,aj;
var BookDiv="Bookdiv";
var bg=true,className="class";
var isOpera=(navigator.appName.indexOf("Opera")>=0)?1:0;
var GlobalBody=document.documentElement;
if(isOpera)bg=false;
var cookies=new Cookie();
if(!document.all){
	bg=false;
	XMLDocument.prototype.selectNodes=function (bk){
		var be=new XPathEvaluator();
		var bh=be.createNSResolver(this.ownerDocument==null?this.documentElement:this.ownerDocument.documentElement);
		var result=be.evaluate(bk,this,bh,0,null);
		var bj=[];
		var bd;
		while(bd=result.iterateNext())bj.push(bd);
		return bj;
		
	};
	Element.prototype.__proto__.__defineGetter__("text",function (){
		return this.textContent;
		
	});
	
}var CallBack;
function _Ajax(){
	var xmlhttp;
	if(window.ActiveXObject){
		try{
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			
		}catch(e){
			try{
				xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
				
			}catch(e){
				
			}
		}
	}else if(window.XMLHttpRequest){
		xmlhttp=new XMLHttpRequest();
		
	}if(!xmlhttp){
		window.alert("不能创建XMLHttpRequest对象实例.");
		return "";
		
	}this.GetAjax=function (url,au,mode){
		try{
			xmlhttp.onreadystatechange=function (){
				if(xmlhttp.readyState==4){
					if(xmlhttp.status==200){
						if(typeof(CallBack)=="function"&&mode)CallBack(xmlhttp.responseText.trim());
						
					}
				}
			};
			xmlhttp.open("post",url,mode);
			xmlhttp.setRequestHeader("cache-control","no-cache");
			xmlhttp.setRequestHeader("content-length",au.length);
			xmlhttp.setRequestHeader("CONTENT-TYPE","application/x-www-form-urlencoded;charset=gbk");
			xmlhttp.send(au);
			if(!mode)return xmlhttp.responseText;
			
		}catch(ex){
			
		}
	}
};
var PaintCallBack;
function Y(aB,event){
	if(ac==2||ac==3){
		ae=aB;
		ah=aL(event);
		al=ad(event);
		this.create(event);
		aB.onmousemove=Paint.onmousemove;
		this.bb(this.getRealLeft(aB,event));
		this.bc(this.getRealTop(aB,event));
		this.aX(0);
		this.aW(0);
		document.getElementsByTagName("body").item(0).onkeydown=function (event){
			if((bg?window.event.keyCode:event.keyCode)==27){
				Paint.parentNode.removeChild(Paint);
				Paint=null;
				am=true;
				ac=1
			}
		}
	}
};
Y.prototype.create=function (event){
	Paint=document.createElement("DIV");
	Paint.aT=false;
	Paint.aZ=aL(event);
	Paint.ba=ad(event);
	Paint.className="PaintDiv";
	Paint.onmousemove=function (event){
		if(!Paint.aT){
			if((ac==2||ac==3)&&Paint!=null){
				af=aL(event);
				ai=ad(event);
				Paint.style.width=(af-ah>0?af-ah:0)+'px';
				Paint.style.height=(ai-al>0?ai-al:0)+'px';
				
			}
		}else {
			Paint.style.left=(aL(event)-Paint.aZ)+'px';
			Paint.style.top=(ad(event)-Paint.ba)+'px';
			Paint.Bound();
			
		}
	};
	Paint.onmouseup=function (event){
		if(!Paint.aT){
			if(ac==2)Paint.innerHTML=$("Paint").innerHTML;
			else if(ac==3){
				Paint.innerHTML=$("Paint").innerHTML;
				$("ocr_title").innerHTML="截取图片";
				$("paintaffirm").innerHTML="点击 <a>确定</a>截取";
				
			}$("paintclose").onmousedown=function (){
				if(Paint!=null&&am){
					Paint.parentNode.removeChild(Paint);
					Paint=null;
					am=true;
					ac=1
				}
			};
			$("paintaffirm").onmousedown=function (){
				Paint.ondblclick()
			};
			
		}Paint.aT=false;
		ac=0;
		aK("pointer");
		
	};
	Paint.ondblclick=function (event){
		aj=Paint.style.left.ToInt()+",";
		aj+=Paint.style.top.ToInt()+",";
		aj+=Paint.style.left.ToInt()+Paint.style.width.ToInt()+",";
		aj+=Paint.style.top.ToInt()+Paint.style.height.ToInt();
		if(typeof(PaintCallBack)=="function")PaintCallBack(aj);
		Paint.onmouseup=Paint.up;
		Paint.ondblclick=Paint.Bound=function (){
			
		};
		
	};
	Paint.up=function (event){
		Paint.aT=false;
		ac=0;
		aK("pointer");
		
	};
	Paint.down=function (event){
		Paint.style.cursor="pointer";
		Paint.aZ=aL(event)-this.style.left.ToInt();
		Paint.ba=ad(event)-this.style.top.ToInt();
		Paint.aT=true;
		
	};
	Paint.Bound=function (){
		var B=Paint.style.left.ToInt();
		var w=Paint.style.width.ToInt();
		var r=Paint.style.height.ToInt();
		var G=Paint.style.top.ToInt();
		if(B<=0)Paint.style.left='0px';
		if(B>=ae.style.width.ToInt()-w)Paint.style.left=(ae.style.width.ToInt()-w)+'px';
		if(G>=ae.style.height.ToInt()-r)Paint.style.top=(ae.style.height.ToInt()-r)+'px';
		if(G<=0)Paint.style.top='0px';
		
	};
	ae.parentNode.appendChild(Paint);
	
};
Y.prototype.bb=function ($x){
	Paint.style.left=$x+'px';
	
};
Y.prototype.bc=function ($y){
	Paint.style.top=$y+'px';
	
};
Y.prototype.aX=function ($w){
	Paint.style.width=$w+'px';
	
};
Y.prototype.aW=function ($h){
	Paint.style.height=$h+'px';
	
};
Y.prototype.getRealLeft=function (aB,event){
	if(bg)return aL(event);
	else return aL(event)-aB.parentNode.offsetLeft;
	
};
Y.prototype.getRealTop=function (aB,event){
	if(bg)return ad(event);
	else return ad(event)+$("Readweb").scrollTop-ap;
	
};
function TJimg_Browser(J,P){
	var Jimg,f=P;
	var k=false;
	var m=1500;
	var Marker=new aO();
	$(BookDiv).appendChild(aN());
	Jimg.JpgName=J;
	J=jpgpath+J+'.jpg';
	Jimg.aC=J;
	function aS(){
		Jimg=document.createElement("INPUT");
		Jimg.className="Jimg";
		Jimg.setAttribute("type","image");
		Jimg.setAttribute("src","images/none.gif");
		Jimg.setAttribute("hideFocus","true");
		Jimg.readOnly=true;
		Jimg.onmousedown=function (event){
			new Y(this,event);
			
		};
		Jimg.style.top="0px";
		Jimg.ax=0;
		Jimg.style.display="none";
		Jimg.style.width="0px";
		Jimg.style.height="0px";
		Jimg.onload=function (){
			_Main.HideMessage();
			if(Jimg.src.indexOf("images/none.gif")==-1){
				if(f==pageno){
					if(ak==2){
						$("memu4").disabled=false;
						$("memu4").onclick=function (){
							_Main.Zoom(ak>-2?--ak:-2)
						};
						
					}else if(ak==-2){
						$("memu3").disabled=false;
						$("memu3").onclick=function (){
							_Main.Zoom(ak<2?++ak:2)
						};
						
					}else {
						$("memu3").disabled=false;
						$("memu4").disabled=false;
						$("memu3").onclick=function (){
							_Main.Zoom(ak<2?++ak:2)
						};
						$("memu4").onclick=function (){
							_Main.Zoom(ak>-2?--ak:-2)
						};
						
					}
				}if(sKey!=""){
					if(this.bf==null){
						Marker.aw();
						Marker.Q(f);
						this.bf=Marker.av(this.style.width.ToInt(),aA[f]);
						this.aq();
						
					}
				}this.title="";
				if(pageno==spgno)JimgArr[pageno+1].Open();
				
			}
		};
		Jimg.onerror=function (){
			this.src="images/none.gif";
			_Main.ShowMessage("加载失败,双击重新加载...");
			if(this.ax==0)this.src=this.aC;
			this.ax++;
			
		};
		Jimg.onabort=function (){
			this.src=this.src;
			
		};
		Jimg.onreadystatechange=function (){
			if(f==pageno)_Main.ShowMessage("正在加载...");
			Jimg.readystate++;
			
		};
		Jimg.aq=function (){
			try{
				if(typeof(this.bf)!='undefined'){
					for(var i=0;i<this.bf.length;i++){
						this.bf[i].style.top=this.bf[i].aY+'px';
						this.bf[i].style.left=this.bf[i].aV+'px';
						this.parentNode.appendChild(this.bf[i]);
						
					}
				}
			}catch(error){
				
			};
			
		};
		Jimg.ondblclick=function (){
			this.src=this.aC+"&re=1";
			
		};
		return Jimg;
		
	};
	function aN(){
		var j=document.createElement("DIV");
		j.className="duxiuimg";
		j.appendChild(aS());
		if(!ShowMode&&pageno!=f)j.style.display="none";
		return j;
		
	};
	function aM(){
		var t=document.createElement("DIV");
		t.style.display="none";
		return t;
		
	};
	this.Jimg=Jimg;
	this.Marker=Marker;
	this.Equipped=function (D){
		try{
			if(ShowMode){
				if(D+m>=this.Jimg.parentNode.offsetTop)if(D<=this.Jimg.parentNode.offsetTop+m)this.Open();
				if(D-10>=this.Jimg.parentNode.offsetTop)if(D+10<=this.Jimg.parentNode.offsetTop+this.Jimg.height.ToInt())pageno=f;
				
			}if(Paint!=null)Paint.Bound();
			
		}catch(error){
			
		}
	};
	this.Open=function (){
		if(!k){
			this.az();
			Jimg.style.display="";
			this.aH();
			
		}
	};
	this.aH=function (){
		if(at[f]==null&&!JimgArr[f].an()){
			try{
				var xmlhttp;
				if(window.ActiveXObject){
					try{
						xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
						
					}catch(e){
						try{
							xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
							
						}catch(e){
							
						}
					}
				}else if(window.XMLHttpRequest){
					xmlhttp=new XMLHttpRequest();
					
				}if(!xmlhttp){
					window.alert("不能创建XMLHttpRequest对象实例.");
					return "";
					
				}JimgArr[f].ao(true);
				var au="";
				xmlhttp.onreadystatechange=function (){
					if(xmlhttp.readyState==4){
						if(xmlhttp.status==200){
							try{
								at[f]=xmlhttp.responseText.trim();
								var K=at[f].split("|");
								aA[f]=K[0];
								if(ab==""){
									ab=K[1];
									var v=K[1].split("*").length>1?K[1].split("*"):new Array("","");
									for(var i=spage;i<=epage;i++){
										JimgArr[i].Jimg.parentNode.style.width=JimgArr[i].Jimg.style.width=(v[0]==""?ak!=0?((aD*(100+ak*20))/100)+10:aD:v[0])+'px';
										JimgArr[i].Jimg.parentNode.style.height=JimgArr[i].Jimg.style.height=(v[1]==""?ak!=0?((aE*(100+ak*20))/100)+10:aE:v[1])+'px';
										
									}$("titleMsg").style.right=((GlobalBody.clientWidth-(v[0]==""?ak!=0?((aD*(100+ak*20))/100)+10:aD:v[0])-30)/2)+'px';
									
								}JimgArr[f].Jimg.src=JimgArr[f].Jimg.aC+"&zoom="+ak;
								
							}catch(ex){
								
							}
						}
					}
				};
				xmlhttp.open("post","Ajax.jsp?Url="+escape(J+"&zoom="+ak+"&pi=1"),true);
				xmlhttp.setRequestHeader("cache-control","no-cache");
				xmlhttp.setRequestHeader("content-length",au.length);
				xmlhttp.setRequestHeader("CONTENT-TYPE","application/x-www-form-urlencoded;charset=gbk");
				xmlhttp.send(au);
				
			}catch(ex){
				
			}
		}
	};
	this.printimg=function (){
		return "<img width='"+(navigator.appVersion.indexOf("MSIE 7")>-1?1030:649)+"' src='"+this.Jimg.aC+"' onabort='src=src;' />";
		
	};
	this.ao=function (e){
		k=e;
		
	};
	this.an=function (){
		return k;
		
	};
	this.az=function (){
		try{
			if(this.Jimg.bf!=null){
				for(var i=0;i<this.Jimg.bf.length;i++)this.Jimg.parentNode.removeChild(this.Jimg.bf[i]);this.Jimg.bf=null;
			}
		}catch(error){
			
		}
	};
	this.Show=function (){
		this.Open();
		if(ShowMode)$(BookDiv).parentNode.scrollTop=Jimg.parentNode.offsetTop-20;
		else {
			for(var i=spage;i<=epage;i++)JimgArr[i].Jimg.parentNode.style.display="none";this.Jimg.parentNode.style.display="";pageno=f;cookies.SetValue(ssNo,pageno);$(BookDiv).parentNode.scrollTop=0;
		}
	}
};function aO(){
	var g;
	var aG;
	function aQ(){
		var marker=document.createElement("DIV");
		marker.className="marker";
		return marker;
		
	};
	this.av=function (U,X){
		try{
			for(var i=0;i<g.length;i++){
				var O=X.split("*");
				if(O.length<2)break;
				var bp=U;
				var H=O[0]/(bp+7);
				var F=O[0]/(bp+2);
				var mark=aQ();
				var o=g[i].split(",");
				var aY,aV;
				if(markMode=="1"){
					mark.aV=parseInt((o[1]*2-o[3])/H);
					mark.aY=parseInt(o[0]/F);
					mark.style.width=((o[3]-o[1])/H)+'px';
					mark.style.height=((o[2]-o[0])/H)+'px';
					
				}else {
					mark.aV=parseInt(o[0]/F);
					mark.aY=parseInt(o[1]/H);
					mark.style.width=((o[2]-o[0])/H)+'px';
					mark.style.height=((o[3]-o[1])/H)+'px';
					
				}g[i]=mark;
				
			}
		}catch(error){
			
		}return g;
		
	};
	this.aw=function (){
		if(sMark==""&&sMarkA!="")sMark=new _Ajax().GetAjax("Ajax.jsp?Url=http%3A//qw.duxiu.com/bookview.jsp%3Fsw="+sKey+"%26ssid="+ssNo+"%26ps="+spage+"-"+epage+"%26a="+sMarkA+"%26name=Jpath%26from=Jpath"+(tp=="k"?"%26type=qk":""),"",false);
		
	};
	this.Q=function (l){
		var aU;
		g=new Array();
		if(bg){
			aG=new ActiveXObject("Microsoft.XMLDOM");
			aG.loadXML(sMark);
			
		}else {
			aU=new DOMParser();
			aG=aU.parseFromString(sMark,"text/xml");
			
		}var a=aG.selectNodes("//page");
		for(var i=0;i<a.length;i++){
			if(a[i].text==l){
				var V=aG.selectNodes("//mask")[i].text.split(")");
				for(var T=0;T<V.length;T++)if(V[T]!=""){
					g.push(V[T].replace("(","").replace("+",""));
					
				}
			}if(parseInt(a[i].text)>parseInt(l))break;
			
		}
	}
};
var ay=false;
var aF=0,aI=0;
function TJimg_Function(JimgArr,spage,epage){
	var d=$(BookDiv);
	d.appendChild(aP());
	aR();
	d.onmousedown=function (event){
		if(ac==1){
			ay=true;
			aF=d.parentNode.scrollTop;
			aI=ad(event);
			
		}
	};
	d.onmousemove=function (event){
		if(ay){
			var R=ad(event)-aI;
			d.parentNode.scrollTop=R>0?R-(R*2)+aF:Math.abs(R)+aF;
			
		}
	};
	d.onmouseup=d.onmouseout=function (){
		ay=false;
		
	};
	d.oncontextmenu=function (){
		
	};
	function aP(){
		var n=document.createElement("DIV");
		n.className="J_Msg";
		n.id="JMsg";
		n.style.display="none";
		return n;
		
	};
	function aR(){
		$("titleMsg").style.right=((GlobalBody.clientWidth-(ak!=0?(aD*(100+ak*20)/100)+10:aD)-30)/2)+'px';
		$("titleMsg").innerHTML="本书仅提供部分页试读<br />,<br />更多内容请到图书馆借阅";
		
	};
	this.ShowMessage=function (e){
		$("JMsg").innerHTML=e;
		$("JMsg").style.left=JimgArr[pageno].Jimg.parentNode.offsetLeft+20;
		$("JMsg").style.display="";
		
	};
	this.HideMessage=function (){
		$("JMsg").innerHTML="";
		$("JMsg").style.display="none";
		
	};
	this.Equipped=function (){
		for(var i=spage;i<=epage;i++)JimgArr[i].Equipped(d.parentNode.scrollTop);$("titleMsg").style.right=((GlobalBody.clientWidth-(JimgArr[pageno].Jimg.style.width.ToInt()==0?aD:JimgArr[pageno].Jimg.style.width.ToInt())-30)/2)+'px';$("SelectDiv").style.left=(GlobalBody.clientWidth-250)+'px';$("Readweb").style.height=((isOpera?document.body.clientHeight:GlobalBody.clientHeight)-ap)+'px';
	};this.Zoom=function (z){
		if(z>2||z<-2)return ;
		ak=z;
		at=new Array();
		ab="";
		for(var i=spage;i<=epage;i++){
			if(JimgArr[i].an()){
				JimgArr[i].ao(false);
				window.onload();
				
			}
		}$("memu3").disabled=true;
		$("memu4").disabled=true;
		$("memu3").onclick=function (){
			
		};
		$("memu4").onclick=function (){
			
		};
		JimgArr[pageno].Show();
		
	};
	this.GoTo=function (){
		if(this.C()){
			if(pageno==spage){
				$("memu1").disabled=true;
				$("memu2").disabled=false;
				
			}else if(pageno==epage){
				$("memu1").disabled=false;
				$("memu2").disabled=true;
				
			}else {
				$("memu1").disabled=false;
				$("memu2").disabled=false;
				
			}JimgArr[pageno].Show();
			JpgFocus();
			
		}
	};
	this.Z=function (f){
		if($("gopg"))$("gopg").value=f;
		
	};
	this.C=function (){
		var cp=-1;
		try{
			cp=parseInt($("gopg").value);
			
		}catch(e){
			
		}if(!isNaN(cp)){
			if(cp<spage||cp>epage)alert("抱歉,已超出"+spage+"~"+epage+"页的咨询范围");
			else {
				pageno=cp;
				return true;
				
			}
		}else alert("请检查输入页数");
		return false;
		
	};
	this.ar=function (){
		var ck="<div class='SelectList'>当前页 至 <select id='pagebound'><option value=1>当前页</option>";
		if(epage>=pageno+1)ck+="<option value=2>下翻一页</option>";
		if(epage>=pageno+2)ck+="<option value=3>下翻二页</option>";
		if(epage>=pageno+3)ck+="<option value=4>下翻三页</option>";
		if(epage>=pageno+4)ck+="<option value=5>下翻四页</option>";
		if(epage>=pageno+5)ck+="<option value=6>下翻五页</option>";
		ck+="</select></div>";
		$("SelectBody").innerHTML=ck;
		
	};
	this.ShowPrint=function (){
		$("SelectButton").innerHTML="<a onclick='_Main.Print()' style='color:#FFFF00'>点击打印</a>";
		$("SelectButton").style.paddingTop='5px';
		this.ar();
		$("SelectDiv").style.left=($("SelectDiv").parentNode.offsetLeft+$("SelectDiv").parentNode.clientWidth-250)+'px';
		$("SelectDiv").style.display="";
		
	};
	this.ShowFavWeb=function (){
		$("SelectButton").innerHTML="<a onclick='_Main.FavWeb()'><img src=\"images/subtolibfinal.gif\" border=\"0\"/></a>";
		$("SelectButton").style.paddingTop='0px';
		this.ar();
		$("SelectDiv").style.display="";
		
	};
	this.CloseSelect=function (){
		$("SelectDiv").style.display="none";
		
	};
	this.as=function (){
		ag="";
		var L=parseInt($("pagebound").value);
		for(var i=0;i<L&&pageno+i<=epage;i++)ag+=i+1==L?pageno+i:pageno+i+",";
	};this.Print=function (){
		var _JPrint=window.frames['JPrint'].document.getElementById("mdiv");
		this.as();
		if(ag=="")return false;
		var A=ag.split(",");
		var bl=0;
		_JPrint.innerHTML="";
		for(var i=0;i<A.length;i++){
			if(A[i]!="")_JPrint.innerHTML+=JimgArr[A[i]].printimg();
			
		}$("SelectBody").innerHTML="<div style='padding:10px 0 0 10px;'>正在下载图片打印,请稍等</div>";
		PrintStatus=function (){
			var I=true;
			for(var i=0;i<A.length;i++){
				I=(window.frames['JPrint'].document.getElementsByTagName("img")[i].complete==true)&&I;
				
			}if(I==true){
				window.clearInterval(aJ);
				window.frames['JPrint'].window.focus();
				window.frames['JPrint'].window.print();
				$("SelectDiv").style.display="none";
				
			}else if(bl<60000)bl+=1000;
			else {
				window.clearInterval(aJ);
				alert("下载图片失败,请稍后再试");
				$("SelectDiv").style.display="none";
				
			}
		};
		var aJ=window.setInterval("PrintStatus()",1000);
		
	};
	this.SaveAs=function (){
		document.location="/SaveAs?Url="+escape(JimgArr[pageno].Jimg.aC);
		
	};
	this.FavWeb=function (){
		var bi=$("ffw");
		this.as();
		if(ag=="")return false;
		var A=ag.split(",");
		bi.content.value="";
		for(var i=0;i<A.length;i++){
			if(A[i]!="")bi.content.value+="<img src='"+JimgArr[A[i]].Jimg.aC+"&zoom=0' /><br/>";
			
		}bi.url.value=window.location;
		bi.submit();
		$("SelectDiv").style.display="none";
		
	};
	this.ShowAt=function (z){
		$(BookDiv).parentNode.scrollTop=z;
		
	};
	this.PgNext=function (){
		if(pageno<epage){
			this.Z(++pageno);
			JimgArr[pageno].Show();
			if(pageno<epage)JimgArr[pageno+1].Open();
			$("memu1").disabled=false;
			
		}else if($("memu2").disabled!=true){
			$("memu2").disabled=true;
			
		}
	};
	this.PgPrev=function (){
		if(pageno>spage){
			this.Z(--pageno);
			JimgArr[pageno].Show();
			if(pageno>spage)JimgArr[pageno-1].Open();
			$("memu2").disabled=false;
			
		}else if($("memu1").disabled!=true){
			$("memu1").disabled=true;
			
		}
	}
};
function Jimg_OCR(bo){
	if(!am)return ;
	if(Paint!=null){
		Paint.parentNode.removeChild(Paint);
		
	}if(bo==0)ac=2;
	else ac=3;
	aK("crosshair");
	PaintCallBack=function (O){
		am=false;
		ac=0;
		if(bg)$("ocr").style.filter='alpha(opacity=100)';
		else $("ocr").style.opacity='1';
		var s=JimgArr[pageno].Jimg.src;
		var M=s.substring(7,s.length);
		M=M.substring(0,M.indexOf("/"));
		if(bo==0){
			$("paintaffirm").innerHTML="<div style='background:url(/images/ocring.gif) -10px;'>文字摘录中<div>";
			new _Ajax().GetAjax("Ajax.jsp?Url=http%3A//"+M+"/jocr/jocr.dll%3Fdid="+did+"%26kid="+PdgPath+"%26imgs="+ae.style.width.ToInt()+":"+(ae.style.height.ToInt()-50)+"%26rect=("+O+")%26pid="+ae.JpgName+".pdg","",true);
			CallBack=function (text){
				if(!am){
					$("paintcontent").innerHTML="<textarea style='height:"+(Paint.style.height.ToInt()-26)+"px;width:"+(Paint.style.width.ToInt()-6)+"px;overflow:auto'>"+text.replace("<pre>","").replace("</pre>","")+"</textarea>";
					
				}am=true;
				
			}
		}else {
			$("paintaffirm").innerHTML="<div style='background:url(/images/ocring.gif) -10px;'>截取图片中<div>";
			var img=document.createElement("img");
			img.src="http://"+M+"/copyimg/copyimg.dll?did="+did+"&kid="+PdgPath+"&imgs="+ae.style.width.ToInt()+":"+(ae.style.height.ToInt()-50)+"&rect=("+O+")&pid="+ae.JpgName+".pdg";
			img.style.border="0";
			img.style.margin="0";
			var bl=0;
			CutPicStatus=function (){
				var I=true;
				I=img.complete;
				if(I==true){
					window.clearInterval(aJ);
					Paint.style.height=(Paint.style.height.ToInt()+22)+'px';
					$("paintcontent").innerHTML="";
					$("paintcontent").appendChild(img);
					am=true;
					if(bg)alert("图像已拷贝到剪贴板,或者在图片上右键单击另存");
					else alert("请在截取的图片上右键单击另存");
					if(bg){
						img.contentEditable='true';
						var controlRange;
						if(document.body.createControlRange){
							controlRange=document.body.createControlRange();
							controlRange.addElement(img);
							controlRange.execCommand('Copy',false,null);
							
						}img.contentEditable='false';
						
					}
				}else if(bl<10000)bl+=1000;
				else {
					window.clearInterval(aJ);
					alert("截取图片失败,请稍后再试");
					am=true;
					$("paintcontent").innerHTML="";
					
				}
			};
			var aJ=window.setInterval("CutPicStatus()",1000);
			
		}
	}
};
function aK(c){
	$(BookDiv).style.cursor=c;
	
};
function $(e){
	return document.getElementById(e);
	
}function aL(event){
	return bg?window.event.x:event.pageX;
	
};
function ad(event){
	return bg?window.event.y:event.pageY;
	
};
function JpgFocus(){
	$("Readweb").focus();
	
};
document.onkeydown=function (e){
	try{
		var target=e==undefined?event:e;
		if(target.keyCode==37){
			_Main.PgPrev();
			
		}if(target.keyCode==39){
			_Main.PgNext();
			
		}if(target.keyCode==33&&$("Readweb").scrollTop==0){
			_Main.PgPrev();
			
		}if(target.keyCode==34&&$("Readweb").scrollTop+$("Readweb").clientHeight==$("Readweb").scrollHeight){
			_Main.PgNext();
			return false;
			
		}
	}catch(ex){
		
	}
};
String.prototype.trim=function (){
	return this.replace(/(^\s*)|(\s*$)/g,"");
	
};
String.prototype.ToInt=function (){
	return parseInt(this.replace('px',""))
};
String.prototype.bn=function (search,replace){
	var regex=new RegExp(search,"g");
	return this.replace(regex,replace);
	
};
function Cookie(){
	this.SetValue=function (name,value,hours,path,domain,secure){
		var str=new String();
		var nextTime=new Date();
		nextTime.setHours(nextTime.getHours()+hours);
		str=name+"="+escape(value);
		if(hours)str+=";expires="+nextTime.toGMTString();
		if(path)str+=";path="+path;
		if(domain)str+=";domain="+domain;
		if(secure)str+=";secure";
		document.cookie=str;
		
	};
	this.GetValue=function (name){
		var rs=new RegExp("(^|)"+name+"=([^;]*)(;|$)","gi").exec(document.cookie),tmp;
		if(tmp=rs)return unescape(tmp[2]);
		return null;
		
	}
}
2009-3-22 20:15
0
雪    币: 2
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
请问楼主的.我如何利用这个JS文件+JS程序(javascript Language)处理后的网址.
来还原未处理前的真实的地址呢?
2009-3-23 11:17
0
雪    币: 2
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
没人理我...wu...
2009-3-24 12:06
0
雪    币: 200
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
5
偶试菜鸟,学习中!
2009-3-24 12:24
0
雪    币: 200
活跃值: (15)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
6
这么厉害
2009-3-24 13:49
0
雪    币: 200
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
7
http://www.cha88.cn/safe/jsformat.php

这个地址不错,收藏了.
2009-6-27 15:37
0
游客
登录 | 注册 方可回帖
返回
//