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

📄 fontcolor.html

📁 网站编辑的软件
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
	<title>Font Color</title>
	<style type="text/css">
		body, td, span, div, input, select {
			font-size: 12px;
			font-family: "宋体", "Courier New", Courier, monospace;
			margin: 0px;
		}
		.input {
			border: 1px solid #7E9DB9;
			width: 38px;
			margin-left: 4px;
			height: 18px;
		}
		.input2 {
			border: 1px solid #7E9DB9;
			margin-left: 4px;
			height: 18px;
		}
		.select {
			height: 18px;
			border: 1px solid #7E9DB9;
			margin-left: 4px;
		}
	</style>
	<base target="_self" />
	<script type="text/javascript" language="javascript">
		//window.focus();
		window.PWindow = (function(){var win = null;win = window;while(win!=win.parent){if (!win.parent){return  win;}win = win.parent;}return win;})();
		window.PDocument = window.PWindow.document;
		var $P = function(el){return window.PDocument.getElementById(el);};
		var $ = function(el){return document.getElementById(el);}
		window.isIE = (navigator.appName.toLowerCase() == "microsoft internet explorer");
		String.prototype.trim = function(){return this.replace(/(^\s*)|(\s*$)/g,'');};
		var F = $P('ifrDialog');
		var W = F.CSWindow;
		var E = W.Editor;
		var WEditor = E.Editor;
		
		////////////
		var hexch = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F');
		
		function ToHex(n)
		{
			var h, l;
			n = Math.round(n);
			l = n % 16;
			h = Math.floor((n / 16)) % 16;
			return (hexch[h] + hexch[l]);
		}
		
		function tblClick()
		{
			//var WEditor = window.dialogArguments.Editor; diglogMode
			var editor = WEditor.Config.HtmlEdit;
			editor.focus();
			if (window.isIE)
			{
				WEditor.FontColor(event.srcElement.bgColor);
			}
			else
			{
				WEditor.FontColor(WEditor.Config.srcEle().bgColor);
			}
			WEditor.Config.HidePanel();
			setTimeout(function(){editor.focus()},10);
			//window.close();
			
			
		}
	</script>
</head>
<body>
	<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" ID="Table1">
		<!-- <tr>
			<td height="24" bgcolor="#DDE7EE" style="padding-left: 10px;">插入表格</td>
		</tr> -->
		<tr>
			<td style="padding:5px;min-height:1px;">
				<table id="ColorTable" style="CURSOR: hand" cellSpacing="0" cellPadding="0" border="0" style="margin:0px;">
					<script type="text/javascript" language="javascript">
						function wc(r, g, b, n)
						{
							r = ((r * 16 + r) * 3 * (15 - n) + 0x80 * n) / 15;
							g = ((g * 16 + g) * 3 * (15 - n) + 0x80 * n) / 15;
							b = ((b * 16 + b) * 3 * (15 - n) + 0x80 * n) / 15;
							
							document.writeln('<td bgcolor=#' + ToHex(r) + ToHex(g) + ToHex(b) + ' height=8 width=8 onclick=tblClick() ></td>');
						}
						
						var cnum = new Array(1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0);
						for(i = 0; i < 16; i ++)
						{
							document.writeln('<tr>');
							for(j = 0; j < 30; j ++)
							{
								n1 = j % 5;
								n2 = Math.floor(j / 5) * 3;
								n3 = n2 + 3;
								wc((cnum[n3] * n1 + cnum[n2] * (5 - n1)),(cnum[n3 + 1] * n1 + cnum[n2 + 1] * (5 - n1)),(cnum[n3 + 2] * n1 + cnum[n2 + 2] * (5 - n1)), i);
							}
							document.writeln('</tr>');
						}
					</script>
				</table>
			</td>
		</tr>
		<!--<tr>
			<td align="center" style="padding-bottom: 5px auto;" valign="top">
				<input type="button" id="okBtn" name="okBtn" value="确 定" onclick="tblClick();" />
				<input type="button" id="cloBtn" name="cloBtn" value="关 闭" onclick="window.close();" />
			</td>
		</tr>-->
		<tr>
			<td bgcolor="#DDE7EE" height="5"></td>
		</tr>
	</table>
</body>
</html>

⌨️ 快捷键说明

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