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

📄 edit.html

📁 qq日志编辑
💻 HTML
📖 第 1 页 / 共 2 页
字号:
			case "S20":$("DivNone").innerHTML=InfoFile("WMV视频");break;
			//大头贴
			//case "S21":	var _PhotoStr=	"开发中...";
			//	$("DivNone").innerHTML=_PhotoStr;
			//	break;
				}
		}else{
		switch (OnSMenu) {
				case "S22": ColorSNum=0;if(ColorSelect==null){ColorSelect=drawCube()}
							$("DivNone").innerHTML=ColorSelect;break;
				case "S23": ColorSNum=1;if(ColorSelect==null){ColorSelect=drawCube()}
							$("DivNone").innerHTML=ColorSelect;break;
				case "S25": var _Html=	"<a href='#' onClick=\"return InfoHtml(innerText,'FontName',innerText)\"><div class='SizeDiv' title='宋体'>宋体</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml(innerText,'FontName',innerText)\"><div class='SizeDiv' title='黑体' style='FONT-FAMILY:黑体'>黑体</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml(innerText,'FontName',innerText)\"><div class='SizeDiv' title='楷体_GB2312' style='FONT-FAMILY:楷体_GB2312'>楷体_GB2312</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml(innerText,'FontName',innerText)\"><div class='SizeDiv' title='隶书' style='FONT-FAMILY:隶书'>隶书</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml(innerText,'FontName',innerText)\"><div class='SizeDiv' title='幼圆' style='FONT-FAMILY:幼圆'>幼圆</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml(innerText,'FontName',innerText)\"><div class='SizeDiv' title='Verdana' style='FONT-FAMILY:Verdana'>Verdana</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml(innerText,'FontName',innerText)\"><div class='SizeDiv' title='Arial' style='FONT-FAMILY:Arial'>Arial</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml(innerText,'FontName',innerText)\"><div class='SizeDiv' title='Impact' style='FONT-FAMILY:Impact'>Impact</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml(innerText,'FontName',innerText)\"><div class='SizeDiv' title='Courier New' style='FONT-FAMILY:Impact'>Courier New</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml(innerText,'FontName',innerText)\"><div class='SizeDiv' title='Times New Roman' style='FONT-FAMILY:Times New Roman'>Times New Roman</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml(innerText,'FontName',innerText)\"><div class='SizeDiv' title='Georgia' style='FONT-FAMILY:Georgia'>Georgia</div></a>";
				$("DivNone").innerHTML="<div style='line-height:40%'>"+_Html+"</div>";
				break;
				case "S26": var _Html=	"<a href='#' onClick=\"return InfoHtml(1,'fontsize',innerText)\"><div class='SizeDiv' title='1.极小'>1.极小</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml(2,'fontsize',innerText)\"><div class='SizeDiv' title='2.特小'>2.特小</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml(3,'fontsize',innerText)\"><div class='SizeDiv' title='3.偏小'>3.偏小</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml(4,'fontsize',innerText)\"><div class='SizeDiv' title='4.适中'>4.适中</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml(5,'fontsize',innerText)\"><div class='SizeDiv' title='5.偏大'>5.偏大</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml(6,'fontsize',innerText)\"><div class='SizeDiv' title='6.特大'>6.特大</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml(7,'fontsize',innerText)\"><div class='SizeDiv' title='7.极大'>7.极大</div></a>";
				$("DivNone").innerHTML="<div style='line-height:40%'>"+_Html+"</div>";
				break;
				//信纸
				case "S24": var _Html=	"<a href='#' onClick=\"return InfoHtml(0,'Bg','信纸')\"><div class='SizeDiv' title='移除信纸'>空白</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml('"+BgUrl+"1.jpg','Bg',innerText)\"><div class='SizeDiv' title='信纸01'>信纸01</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml('"+BgUrl+"2.jpg','Bg',innerText)\"><div class='SizeDiv' title='信纸02'>信纸02</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml('"+BgUrl+"3.jpg','Bg',innerText)\"><div class='SizeDiv' title='信纸03'>信纸03</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml('"+BgUrl+"4.jpg','Bg',innerText)\"><div class='SizeDiv' title='信纸04'>信纸04</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml('"+BgUrl+"5.jpg','Bg',innerText)\"><div class='SizeDiv' title='信纸05'>信纸05</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml('"+BgUrl+"6.jpg','Bg',innerText)\"><div class='SizeDiv' title='信纸06'>信纸06</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml('"+BgUrl+"7.jpg','Bg',innerText)\"><div class='SizeDiv' title='信纸07'>信纸07</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml('"+BgUrl+"8.jpg','Bg',innerText)\"><div class='SizeDiv' title='信纸08'>信纸08</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml('"+BgUrl+"9.jpg','Bg',innerText)\"><div class='SizeDiv' title='信纸09'>信纸09</div></a><br>"+
							"<a href='#' onClick=\"return InfoHtml('"+BgUrl+"10.jpg','Bg',innerText)\"><div class='SizeDiv' title='信纸10'>信纸10</div></a>";
				$("DivNone").innerHTML="<div style='line-height:40%'>"+_Html+"</div>";
				break;
				}
		}
	}
}

function MenuType(DivId,Num,_W,_H) {
if (DivId==0) {
	$("DivNone").innerHTML="";
	$("DivNone").style.display="none";
	if($(OnMenu)!=null) {$(OnMenu).className='M4'}
	OnMenu=null;
	OnSMenu=null;
	return;
	}
switch (Num) {
	case 0: $(DivId).className='M4on';break;
	case 1: if(OnMenu!=DivId) {$(DivId).className='M4'}
		break;
	case 2: $(DivId).className='M4down';break;
	case 3: $(DivId).className='M4on';
		if(OnMenu!=DivId) {
			if(OnMenu!=null) MenuType(0);
			OnMenu=DivId;
			$("DivNone").style.display='';
			$("DivNone").style.top="52px";
			ChangeDiv(_W,_H)
			}else{
			OnMenu=null;
			$("DivNone").style.display="none"
			}
		break;
	case 4: if(OnMenu!=null) MenuType(0);
		if(OnSMenu==DivId) {$("DivNone").style.display='none';OnSMenu=null;return}
		$("DivNone").style.display='';
		var _WT=52;
		if(DivId!="S22"&&DivId!="S23") _WT=4;
		$("DivNone").style.top=_WT+"px";
		OnSMenu=DivId;
		ChangeDiv(_W,_H)
		break;
	}
}

//改变CSS
function C(Obj,Cname) {if($(Obj)) $(Obj).className=Cname}

var xh_content;
function BlankHtml() {
var header =	"<html><head><link rel=\"stylesheet\" type=\"text/css\" href=\"blank.css\" /></head>";
if (xh_bgvalue!=""){
	header=header+"<body style='background:url("+xh_bgvalue+")'>";
	}else{
	header=header+"<body>";
	}
var footer =	"</body></html>";
return header+xh_content+footer;

}

//色块
var s = "";
var hex = new Array(6)
hex[0] = "FF"
hex[1] = "CC"
hex[2] = "99"
hex[3] = "66"
hex[4] = "33"
hex[5] = "00"
function drawCell(red, green, blue) {
	var color = '#' + red + green + blue;
	s += '<TD BGCOLOR="' + color + '">';
	s += '<IMG src="b.gif" class="ColorGif" onmouseover=\'this.className="ColorGifOn"\' onmouseout=\'this.className="ColorGif"\' onclick=\'InfoHtml("'+color+'","textcolor")\'>';
	s += '</TD>';
}
function drawRow(red, blue) {
	s += '<TR>';
	for (var i = 0; i < 6; ++i) {
		drawCell(red, hex[i], blue)
	}
	s += '</TR>';
}
function drawTable(blue) {
	s += '<TABLE CELLPADDING=0 CELLSPACING=0 border=0>';
	for (var i = 0; i < 6; ++i) {
		drawRow(hex[i], blue)
	}
	s += '</TABLE>';
}
function drawCube() {
	s += '<TABLE border=0 CELLPADDING=0 CELLSPACING=0><TR>';
	for (var i = 0; i < 3; ++i) {
		s += '<TD BGCOLOR="#FFFFFF">';
		drawTable(hex[i])
		s += '</TD>';
	}
	s += '</TR><TR>';
	for (var i = 3; i < 6; ++i) {
		s += '<TD BGCOLOR="#FFFFFF">';
		drawTable(hex[i])
		s += '</TD>';
	}
	s += '</TR></TABLE>';
	return s;
}
//获取URL参数
function GetUrlParms() {
var args=new Object();
var query=location.search.substring(1);
var pairs=query.split("&");
for(var i=0;i<pairs.length;i++) {   
	var pos=pairs[i].indexOf('=');
	if(pos==-1) continue;
	var argname=pairs[i].substring(0,pos);
	var value=pairs[i].substring(pos+1);
	args[argname]=unescape(value);
	}
return args;
}
var args = new Object();
args = GetUrlParms();
//加载完毕事件
var ColorSelect=null,ContentId,E,Ebody,BgId,WinId;
window.onload = function(){
ContentId = parent.document.getElementsByName(args["I"])[0];
BgId = parent.document.getElementsByName(args["B"])[0];
xh_bgvalue=BgId.value;
E = window.frames["HtmlEditor"];
xh_content=ContentId.value
E.document.open();
E.document.write(BlankHtml());
E.document.close();
E.document.designMode="on";
//获取可工作区高度
$("BodyFoot").style.height=(document.documentElement.clientHeight-71)+"px";
setLinkedField()
}

//父窗口表单提交
function setLinkedField() {
	if (! ContentId) return ;
	var oForm = ContentId.form ;
	if (!oForm) return ;
	oForm.attachEvent("onsubmit", AttachSubmit);
	oForm.attachEvent("onreset", AttachReset);
}
// 提交
function AttachSubmit() {
	var html = E.document.getElementsByTagName("BODY")[0].innerHTML;
	if ( (html.toLowerCase() == "<br>&nbsp;") || (html.toLowerCase() == "<br>") ){
		html = "";
	}
	ContentId.value = html;
	BgId.value = xh_bgvalue;
} 
// Reset事件
function AttachReset() {
	E.document.getElementsByTagName("BODY")[0].innerHTML = ContentId.value;
}
</script>
</head>
<body scroll=no>
<noscript>温馨提示:<br><br>您的浏览器不支持Javascript,请进入“工具”->“Internet选项”->“高级”选项卡下设置</noscript>

<table class='BodyTab' cellSpacing=0 cellPadding=0 align=center>
<tr><td id='BodyTop'>

<table width='100%' height='100%' border=0 cellSpacing=0 cellPadding=0><tr><td width=214 nowrap>
<div id='S24' L='34' class='M3' title="信纸"><div id="S24_T" class="MSpanL">信纸</div><div class="MSpanR"><img src='b.gif' onmouseover="C('S24','M3on')" onmouseout="C('S24','M3')" onmousedown="C('S24','M3down')" onmouseup="C('S24','M3');MenuType('S24',4,55,255)"></div></div>
<div id='S25' L='102' class='M3' title="字体选择"><div id="S25_T" class="MSpanL">字体</div><div class="MSpanR"><img src='b.gif' onmouseover="C('S25','M3on')" onmouseout="C('S25','M3')" onmousedown="C('S25','M3down')" onmouseup="C('S25','M3');MenuType('S25',4,55,255)"></div></div>
<div id='S26' L='170' class='M3' title="文本大小"><div id="S26_T" class="MSpanL">字号</div><div class="MSpanR"><img src='b.gif' onmouseover="C('S26','M3on')" onmouseout="C('S26','M3')" onmousedown="C('S26','M3down')" onmouseup="C('S26','M3');MenuType('S26',4,55,163)"></div></div>
</td><td rowspan=2 class='MenuLine'>&nbsp;</td><td width=90>
<div id='A1' style="margin-left:6px;width:18px" class='M1' onmouseover="C(this.id,'M1on')" onmouseout="C(this.id,'M1')" onmousedown="C(this.id,'M1down')" onmouseup="C(this.id,'M1on');GetMenu(12)" title="左对齐"><img src='b.gif' style='background:url(ico.gif) -200px -2px'></div>
<div id='A2' style="margin-left:8px;width:18px" class='M1' onmouseover="C(this.id,'M1on')" onmouseout="C(this.id,'M1')" onmousedown="C(this.id,'M1down')" onmouseup="C(this.id,'M1on');GetMenu(13)" title="居中对齐"><img src='b.gif' style='background:url(ico.gif) -218px -2px'></div>
<div id='A3' style="margin-left:8px;width:18px" class='M1' onmouseover="C(this.id,'M1on')" onmouseout="C(this.id,'M1')" onmousedown="C(this.id,'M1down')" onmouseup="C(this.id,'M1on');GetMenu(14)" title="右对齐"><img src='b.gif' style='background:url(ico.gif) -235px -2px'></div>
</td><td rowspan=2 class='MenuLine'>&nbsp;</td><td rowspan=2 width=192 nowrap>
<div id='S16' L='326' style="margin-left:5px;width:32px" class='M4' onmouseover="MenuType(this.id,0)" onmouseout="MenuType(this.id,1)" onmousedown="MenuType(this.id,2)" onmouseup="MenuType(this.id,3,500,250)" title="插入表情"><img src='b.gif' style='background:url(ico.gif) -13px -90px'></div>
<div id='S17' L='361' style="width:32px" class='M4' onmouseover="MenuType(this.id,0)" onmouseout="MenuType(this.id,1)" onmousedown="MenuType(this.id,2)" onmouseup="MenuType(this.id,3,500,216)" title="插入图片"><img src='b.gif' style='background:url(ico.gif) -58px -90px'></div>
<div id='S18' L='398' style="width:36px" class='M4' onmouseover="MenuType(this.id,0)" onmouseout="MenuType(this.id,1)" onmousedown="MenuType(this.id,2)" onmouseup="MenuType(this.id,3,500,216)" title="插入FLASH动画"><img src='b.gif' style='background:url(ico.gif) -107px -90px'></div>
<div id='S19' L='435' style="width:32px" class='M4' onmouseover="MenuType(this.id,0)" onmouseout="MenuType(this.id,1)" onmousedown="MenuType(this.id,2)" onmouseup="MenuType(this.id,3,500,216)" title="插入MP3音乐"><img src='b.gif' style='background:url(ico.gif) -158px -90px'></div>
<div id='S20' L='470' style="width:32px" class='M4' onmouseover="MenuType(this.id,0)" onmouseout="MenuType(this.id,1)" onmousedown="MenuType(this.id,2)" onmouseup="MenuType(this.id,3,500,216)" title="插入视频文件"><img src='b.gif' style='background:url(ico.gif) -204px -90px'></div>
</td><td rowspan=2 class='MenuLine'>&nbsp;</td><td rowspan=2 width=82 nowrap>
<div id='A4' style="margin-left:5px;width:32px" class='M4' onmouseover="C(this.id,'M4on')" onmouseout="C(this.id,'M4')" onmousedown="C(this.id,'M4down')" onmouseup="C(this.id,'M4on');document.execCommand('Undo');" title="撤消上一步操作"><img src='b.gif' style='background:url(ico.gif) -14px -143px'></div>
<div id='A5' style="width:32px" class='M4' onmouseover="C(this.id,'M4on')" onmouseout="C(this.id,'M4')" onmousedown="C(this.id,'M4down')" onmouseup="C(this.id,'M4on');document.execCommand('Redo')" title="恢复撤销操作"><img src='b.gif' style='background:url(ico.gif) -57px -143px'></div>
</td><td rowspan=2 class='MenuLine'>&nbsp;</td><td rowspan=2>
<!--全屏-->
<div id='A6' style="margin-left:5px;width:32px" class='M4' onmouseover="C(this.id,'M4on')" onmouseout="C(this.id,'M4')" onmousedown="C(this.id,'M4down')" onmouseup="C(this.id,'M4on');GetMenu(22)" title="全屏模式"><img id='FullWinImg' src='b.gif' style='background:url(ico.gif) -109px -143px'></div>
</td></tr><tr><td>
<div id='A7' style="margin-left:5px;width:18px;" class='M1' onmouseover="C(this.id,'M1on')" onmouseout="C(this.id,'M1')" onmousedown="C(this.id,'M1down')" onmouseup="C(this.id,'M1on');GetMenu(1)" title="加粗"><img src='b.gif' style='background:url(ico.gif) -95px -2px'></div>
<div id='A8' style="margin-left:5px;width:18px" class='M1' onmouseover="C(this.id,'M1on')" onmouseout="C(this.id,'M1')" onmousedown="C(this.id,'M1down')" onmouseup="C(this.id,'M1on');GetMenu(2)" title="斜体"><img src='b.gif' style='background:url(ico.gif) -112px -2px'></div>
<div id='A9' style="margin-left:5px;width:18px" class='M1' onmouseover="C(this.id,'M1on')" onmouseout="C(this.id,'M1')" onmousedown="C(this.id,'M1down')" onmouseup="C(this.id,'M1on');GetMenu(3)" title="下划线"><img src='b.gif' style='background:url(ico.gif) -129px -2px'></div>
<div id='S22' L='120' style="margin-left:5px;width:22px" class='M1' onmouseover="C(this.id,'M1on')" onmouseout="C(this.id,'M1')" onmousedown="C(this.id,'M1down')" onmouseup="C(this.id,'M1on');MenuType(this.id,4,270,186)" title="文本颜色"><img src='b.gif' style='background:url(ico.gif) -146px -2px'></div>
<div id='S23' L='120' style="margin-left:4px;width:22px" class='M1' onmouseover="C(this.id,'M1on')" onmouseout="C(this.id,'M1')" onmousedown="C(this.id,'M1down')" onmouseup="C(this.id,'M1on');MenuType(this.id,4,270,186)" title="文本背景"><img src='b.gif' style='background:url(ico.gif) -252px -2px'></div>
<div id='A10' style="margin-left:4px;width:18px" class='M1' onmouseover="C(this.id,'M1on')" onmouseout="C(this.id,'M1')" onmousedown="C(this.id,'M1down')" onmouseup="C(this.id,'M1on');GetMenu(6)" title="发光字"><img src='b.gif' style='background:url(ico.gif) -166px -2px'></div>
<div id='A11' style="margin-left:5px;width:18px" class='M1' onmouseover="C(this.id,'M1on')" onmouseout="C(this.id,'M1')" onmousedown="C(this.id,'M1down')" onmouseup="C(this.id,'M1on');GetMenu(7)" title="插入链接"><img src='b.gif' style='background:url(ico.gif) -274px -2px'></div>
<div id='A12' style="margin-left:5px;width:18px" class='M1' onmouseover="C(this.id,'M1on')" onmouseout="C(this.id,'M1')" onmousedown="C(this.id,'M1down')" onmouseup="C(this.id,'M1on');GetMenu(8)" title="清除文本格式"><img src='b.gif' style='background:url(ico.gif) -184px -2px'></div>
</td>
<td><div id='A13' style="margin-left:6px;width:74px" class='M1' onmouseover="C(this.id,'M1on')" onmouseout="C(this.id,'M1')" onmousedown="C(this.id,'M1down')" onmouseup="C(this.id,'M1on');GetMenu(15)"><img src='b.gif' style='background:url(ico.gif) -95px -23px' title="自动对齐"></div></td></tr></table>
</td></tr><tr><td id='BodyFoot'>
<div id="BodyContent"><IFRAME class="HtmlEditor" ID="HtmlEditor" name="HtmlEditor" style="height:100%;width:100%" frameBorder="0" marginHeight=0 marginWidth=0 src="about:blank"></IFRAME></div>
</td></tr></table>
<div id="DivNone" style="display:none" onMouseLeave="MenuType(0)"></div>
</body>
</html>

⌨️ 快捷键说明

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