📄 windows ce下的注册表--chichip的笔记.mht
字号:
if(oEvent.clientX < 1 || oEvent.clientY < 1 || oEvent.clientX > =
document.body.clientWidth || oEvent.clientY > =
document.body.clientHeight){
oObj.style.left =3D backData.y +"px";
oObj.style.top =3D backData.x +"px";
$('dialogBoxShadow').style.left =3D backData.y + 6+"px";
$('dialogBoxShadow').style.top =3D backData.x + 6+"px";
=09
$('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=
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -