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

📄 data,bdata,idata,pdata,xdata,code存储类型与存储区--herosungod的鸟巢.mht

📁 51单片机的内存优化和中断的有用知识
💻 MHT
📖 第 1 页 / 共 5 页
字号:
        add_script =3D add_html;
        add_script +=3D "document.getElementsByTagName('head').item(0)";
        add_script +=3D ".appendChild(global_script_pool['" + script.id =
+ "']);\n";
        window.setTimeout(add_script, s);
        remove_script =3D =
"document.getElementsByTagName('head').item(0)";
        remove_script +=3D ".removeChild(document.getElementById('" + =
script.id + "'));\n";
        remove_script +=3D "delete global_script_pool['" + script.id + =
"'];\n";
        window.setTimeout(remove_script, s + 10000);
    }

    var end_script =3D "if (document_buffer.match(/<\\/script>/i)) {\n";
    end_script +=3D "set_innerHTML('" + obj_id + "', document_buffer, " =
+ s + ");\n";
    end_script +=3D "}\n";
    end_script +=3D "else {\n";
    end_script +=3D "document.getElementById('" + obj_id + "').innerHTML =
=3D document_buffer;\n";
    end_script +=3D "innerhtml_lock =3D null;\n";
    end_script +=3D "}";
    window.setTimeout(end_script, s);
}
 if (window.HTMLElement) {
	HTMLElement.prototype.insertAdjacentHTML =3D function (sWhere, sHTML) {
		var df;  // : DocumentFragment
		var r =3D this.ownerDocument.createRange();
		switch (String(sWhere).toLowerCase()) {
		case "beforebegin":
			r.setStartBefore(this);
			df =3D r.createContextualFragment(sHTML);
			this.parentNode.insertBefore(df, this);
			break;
		case "afterbegin":
			r.selectNodeContents(this);r.collapse(true);
			df =3D r.createContextualFragment(sHTML);
			this.insertBefore(df, this.firstChild);
			break;
		case "beforeend":
			r.selectNodeContents(this);
			r.collapse(false);
			df =3D r.createContextualFragment(sHTML);
			this.appendChild(df);
			break;
		case "afterend":
			r.setStartAfter(this);
			df =3D r.createContextualFragment(sHTML);
			this.parentNode.insertBefore(df, this.nextSibling);
			break;
		}
	};
	HTMLElement.prototype.__defineGetter__("all",function(){
		var a=3Dthis.getElementsByTagName("*");
		var node=3Dthis;
		a.tags=3Dfunction(sTagName){
			return node.getElementsByTagName(sTagName);
			}
		return a;
		});
 }
function rsimg(o,w){
	if(o.width>w){
		o.resized=3Dtrue;
		o.width=3Dw;
		o.height=3D(w/o.width)*o.height;
	}
}
function bbimg(o){
	var zoom=3DparseInt(o.style.zoom, =
10)||100;zoom+=3Devent.wheelDelta/12;if (zoom>0) =
o.style.zoom=3Dzoom+'%';
	return false;
}

function openScript(url, width, height){
	if (IsIE){
		//showModalDialog;
		//showModelessDialog
		var Win =3D showModalDialog(url,"openScript",'dialogWidth:' + width + =
'px;dialogHeight:' + height + =
'px;dialogLeft:300px;dialogTop:100px;center:yes;help:yes;resizable:no;sta=
tus:yes;scroll:yes')=20
	}
	else {
		var Win =3D window.open(url,"openScript",'width=3D' + width + =
',height=3D' + height + ',top=3D100,left=3D300,toolbar=3Dno, =
menubar=3Dno, scrollbars=3Dyes, =
resizable=3Dno,location=3Dno,status=3Dyes' );
		Win.focus();
	}
	return;
}

function chkdiv(divid){
	var chkid=3Ddocument.getElementById(divid);
	if(chkid !=3D null){return true; }
	else {return false; }
}

function getpara(){
	var str,parastr
	str =3D window.location.search;
	parastr =3D str.substring(1);
	return parastr;
}

function oblog_ViewCode(rnum)
{
	var bodyTag=3D"<html><head><style type=3Dtext/css>.quote{margin:5px =
20px;border:1px solid #CCCCCC;padding:5px; background:#F3F3F3 =
}\nbody{boder:0px}.HtmlCode{margin:5px 20px;border:1px solid =
#CCCCCC;padding:5px;background:#FDFDDF;font-size:14px;font-family:Tahoma;=
font-style : oblique;line-height : normal =
;font-weight:bold;}\nbody{boder:0px}</style></head><BODY =
bgcolor=3D\"#FFFFFF\" >";
	bodyTag+=3Ddocument.getElementById('scode'+rnum).value
	bodyTag+=3D"</body></html>"
	=
preWin=3Dwindow.open('preview','','left=3D0,top=3D0,width=3D550,height=3D=
400,resizable=3D1,scrollbars=3D1, status=3D1, toolbar=3D1, =
menubar=3D0');
	preWin.document.open();
	preWin.document.write(bodyTag);
	preWin.document.close();
	preWin.document.title=3D"=B2=E9=BF=B4=B4=FA=C2=EB=C4=DA=C8=DD";
	preWin.document.charset=3D"UTF-8";
}

function dialog(blogurl){
	var titile =3D '';
	var width =3D 300;
	var height =3D 150;
	var src =3D "";
	var path =3D blogurl+"images/dialog/";
	//alert(path);
	var sFunc =3D '<input id=3D"dialogOk" type=3D"button" =
style=3D"font-size:12px;width:71px;height:22px;line-height:24px;border-st=
yle:none;background:transparent url('+path+'button4.bmp);width: =
71px;height: 22px;"  onmouseover=3DBtnOver(this,"'+path+'") =
onmouseout=3DBtnOut(this,"'+path+'") value=3D"=C8=B7 =C8=CF" =
onclick=3D"new dialog(\''+blogurl+'\').reset();" /> <input =
id=3D"dialogCancel" type=3D"button" =
style=3D"font-size:12px;width:71px;height:22px;line-height:24px;border-st=
yle:none;background:transparent url('+path+'button4.bmp);width: =
71px;height: 22px;" value=3D"=C8=A1 =CF=FB" onclick=3D"new =
dialog(\''+blogurl+'\').reset();" />';
	var sClose =3D '<span id=3D"dialogBoxClose" onclick=3D"new =
dialog(\''+blogurl+'\').reset();" style=3D"color: #fff; cursor:pointer; =
">=B9=D8=B1=D5</span>';
	var sBody =3D '\
		<table id=3D"dialogBodyBox" border=3D"0" align=3D"center" =
cellpadding=3D"0" cellspacing=3D"0" width=3D"100%" height=3D"100%" >\
			<tr height=3D"10"><td colspan=3D"4" align=3D"center"></td></tr>\
			<tr>\
				<td width=3D"10"></td>\
				<td width=3D"80" align=3D"center" valign=3D"middle" =
id=3D"ob_boxface"><img id=3D"dialogBoxFace" src=3D"' + path + '1.png"  =
valign=3D"absmiddle" style=3D"behavior:url('+path+'png.htc);" /></td>\
				<td id=3D"dialogMsg" style=3D"font-size:12px;color:#000;"></td>\
				<td width=3D"10"></td>\
			</tr>\
			<tr height=3D"10"><td colspan=3D"4" align=3D"center"></td></tr>\
			<tr><td id=3D"dialogFunc" colspan=3D"4" align=3D"center">' + sFunc + =
'</td></tr>\
			<tr height=3D"10"><td colspan=3D"4" align=3D"center"></td></tr>\
		</table>\
	';
	var sBox =3D '\
		<table id=3D"dialogBox" width=3D"' + width + '" border=3D"0" =
cellpadding=3D"0" cellspacing=3D"0" style=3D" border: 1px solid #1B76B7; =
display: none; z-index: 1000; ">\
			<tr height=3D"24" bgcolor=3D"#1B76B7" >\
				<td>\
					<table onselectstart=3D"return false;" =
style=3D"-moz-user-select:none;" width=3D"100%" border=3D"0" =
cellpadding=3D"0" cellspacing=3D"0">\
						<tr>\
							<td width=3D"6" ></td>\
							<td id=3D"dialogBoxTitle" onmousedown=3D"new =
dialog().moveStart(event, \'dialogBox\')" =
style=3D"color:#fff;cursor:move;font-size:12px;font-weight:bold;">=CC=E1=CA=
=BE=D0=C5=CF=A2</td>\
							<td id=3D"dialogClose" width=3D"27" align=3D"right" =
valign=3D"middle">\
								' + sClose + '\
							</td>\
							<td width=3D"6"></td>\
						</tr>\
					</table>\
				</td>\
			</tr>\
			<tr id=3D"dialogHeight" height=3D"' + height + '">\
				<td id=3D"dialogBody" style=3D"background:#fff;color:#000;">' + =
sBody + '</td>\
			</tr>\
		</table>\
		<div id=3D"dialogBoxShadow" style=3D" display:none; z-index:9; =
"></div>\
		<iframe id=3D"dialogBoxDivShim" scrolling=3D"no" frameborder=3D"0" =
style=3D"position: absolute; top: 0px; left: 0px; display: none; ">\
	';
	function $(_sId){return document.getElementById(_sId)}
	this.show =3D function(){$('dialogBodyBox') ? function(){} : =
this.init();this.middle('dialogBox');this.shadow();}
	this.reset =3D =
function(){$('dialogBox').style.display=3D'none';$('dialogBoxShadow').sty=
le.display =3D "none";$('dialogBoxDivShim').style.display =3D =
"none";$('dialogBody').innerHTML =3D sBody;}
	this.html =3D function(_sHtml){$("dialogBody").innerHTML =3D =
_sHtml;this.show();}
	this.init =3D function(){
		$('dialogCase') ? =
$('dialogCase').parentNode.removeChild($('dialogCase')) : function(){};
		var oDiv =3D document.createElement('span');
		oDiv.id =3D "dialogCase";
		oDiv.innerHTML =3D sBox;
		document.body.appendChild(oDiv);
	}
	this.button =3D function(_sId, _sFuc){
		if($(_sId)){
			$(_sId).style.display =3D '';
			if($(_sId).addEventListener){
				if($(_sId).act){$(_sId).removeEventListener('click', =
function(){eval($(_sId).act)}, false);}
				$(_sId).act =3D _sFuc;
				$(_sId).addEventListener('click', function(){eval(_sFuc)}, false);
			}else{
				if($(_sId).act){$(_sId).detachEvent('onclick', =
function(){eval($(_sId).act)});}
				$(_sId).act =3D _sFuc;
				$(_sId).attachEvent('onclick', function(){eval(_sFuc)});
			}
		}
	}
	this.shadow =3D function(){
		var oShadow =3D $('dialogBoxShadow');
		var oDialog =3D $('dialogBox');
		var IfrRef =3D $('dialogBoxDivShim');
		oShadow.style.position =3D "absolute";
		oShadow.style.background	=3D "#000";
		oShadow.style.display	=3D "";
		oShadow.style.opacity	=3D "0.2";
		oShadow.style.filter =3D "alpha(opacity=3D0)";
		oShadow.style.top =3D oDialog.offsetTop + 0+"px";
		oShadow.style.left =3D oDialog.offsetLeft + 0+"px";
		oShadow.style.width =3D oDialog.offsetWidth+"px";
		oShadow.style.height =3D oDialog.offsetHeight+"px";
	=09
		IfrRef.style.width =3D oDialog.offsetWidth+0+"px";
		IfrRef.style.height =3D oDialog.offsetHeight+0+"px";
		IfrRef.style.top =3D oDialog.offsetTop+"px";
		IfrRef.style.left =3D oDialog.offsetLeft+"px";
		IfrRef.style.zIndex =3D oDialog.style.zIndex - 1;
		IfrRef.style.display =3D "block";
	}
	this.open =3D function(_sUrl, _sMode){
		this.show();
		if(!_sMode || _sMode =3D=3D "no" || _sMode =3D=3D "yes"){
			$("dialogBody").innerHTML =3D "<iframe id=3D'dialogFrame' =
width=3D'100%' height=3D'100%' frameborder=3D'0' scrolling=3D'" + _sMode =
+ "'></iframe>";
			$("dialogFrame").src =3D _sUrl;
		}
	}
	this.event =3D function(_sMsg, _sOk, _sCancel, _sClose){
		$('dialogFunc').innerHTML =3D sFunc;
		$('dialogClose').innerHTML =3D sClose;
		$('dialogBodyBox') =3D=3D null ? $('dialogBody').innerHTML =3D sBody : =
function(){};
		$('dialogMsg') ? $('dialogMsg').innerHTML =3D _sMsg  : function(){};
		this.show();
		_sOk ? this.button('dialogOk', _sOk) | $('dialogOk').focus() : =
$('dialogOk').style.display =3D 'none';
		_sCancel ? this.button('dialogCancel', _sCancel) : =
$('dialogCancel').style.display =3D 'none';
		_sClose ? this.button('dialogBoxClose', _sClose) : function(){};
		//_sOk ? this.button('dialogOk', _sOk) : _sOk =3D=3D "" ? function(){} =
: $('dialogOk').style.display =3D 'none';
		//_sCancel ? this.button('dialogCancel', _sCancel) : _sCancel =3D=3D =
"" ? function(){} : $('dialogCancel').style.display =3D 'none';
	}
	this.set =3D function(_oAttr, _sVal){
		var oShadow =3D $('dialogBoxShadow');
		var oDialog =3D $('dialogBox');
		var oHeight =3D $('dialogHeight');

		if(_sVal !=3D ''){
			switch(_oAttr){
				case 'title':
					$('dialogBoxTitle').innerHTML =3D _sVal;
					title =3D _sVal;
					break;
				case 'width':
					oDialog.style.width =3D _sVal;
					width =3D _sVal;
					break;
				case 'height':
					oHeight.style.height =3D _sVal;
					height =3D _sVal;
					break;
				case 'src':
					if(parseInt(_sVal) > 0){
						$('dialogBoxFace') ? $('dialogBoxFace').src =3D path + _sVal + =
'.png' : function(){};
					}else{
						$('dialogBoxFace') ? $('dialogBoxFace').src =3D _sVal : =
function(){};
					}
					src =3D _sVal;
					break;
			}
		}
		this.middle('dialogBox');
		oShadow.style.top =3D oDialog.offsetTop + 0+"px";
		oShadow.style.left =3D oDialog.offsetLeft + 0+"px";
		oShadow.style.width =3D oDialog.offsetWidth+"px";
		oShadow.style.height =3D oDialog.offsetHeight+"px";
	}
	this.moveStart =3D function (event, _sId){
		var oObj =3D $(_sId);
		oObj.onmousemove =3D mousemove;
		oObj.onmouseup =3D mouseup;
		oObj.setCapture ? oObj.setCapture() : function(){};
		oEvent =3D window.event ? window.event : event;
		var dragData =3D {x : oEvent.clientX, y : oEvent.clientY};
		var backData =3D {x : parseInt(oObj.style.top), y : =
parseInt(oObj.style.left)};
		function mousemove(){
			var oEvent =3D window.event ? window.event : event;
			var iLeft =3D oEvent.clientX - dragData["x

⌨️ 快捷键说明

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