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

📄 edit.js

📁 深入了解内存
💻 JS
字号:
if((window.navigator.userAgent.indexOf("IE 5") > 1) || (window.navigator.userAgent.indexOf("IE 6") > 1)) {
	document.write('<iframe ID="editor" NAME="editor" style="width: 80%; height: 200;display:none"></iframe>');
	document.write('<div id="switchDiv" style="padding: 0;margin: 0;"><table border="0" cellspacing="0" cellpadding="0" width="100%">');
	document.write('<tr><td id="status1" style="display:none"><map name="switch1">');
	document.write('<area onclick="switchstatus(2)" shape="polygon" coords="50, 1, 46, 7, 50, 14, 90, 14, 95, 2">');
	document.write('<area onclick="switchstatus(3)" shape="polygon" coords="128, 13, 134, 0, 96, 0, 93, 10, 96, 14">');
	document.write('</map><img SRC="editor/images/design.gif" height="15" width="135" usemap="#switch1" border="0">');
	document.write('</td><td id="status2"><map name="switch2">');
	document.write('<area onclick="switchstatus(1)" shape="polygon" coords="5, 3, 12, 14, 43, 14, 49, 6, 43, 0">');
	document.write('<area onclick="switchstatus(3)" shape="polygon" coords="97, 0, 94, 7, 98, 14, 127, 14, 134, 0">');
	document.write('</map><img SRC="editor/images/abc.gif" height="15" width="135" usemap="#switch2" border="0">');
	document.write('</td><td id="status3" style="display:none"><map name="switch3">');
	document.write('<area onclick="switchstatus(1)" shape="polygon" coords="3, 2, 10, 14, 41, 14, 50, 0">');
	document.write('<area onclick="switchstatus(2)" shape="polygon" coords="87, 14, 91, 5, 87, 0, 50, 0, 46, 9, 49, 14">');
	document.write('</map><img SRC="editor/images/preview.gif" height="15" width="135" usemap="#switch3" border="0"></td>');
	document.write('<td width="100%">&nbsp; <font color=red>New!</font></td></tr></table></div>');
}
function switchstatus(flag){
	if (document.all.editor.src == ""){		
		document.all.editor.src = "editor/edit.htm";
		document.forms[0].body.disabled = true;
		document.forms[0].body.title = "程序载入中,请等待……";
	}
	else{
		document.frames.editor.frames.edit1.swapModes(flag);
	}
	var i;
	for(i=1;i<4;i++){
		document.all["status" + i].style.display = "none";
	}
	document.all["status" + flag].style.display = "block";
}
function winhidden(){
	if (confirm("您确信要放弃所有改动退出吗?\n退出后将无法恢复您所做的改动。")){
		document.all.editor.src = "";
		document.forms[0].body.style.display = "block";
		document.forms[0].body.disabled = false;		
		document.all.editor.style.display = "none";
		document.all["status1"].style.display = "none";
		document.all["status2"].style.display = "block";
		document.all["status3"].style.display = "none";
		document.forms[0].onsubmit = null;
	}
}

⌨️ 快捷键说明

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