📄 注册表里的一些技巧--chichip的笔记.mht
字号:
$('dialogBoxDivShim').style.left =3D backData.y +"px";
$('dialogBoxDivShim').style.top =3D backData.x +"px";
}
oObj.releaseCapture ? oObj.releaseCapture() : function(){};
}
}
this.middle =3D function(_sId){=09
var theWidth;
var theHeight;
if (document.documentElement && document.documentElement.clientWidth) =
{=20
theWidth =3D =
document.documentElement.clientWidth+document.documentElement.scrollLeft*=
2;;
theHeight =3D =
document.documentElement.clientHeight+document.documentElement.scrollTop*=
2;;=20
} else if (document.body) {=20
theWidth =3D document.body.clientWidth;
theHeight =3D document.body.clientHeight;=20
}else if(window.innerWidth){
theWidth =3D window.innerWidth;
theHeight =3D window.innerHeight;
}
document.getElementById(_sId).style.display =3D '';
document.getElementById(_sId).style.position =3D "absolute";
document.getElementById(_sId).style.left =3D (theWidth / 2) - =
(document.getElementById(_sId).offsetWidth / 2)+"px";
//alert(in_ob_useradmin);
if(document.all||document.getElementById("user_page_top")){
document.getElementById(_sId).style.top =3D (theHeight / 2 + =
document.body.scrollTop) - (document.getElementById(_sId).offsetHeight / =
2)+"px";
}else{
var sClientHeight =3D parent ? parent.document.body.clientHeight : =
document.body.clientHeight;
var sScrollTop =3D parent ? parent.document.body.scrollTop : =
document.body.scrollTop;
var sTop =3D -80 + (sClientHeight / 2 + sScrollTop) - =
(document.getElementById(_sId).offsetHeight / 2);
document.getElementById(_sId).style.top =3D sTop > 0 ? sTop : =
(sClientHeight / 2 + sScrollTop) - =
(document.getElementById(_sId).offsetHeight / 2)+"px";
//document.getElementById(_sId).style.top =3D (theHeight / 2 + =
document.body.scrollTop) - (document.getElementById(_sId).offsetHeight / =
2)+"px";
}
}
=09
}
BtnOver=3Dfunction(obj,path){obj.style.backgroundImage =3D =
"url("+path+"button3.bmp)";}
BtnOut=3Dfunction(obj,path){ obj.style.backgroundImage =3D =
"url("+path+"button4.bmp)";}
function oAjax( url ,callback)
{
try{
this.HttpRequest =3D null;
this.Debug =3D false;
this.Url =3D url;
this.ContentType =3D "text/xml";
this.HttpRequest =3D this.createXMLHttpRequest();
if ( this.HttpRequest =3D=3D null )
{
this._debug("XMLHttpRequest create failure!");
return;
}
var xhReq =3D this.HttpRequest;
xhReq.onreadystatechange =3D function (){
oAjax._OnReadyStateChange( xhReq,callback );
}
} catch(e){
this._debug( "unknow err: " + e.message );
}
}
/*
* Get URL resource
*/
oAjax.prototype.Get =3D function() {
this.SetContentType( "text/html" );
this._get();
}
/*
* Post data to the server
*/
oAjax.prototype.Post =3D function( arrKey, arrValue ) {
var data =3D '';
this.SetContentType( "application/x-www-form-urlencoded" );
for( i =3D 0; i < arrKey.length; i ++)
{
data +=3D "&" + escape(arrKey[i]) + "=3D" + escape(arrValue[i]);
//data +=3D "&" + arrKey[i] + "=3D" + arrValue[i];
}
//document.write(data);
data =3D data.replace(/^&/g, "");
this._post(data);
}
/*
* Initialization for oAjax class
*/
oAjax.prototype.Init =3D function() {
// initialization
}
/*
* Change URL for request
*/
oAjax.prototype.SetUrl =3D function( url ) {
this.Url =3D url;
}
/*
* Set content type for HTTP header before sending request
*/
oAjax.prototype.SetContentType =3D function( type ) {
this.ContentType =3D type;
}
oAjax.prototype.createXMLHttpRequest =3D function() {
try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) {}
try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) {}
try { return new XMLHttpRequest(); } catch(e) {}
return null;
}
/*
* Debug information for testing
*/
oAjax.prototype._debug =3D function(message) {
if ( this.Debug )
{
alert(message);
}
}
/*
* Process message and data from server
*/
oAjax._OnReadyStateChange =3D function( xreq, callback ){
if ( xreq =3D=3D null )
{
return; }
=20
/*Status is completed, then process result */
if ( xreq.readyState =3D=3D 4)
{
// OK =20
if ( xreq.status =3D=3D 200 )
{
//alert(xreq.responseText);
callback (this.ArrayValue(xreq.responseXML) ); =
=20
}else{
// alert('=B7=FE=CE=F1=C6=F7=B6=CB=B4=ED=CE=F3=A3=A1');
document.write (xreq.responseText);
}
} else {
// Others
}
}
oAjax.prototype._SendRequest =3D function(HttpMethod, data){
this._debug( 'Send Request ' + HttpMethod + data );
=20
if ( this.HttpRequest !=3D null )
{
this.HttpRequest.open(HttpMethod, this.Url, true);
if ( this.ContentType !=3D null )
{
// <FORM> MIME type: application/x-www-form-urlencoded
this.HttpRequest.setRequestHeader("Content-Type", =
this.ContentType);
}
this.HttpRequest.send(data);
return true;
}
return false;
}
/* Send GET request to server */
oAjax.prototype._get =3D function () {
this._debug( 'GET' );
return this._SendRequest("GET", null);
}
/* Send POST request and data to server */
oAjax.prototype._post =3D function (data) {
this._debug( 'POST' );
return this._SendRequest("POST", data);
}
oAjax.ArrayValue =3D function ( xmlobj ) {
var array =3D new Array();
var i =3D 0;
var response =3D xmlobj.getElementsByTagName('Response')[0];
var element =3D response.firstChild;
array[i] =3D element.firstChild.nodeValue;
while ( element =3D element.nextSibling )
{
i ++;
array[i] =3D element.firstChild.nodeValue;
}
return array;
}
if(typeof deconcept=3D=3D"undefined"){var deconcept=3Dnew Object();}
if(typeof deconcept.util=3D=3D"undefined"){deconcept.util=3Dnew =
Object();}
if(typeof =
deconcept.SWFObjectUtil=3D=3D"undefined"){deconcept.SWFObjectUtil=3Dnew =
Object();}
deconcept.SWFObject=3Dfunction(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){if(!documen=
t.getElementById){return;}
this.DETECT_KEY=3D_b?_b:"detectflash";
this.skipDetect=3Ddeconcept.util.getRequestParameter(this.DETECT_KEY);
this.params=3Dnew Object();
this.variables=3Dnew Object();
this.attributes=3Dnew Array();
if(_1){this.setAttribute("swf",_1);}
if(id){this.setAttribute("id",id);}
if(w){this.setAttribute("width",w);}
if(h){this.setAttribute("height",h);}
if(_5){this.setAttribute("version",new =
deconcept.PlayerVersion(_5.toString().split(".")));}
this.installedVer=3Ddeconcept.SWFObjectUtil.getPlayerVersion();
if(c){this.addParam("bgcolor",c);}
var q=3D_8?_8:"high";
this.addParam("quality",q);
this.setAttribute("useExpressInstall",_7);
this.setAttribute("doExpressInstall",false);
var _d=3D(_9)?_9:window.location;
this.setAttribute("xiRedirectUrl",_d);
this.setAttribute("redirectUrl","");
if(_a){this.setAttribute("redirectUrl",_a);}};
deconcept.SWFObject.prototype=3D{setAttribute:function(_e,_f){
this.attributes[_e]=3D_f;
},getAttribute:function(_10){
return this.attributes[_10];
},addParam:function(_11,_12){
this.params[_11]=3D_12;
},getParams:function(){
return this.params;
},addVariable:function(_13,_14){
this.variables[_13]=3D_14;
},getVariable:function(_15){
return this.variables[_15];
},getVariables:function(){
return this.variables;
},getVariablePairs:function(){
var _16=3Dnew Array();
var key;
var _18=3Dthis.getVariables();
for(key in _18){_16.push(key+"=3D"+_18[key]);}
return _16;},getSWFHTML:function(){var _19=3D"";
if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","PlugIn");}
_19=3D"<embed type=3D\"application/x-shockwave-flash\" =
src=3D\""+this.getAttribute("swf")+"\" =
width=3D\""+this.getAttribute("width")+"\" =
height=3D\""+this.getAttribute("height")+"\"";
_19+=3D" id=3D\""+this.getAttribute("id")+"\" =
name=3D\""+this.getAttribute("id")+"\" ";
var _1a=3Dthis.getParams();
for(var key in _1a){_19+=3D[key]+"=3D\""+_1a[key]+"\" ";}
var _1c=3Dthis.getVariablePairs().join("&");
if(_1c.length>0){_19+=3D"flashvars=3D\""+_1c+"\"";}_19+=3D"/>";
}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplaye=
rType","ActiveX");}
_19=3D"<object id=3D\""+this.getAttribute("id")+"\" =
classid=3D\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" =
width=3D\""+this.getAttribute("width")+"\" =
height=3D\""+this.getAttribute("height")+"\">";
_19+=3D"<param name=3D\"movie\" value=3D\""+this.getAttribute("swf")+"\" =
/>";
var _1d=3Dthis.getParams();
for(var key in _1d){_19+=3D"<param name=3D\""+key+"\" =
value=3D\""+_1d[key]+"\" />";}
var _1f=3Dthis.getVariablePairs().join("&");
if(_1f.length>0){_19+=3D"<param name=3D\"flashvars\" value=3D\""+_1f+"\" =
/>";}_19+=3D"</object>";}
return _19;
},write:function(_20){
if(this.getAttribute("useExpressInstall")){
var _21=3Dnew deconcept.PlayerVersion([6,0,65]);
if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsVal=
id(this.getAttribute("version"))){
this.setAttribute("doExpressInstall",true);
this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl"=
)));
document.title=3Ddocument.title.slice(0,47)+" - Flash Player =
Installation";
this.addVariable("MMdoctitle",document.title);}}
if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installed=
Ver.versionIsValid(this.getAttribute("version"))){
var n=3D(typeof _20=3D=3D"string")?document.getElementById(_20):_20;
n.innerHTML=3Dthis.getSWFHTML();return true;
}else{if(this.getAttribute("redirectUrl")!=3D""){document.location.replac=
e(this.getAttribute("redirectUrl"));}}
return false;}};
deconcept.SWFObjectUtil.getPlayerVersion=3Dfunction(){
var _23=3Dnew deconcept.PlayerVersion([0,0,0]);
if(navigator.plugins&&navigator.mimeTypes.length){
var x=3Dnavigator.plugins["Shockwave Flash"];
if(x&&x.description){_23=3Dnew =
deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replac=
e(/(\s+r|\s+b[0-9]+)/,".").split("."));}
}else{try{var axo=3Dnew =
ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}
catch(e){try{var axo=3Dnew =
ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
_23=3Dnew =
deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess=3D"always";}
catch(e){if(_23.major=3D=3D6){return _23;}}try{axo=3Dnew =
ActiveXObject("ShockwaveFlash.ShockwaveFlash");}
catch(e){}}if(axo!=3Dnull){_23=3Dnew =
deconcept.PlayerVersion(axo.GetVariable("$version").split(" =
")[1].split(","));}}
return _23;};
deconcept.PlayerVersion=3Dfunction(_27){
this.major=3D_27[0]!=3Dnull?parseInt(_27[0]):0;
this.minor=3D_27[1]!=3Dnull?parseInt(_27[1]):0;
this.rev=3D_27[2]!=3Dnull?parseInt(_27[2]):0;
};
deconcept.PlayerVersion.prototype.versionIsValid=3Dfunction(fv){
if(this.major<fv.major){return false;}
if(this.major>fv.major){return true;}
if(this.minor<fv.minor){return false;}
if(this.minor>fv.minor){return true;}
if(this.rev<fv.rev){
return false;
}return true;};
deconcept.util=3D{getRequestParameter:function(_29){
var q=3Ddocument.location.search||document.location.hash;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -