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

📄 cparser:symbian下解析xml文件的好工具_跳着samba的狮子_新浪博客.mht

📁 symbian的学习笔记
💻 MHT
📖 第 1 页 / 共 5 页
字号:
}=0A=
function $E(id) {=0A=
	return typeof(id) =3D=3D 'string' ? document.getElementById(id) : id;=0A=
}=0A=
/**=0A=
 * =0A=
 * @param {Object} elm=0A=
 * @param {Object} func=0A=
 * @param {Object} evType=0A=
 * @param {Object} useCapture=0A=
 */=0A=
function $addEvent2(elm, func, evType, useCapture) {=0A=
	elm =3D $E(elm);=0A=
	if(typeof useCapture =3D=3D 'undefined') useCapture =3D false;=0A=
	if(typeof evType =3D=3D 'undefined')  evType =3D 'click';=0A=
	if (elm.addEventListener) {=0A=
		elm.addEventListener(evType, func, useCapture);=0A=
		return true;=0A=
	}=0A=
	else if (elm.attachEvent) {=0A=
		var r =3D elm.attachEvent('on' + evType, func);=0A=
		return true;=0A=
	}=0A=
	else {=0A=
		elm['on' + evType] =3D func;=0A=
	}=0A=
};=0A=
function $removeEvent2 (oElement, fHandler, sName) {=0A=
	var elm =3D $E(oElement);=0A=
	if ("function" !=3D typeof fHandler) return;=0A=
	if (oElement.addEventListener) {=0A=
		oElement.removeEventListener(sName, fHandler, false);=0A=
	}=0A=
	else if (oElement.attachEvent) {=0A=
		oElement.detachEvent("on" + sName, fHandler);=0A=
	}=0A=
	fHandler[sName] =3D null;=0A=
}=0A=
/**=0A=
 * @desc add DOM onload Event=0A=
 */=0A=
function addDOMLoadEvent(func) {=0A=
   if (!window.__load_events) {=0A=
      var init =3D function () {=0A=
          // quit if this function has already been called=0A=
          if (arguments.callee.done) {=0A=
		  	return;=0A=
		  }=0A=
=0A=
          // flag this function so we don't do the same thing twice=0A=
          arguments.callee.done =3D true;=0A=
=0A=
          // kill the timer=0A=
          if (window.__load_timer) {=0A=
              clearInterval(window.__load_timer);=0A=
              window.__load_timer =3D null;=0A=
          }=0A=
=0A=
          // execute each function in the stack in the order they were =
added=0A=
          for (var i=3D0;i < window.__load_events.length;i++) {=0A=
              window.__load_events[i]();=0A=
          }=0A=
          window.__load_events =3D null;=0A=
      };=0A=
=0A=
      // for Mozilla/Opera9=0A=
      if (document.addEventListener) {=0A=
          document.addEventListener("DOMContentLoaded", init, false);=0A=
      }=0A=
=0A=
      // for Internet Explorer=0A=
      /*@cc_on @*/=0A=
      /*@if (@_win32)=0A=
          document.write("<scr"+"ipt id=3D__ie_onload defer =
src=3Djavascript:void(0)><\/scr"+"ipt>");=0A=
          var script =3D document.getElementById("__ie_onload");=0A=
          script.onreadystatechange =3D function() {=0A=
              if (this.readyState =3D=3D "complete") {=0A=
                  init(); // call the onload handler=0A=
              }=0A=
          };=0A=
      /*@end @*/=0A=
=0A=
      // for Safari=0A=
      if (/WebKit/i.test(navigator.userAgent)) { // sniff=0A=
          window.__load_timer =3D setInterval(function() {=0A=
              if (/loaded|complete/.test(document.readyState)) {=0A=
                  init(); // call the onload handler=0A=
              }=0A=
          }, 10);=0A=
      }=0A=
=0A=
      // for other browsers=0A=
      window.onload =3D init;=0A=
=0A=
      // create event function stack=0A=
      window.__load_events =3D [];=0A=
   }=0A=
=0A=
   // add function to event stack=0A=
   window.__load_events.push(func);=0A=
}=0A=
/**=0A=
 * =0A=
 */=0A=
function $debug(){=0A=
	if (__debug_mode) {=0A=
		Sina.debug.Trace.init(true, false);=0A=
		trace("author : " + __author);=0A=
		trace("dev_mode : " + __dev_mode);=0A=
		trace("----------------------------")=0A=
	}else{=0A=
		window.traceMSGList =3D new Array();=0A=
		window.trace =3D function (sMSG, sColor, sBGColor) {=0A=
			traceMSGList[traceMSGList.length] =3D {=0A=
				msg: sMSG,=0A=
				color: sColor,=0A=
				bcolor: sBGColor=0A=
			};=0A=
		}=0A=
		traceError =3D function (){};=0A=
	}=0A=
}=0A=
/**=0A=
 * =0A=
 */=0A=
function loadCnf() {=0A=
	dwScript({=0A=
		url		: =
"http://blogcnfv5.sinajs.cn/cnf5?uid=3D"+$uid+"&varname=3Dconfig&.js",=0A=
		charset : "utf-8"=0A=
	});=0A=
	// =
=E5=A6=82=E6=9E=9C=E6=98=AF=E5=B0=8F=E9=A1=B5=E9=9D=A2=EF=BC=8C=E5=B0=B1=E4=
=B8=8D=E5=8A=A0=E8=BD=BD Conf =E6=95=B0=E6=8D=AE=E4=BA=86=0A=
	if($uid !=3D "0000000000"){=0A=
		dwScript({=0A=
			url		: "http://uic.sinajs.cn/uic?type=3Dnick&uids=3D" + $uid + =
"&varname=3Dnick",=0A=
			charset : "UTF-8"=0A=
		});=0A=
	}=0A=
	// =E5=A6=82=E6=9E=9C=E9=A1=B5=E9=9D=A2=E6=B2=A1=E5=AE=9A=E4=B9=89 =
loadPromote =E6=88=96=E8=80=85 loadPromote =E8=AE=BE=E7=BD=AE=E4=B8=BA =
true=EF=BC=8C=E8=BD=BD=E5=85=A5=E6=8E=A8=E5=B9=BF=E4=BD=8D JS=EF=BC=9B=0A=
	// =
=E5=A6=82=E6=9E=9C=E9=A1=B5=E9=9D=A2=E7=89=B9=E5=88=AB=E5=AE=9A=E4=B9=89 =
loadPromote =E4=B8=BA =
false=EF=BC=8C=E5=88=99=E4=B8=8D=E8=BD=BD=E5=85=A5=EF=BC=8C=E4=B8=BB=E8=A6=
=81=E6=98=AF=E9=92=88=E5=AF=B9=E5=B0=8F=E9=A1=B5=E9=9D=A2=0A=
	if(typeof loadPromote =3D=3D "undefined" || loadPromote =3D=3D true){=0A=
		dwScript({=0A=
			url		: "http://blogjs.sinajs.cn/v5js/blogPromote.conf.js?" + =
Math.random(),=0A=
			charset : "UTF-8"=0A=
		});=0A=
	}=0A=
}=0A=
function renderBlog() {=0A=
	addDOMLoadEvent(function(){=0A=
		$debug();=0A=
		var mainInit =3D false;=0A=
		var runMain =3D function () {=0A=
			if(mainInit =3D=3D false) {=0A=
				mainInit =3D true;=0A=
				$removeEvent2(window, runMain, "focus");=0A=
				$removeEvent2(document, runMain, "mousemove");=0A=
				$removeEvent2(document, runMain, "mouseover");=0A=
				main();=0A=
			}=0A=
		}=0A=
		if($pageid =3D=3D "index" || $pageid =3D=3D "indexM" || $pageid =3D=3D =
"article" || $pageid =3D=3D "articleM") {=0A=
			if (document.addEventListener || =
/msie/.test(navigator.userAgent.toLowerCase())) {=0A=
				$addEvent2(window, runMain, "focus");=0A=
				$addEvent2(document, runMain, "mousemove");=0A=
				$addEvent2(document, runMain, "mouseover");=0A=
			}=0A=
			else {=0A=
				runMain();=0A=
			}=0A=
		}=0A=
		else {=0A=
			runMain();=0A=
		}=0A=
		=0A=
	});=0A=
}=0A=
/**=0A=
 * =
=E8=BF=94=E5=9B=9E=E7=9B=B8=E5=BA=94=E7=9A=84=E6=8F=90=E7=A4=BA=E6=96=87=E6=
=A1=88=E5=86=85=E5=AE=B9=0A=
 * @method showError=0A=
 * @param {String} msgline =
=E6=96=87=E6=A1=88=E6=89=80=E5=9C=A8=E7=B4=A2=E5=BC=95=0A=
 * @param {String} ico =E5=9B=BE=E6=A0=87=E7=B4=A2=E5=BC=95, =
=E5=85=B7=E4=BD=93=E8=A7=81windwoDialog=0A=
 * @param {Array} btn =E6=8C=89=E9=92=AE=E9=9B=86=E5=90=88=0A=
 *		[=0A=
 *      		//=E6=8C=89=E9=92=AE1=E8=AE=BE=E7=BD=AE=0A=
 *      		{=0A=
 *      		label:	"xxxx",		=
=E6=8C=89=E9=92=AE1=E6=96=87=E6=9C=AC=EF=BC=8C=E9=BB=98=E8=AE=A4=E5=80=BC=
=E2=80=9C=E7=A1=AE=E5=AE=9A=E2=80=9D=0A=
 *      		func:	"xxxxx",	=
=E6=8C=89=E9=92=AE1=E5=87=BD=E6=95=B0=EF=BC=8C=E9=BB=98=E8=AE=A4=E4=B8=BA=
=E7=A9=BA=0A=
 *      		focus:	true,		=
=E6=8C=89=E9=92=AE1=E4=B8=BA=E9=BB=98=E8=AE=A4=E8=81=9A=E7=84=A6=EF=BC=8C=
=E9=BB=98=E8=AE=A4=E7=AC=AC=E4=B8=80=E4=B8=AA=E6=8C=89=E9=92=AE=E8=81=9A=E7=
=84=A6=0A=
 *      		css:	""			=
=E6=8C=89=E9=92=AE1=E6=A0=B7=E5=BC=8F=EF=BC=8C=E9=BB=98=E8=AE=A4=E6=A0=B7=
=E5=BC=8F=E4=B8=BA=0A=
 *      		}=0A=
 *      		=
//=E5=A6=82=E6=9E=9C=E6=9C=89=E5=A4=9A=E4=B8=AA=E6=8C=89=E9=92=AE=EF=BC=8C=
=E5=B0=B1=E7=94=A8=E9=80=97=E5=8F=B7=E5=88=86=E9=9A=94=E5=A4=9A=E4=B8=AA=E6=
=8C=89=E9=92=AE=E5=AF=B9=E8=B1=A1=E7=9A=84=E5=AE=9A=E4=B9=89=0A=
 *      ]=0A=
 * @param {String} target =
=E8=B0=83=E7=94=A8=E5=93=AA=E4=B8=AA=E7=AA=97=E5=8F=A3=E7=9A=84showError =
=E5=8F=AF=E9=80=89=E5=80=BC=0A=
 * @exception=0A=
 *      showError("=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF", "01");=0A=
 *      showError("=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF", null, [{label: =
"=E7=A1=AE=E5=AE=9A=E6=8C=89=E9=92=AE"}], "parent");=0A=
 */=0A=
=0A=
function showError(msgline, ico, btn, target) {=0A=
		if(msgline =3D=3D "00007" || msgline =3D=3D "00008" || msgline =3D=3D =
"00009" || msgline =3D=3D "00010"){=0A=
			var go2Url =3D {=0A=
				"00007": =
"http://blog.sina.com.cn/main_v5/ria/auto_signup.html?uid=3D" + $UID,=0A=
				"00008": =
"http://blog.sina.com.cn/main_v5/ria/auto_signup.html?uid=3D" + $UID,=0A=
				"00009": =
"http://control.blog.sina.com.cn/admin/reg/signup.php?pro=3Dblog",=0A=
				"00010": "http://blog.sina.com.cn/main_v5/ria/notopen.html"=0A=
				}=0A=
			window.location.href =3D go2Url[msgline];=0A=
			return false;=0A=
		}=0A=
	// =E6=96=B0=E7=9A=84=E8=B0=83=E7=94=A8=E6=96=B9=E6=B3=95=0A=
	if (typeof ico =3D=3D "object" && ico !=3D null) {=0A=
		ico.target =3D ico.target || window;=0A=
		ico.type =3D ico.type || 0;=0A=
		ico.ico =3D ico.ico || "03";=0A=
		// =
=E6=96=B0=E5=A2=9E=E5=85=B3=E9=97=AD=E6=8C=89=E9=92=AE=E7=9A=84=E6=98=BE=E7=
=A4=BA=E4=B8=8E=E5=90=A6=0A=
		//ico.close =3D ico.close =3D=3D null? true: ico.close;=0A=
		var str =3D "";=0A=
		if(ico.type =3D=3D 1) {=0A=
			str =3D msgline;=0A=
		}=0A=
		else {=0A=
			str =3D $SYSMSG[msgline || "00001"];=0A=
		}=0A=
		ico.target.windowDialog.msgbox(str, {=0A=
			width: 300,=0A=
			user_btn: ico.btn,=0A=
			icon: ico.ico || "03",=0A=
			close: ico.close=0A=
		});=0A=
	}=0A=
	// =E5=85=BC=E5=AE=B9=E8=80=81=E8=B0=83=E7=94=A8=E6=96=B9=E6=B3=95=0A=
	else {=0A=
		var msgStr =3D "";=0A=
		if (target !=3D "window") {=0A=
			msgStr =3D $SYSMSG[msgline];=0A=
			msgStr =3D msgStr ? msgStr : $SYSMSG["00001"];=0A=
		}=0A=
		if (target =3D=3D "parent") {=0A=
			parent.showError(msgStr, ico, btn, "window");=0A=
		}=0A=
		if (target =3D=3D "window") {=0A=
			windowDialog.msgbox(msgline, {=0A=
				icon: ico || "03",=0A=
				width: 300,=0A=
				user_btn: btn=0A=
			});=0A=
		}=0A=
		if (target =3D=3D null) {=0A=
			showError(msgStr, ico, btn, "window")=0A=
		}=0A=
	}=0A=
}=0A=
/**=0A=
 * =E7=94=A8=E4=BA=8E=E6=95=B4=E5=90=88=E4=BD=9C=E5=BA=8FsystemMsg;=0A=
 */=0A=
function $ExtendSystemMsg(info, override){=0A=
	for(var i in info)=0A=
		$SYSMSG[i] =3D !!override =3D=3D false ? info[i] : $SYSMSG[i];=0A=
}=0A=
//- start -=0A=
loadCnf();=0A=
=0A=
function trace(){}=0A=
=0A=
try {=0A=
	document.execCommand("BackgroundImageCache", false, true);=0A=
} ca

⌨️ 快捷键说明

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