📄 ftb-pro.js
字号:
</head>\
<body>\
<form action=''> \
<h3>Table Editor</h3> \
<table border='0' style='padding: 0px; margin: 0px'> \
<tbody> \
<tr> \
<td style='width: 4em; text-align: right'>Rows:</td> \
<td><input type='text' name='rows' id='f_rows' size='5' title='Number of rows' value='2' /></td> \
<td></td> \
<td></td> \
<td></td> \
</tr> \
<tr> \
<td style='width: 4em; text-align: right'>Cols:</td> \
<td><input type='text' name='cols' id='f_cols' size='5' title='Number of columns' value='4' /></td> \
<td style='width: 4em; text-align: right'>Width:</td> \
<td><input type='text' name='width' id='f_width' size='5' title='Width of the table' value='100' /></td> \
<td><select size='1' name='unit' id='f_unit' title='Width unit'> \
<option value='%' selected='1' >Percent</option> \
<option value='px' >Pixels</option> \
<option value='em' >Em</option> \
</select></td> \
</tr> \
</tbody> \
</table> \
<table width='100%'>\
<tr><td valign='top'>\
<fieldset>\
<legend>Layout</legend> \
<table>\
<tr><td class='f_title'>Alignment:</td><td>\
<select size='1' name='align' id='f_align' \
title='Positioning of the table'> \
<option value='' selected='1'>Not set</option> \
<option value='left' >Left</option> \
<option value='center' >Center</option> \
<option value='right'>Right</option> \
</select> \
</td></tr>\
<tr><td class='f_title'>Border thickness:</td><td>\
<input type='text' name='border' id='f_border' size='5' value='1' title='Leave empty for no border' /> \
</td></tr></table>\
</fieldset>\
</td><td valign='top'>\
<fieldset>\
<legend>Spacing</legend> \
<table>\
<tr><td class='f_title'>Cell spacing:</td><td>\
<input type='text' name='spacing' id='f_spacing' size='5' value='1' title='Space between adjacent cells' /> \
</td></tr>\
<tr><td class='f_title'>Cell padding:</td><td>\
<input type='text' name='padding' id='f_padding' size='5' value='1' title='Space between content and border in cell' /> \
</td></tr></table>\
</fieldset> \
</td></tr></table>\
<div class='footer'> \
<button type='button' name='ok' id='f_goButton' onclick='doTable();window.close();'>OK</button> \
<button type='button' name='cancel' onclick='window.close();'>Cancel</button> \
</div> \
<script language='JavaScript'> \
function load() { \
ftb = window.launchParameters['ftb'];\
table = window.launchParameters['table'];\
if (table) { \
width = window.opener.FTB_ParseUnit(table.style.width); \
document.getElementById('f_width').value = width.value; \
window.opener.FTB_SetListValue(document.getElementById('f_align'),table.align,true); \
window.opener.FTB_SetListValue(document.getElementById('f_unit'),width.unitType,true); \
document.getElementById('f_border').value = table.border; \
document.getElementById('f_padding').value = table.cellPadding; \
document.getElementById('f_spacing').value = table.cellSpacing; \
document.getElementById('f_cols').disabled = true; \
document.getElementById('f_rows').disabled = true; \
} \
} \
</script></form> \
</body> \
</html>");
/* ColorPicker
---------------------------------------- */
var FTB_ColorPickerHtml = new String("\
<html><body> \
<head>\
<title>Image Editor</title>\
<style type='text/css'>\
html, body { \
background-color: #ECE9D8; \
color: #000000; \
font: 11px Tahoma,Verdana,sans-serif; \
padding: 0px; \
} \
body { margin: 5px; } \
form { margin: 0px; padding: 0px;} \
table { \
font: 11px Tahoma,Verdana,sans-serif; \
} \
form p { \
margin-top: 5px; \
margin-bottom: 5px; \
} \
h3 { margin: 0; margin-top: 4px; margin-bottom: 5px; font-size: 12px; border-bottom: 2px solid #90A8F0; color: #90A8F0;} \
.fl { width: 9em; float: left; padding: 2px 5px; text-align: right; } \
.fr { width: 7em; float: left; padding: 2px 5px; text-align: right; } \
fieldset { padding: 0px 10px 5px 5px; } \
button { width: 75px; } \
select, input, button { font: 11px Tahoma,Verdana,sans-serif; } \
.space { padding: 2px; } \
.title { background: #ddf; color: #000; font-weight: bold; font-size: 120%; padding: 3px 10px; margin-bottom: 10px; \
border-bottom: 1px solid black; letter-spacing: 2px; \
} \
.f_title { text-align:right; }\
.footer { border-top:2px solid #90A8F0; padding-top: 3px; margin-top: 4px; text-align:right; }\
</style>\
<script type='text/javascript'>\
function cO(theTD) { \
color = theTD.style.backgroundColor; \
if (color.toString().toLowerCase().indexOf('rgb') > -1) color = window.opener.FTB_RgbStringToHex(color); \
previewColor(color); \
setTextField(color); \
} \
function cC(theTD) { \
color = theTD.style.backgroundColor; \
if (color.toString().toLowerCase().indexOf('rgb') > -1) color = window.opener.FTB_RgbStringToHex(color); \
setTextField(color); \
returnColor(color); \
} \
function setTextField(ColorString) { \
document.getElementById('ColorText').value = ColorString.toUpperCase(); \
} \
function returnColor(ColorString) { \
ftb = window.launchParameters['ftb'];\
if (ftb) {\
command = new String(window.launchParameters['commandName']);\
ftb.ExecuteCommand(command,'',ColorString);\
} else {\
}\
\
window.close(); \
} \
function userInput(theinput) { \
previewColor(theinput.value); \
} \
function previewColor(theColor) { \
try { \
document.getElementById('PreviewDiv').style.backgroundColor = theColor; \
} catch (e) {} \
}\
function okButton() { \
theColor = document.getElementById('ColorText').value; \
returnColor(theColor);\
}\
</script>\
</head>\
<body>\
<form action=''> \
<h3>Image Editor</h3> \
<style> \
.cc { width:10;height:8; } \
</style> \
<table><tr><td>\
<table cellpadding=0 cellspacing=1 style='background-color:ffffff;' border=0 ><tr> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:FFFFFF;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:FFFFCC;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:FFFF99;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:FFFF66;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:FFFF33;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:FFFF00;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:FFCCFF;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:FFCCCC;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:FFCC99;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:FFCC66;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:FFCC33;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:FFCC00;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:FF99FF;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:FF99CC;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:FF9999;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:FF9966;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:FF9933;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:FF9900;' class=cc></td> \
</tr> \
<tr> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:CCFFFF;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:CCFFCC;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:CCFF99;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:CCFF66;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:CCFF33;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:CCFF00;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:CCCCFF;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:CCCCCC;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:CCCC99;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:CCCC66;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:CCCC33;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:CCCC00;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:CC99FF;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:CC99CC;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:CC9999;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:CC9966;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:CC9933;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:CC9900;' class=cc></td> \
</tr> \
<tr> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:99FFFF;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:99FFCC;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:99FF99;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:99FF66;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:99FF33;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:99FF00;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:99CCFF;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:99CCCC;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:99CC99;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:99CC66;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:99CC33;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:99CC00;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:9999FF;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:9999CC;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:999999;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:999966;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:999933;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:999900;' class=cc></td> \
</tr> \
<tr> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:66FFFF;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:66FFCC;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:66FF99;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:66FF66;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:66FF33;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:66FF00;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:66CCFF;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:66CCCC;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:66CC99;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:66CC66;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:66CC33;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:66CC00;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:6699FF;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:6699CC;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:669999;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:669966;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:669933;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:669900;' class=cc></td> \
</tr> \
<tr> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:33FFFF;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:33FFCC;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:33FF99;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:33FF66;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:33FF33;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:33FF00;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:33CCFF;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:33CCCC;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:33CC99;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:33CC66;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:33CC33;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:33CC00;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:3399FF;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:3399CC;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:339999;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:339966;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:339933;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:339900;' class=cc></td> \
</tr> \
<tr> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:00FFFF;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:00FFCC;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:00FF99;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:00FF66;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:00FF33;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:00FF00;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:00CCFF;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:00CCCC;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:00CC99;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:00CC66;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:00CC33;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:00CC00;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:0099FF;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:0099CC;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:009999;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:009966;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:009933;' class=cc></td> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:009900;' class=cc></td> \
</tr> \
<tr> \
<td onmouseover='cO(this);' onclick='cC(this);' style='background-color:FF66FF;' class=cc></td> \
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -