關(guān)鍵字:數(shù)控母線加工機(jī),高機(jī)數(shù)控,山東高機(jī),機(jī)械加工,折彎,沖孔 dbzz字體
宋體
黑體
楷體
仿宋
隸書
Arial
Arial-B
字號(hào)
一號(hào)
二號(hào)
三號(hào)
四號(hào)
五號(hào)
六號(hào)
七號(hào)
源代碼
SEP_PADDING = 5
HANDLE_PADDING = 7
var yToolbars = new Array();
var YInitialized = false;
var bLoad=false
var pureText=true
var bodyTag="body {font-size: 12pt;line-height: 22px;SCROLLBAR-HIGHLIGHT-COLOR: buttonface; SCROLLBAR-SHADOW-COLOR: buttonface; SCROLLBAR-3DLIGHT-COLOR: buttonhighlight; SCROLLBAR-TRACK-COLOR: #eeeeee; SCROLLBAR-DARKSHADOW-COLOR: buttonshadow}"
var bTextMode=false
var strcompany = new String("");
public_description=new Editor
function document.onreadystatechange(){
if (YInitialized) return;
YInitialized = true;
var i, s, curr;
for (i=0; i ScrWid) {
Start = 0;
LastWid = TotalLen - LastStart;
}
else {
LastWid = PrevTB.TBWidth;
RelTop -= TB.offsetHeight;
}
TB.style.posTop = RelTop;
TB.style.posLeft = Start;
PrevTB.style.width = LastWid;
LastStart = Start;
Start += CurrWid;
}
TB.style.width = TotalLen - LastStart;
i--;
TB = yToolbarsi;
var TBInd = TB.sourceIndex;
var A = TB.document.all;
var item;
for (i in A) {
item = A.item(i);
if (! item) continue;
if (! item.style) continue;
if (item.sourceIndex = 0; i--) {
curr = fontsi;
if (curr.style.backgroundColor == "#ffffff") curr.outerHTML = curr.innerHTML;
}
}
function getPureHtml()
{
var str = "";
var paras = HtmlEdit.document.body.all.tags("P");
if (paras.length > 0) {
for (var i=paras.length-1; i >= 0; i--) str = parasi.innerHTML + "n" + str;
}
else {
str = HtmlEdit.document.body.innerHTML;
}
return str;
}
function Editor()
{
this.put_HtmlMode=setMode;
this.put_value=putText;
this.get_value=getText;
}
function getText()
{
if (bTextMode)
return HtmlEdit.document.body.innerText;
else
{
cleanHtml();
cleanHtml();
return HtmlEdit.document.body.innerHTML;
}
}
function putText(v)
{
if (bTextMode)
HtmlEdit.document.body.innerText = v;
else
HtmlEdit.document.body.innerHTML = v;
}
function UserDialog(what)
{
if (!validateMode()) return;
HtmlEdit.document.execCommand(what, true);
pureText = false;
HtmlEdit.focus();
}
function validateMode()
{
if (! bTextMode) return true;
alert("請(qǐng)取消“查看HTML源代碼”選項(xiàng),然后再使用系統(tǒng)編輯功能!");
HtmlEdit.focus();
return false;
}
function format(what,opt)
{
if (!validateMode()) return;
if (opt=="removeFormat")
{
what=opt;
opt=null;
}
if (opt==null) HtmlEdit.document.execCommand(what);
else HtmlEdit.document.execCommand(what,"",opt);
pureText = false;
HtmlEdit.focus();
}
function setMode(newMode)
{
var cont;
bTextMode = newMode;
if (bTextMode) {
cleanHtml();
cleanHtml();
cont=HtmlEdit.document.body.innerHTML;
HtmlEdit.document.body.innerText=cont;
}
else {
cont=HtmlEdit.document.body.innerText;
HtmlEdit.document.body.innerHTML=cont;
}
HtmlEdit.focus();
}
function foreColor()
{
if (! validateMode()) return;
var arr = showModalDialog("selcolor.php", "", "dialogWidth:18.5em; dialogHeight:17.5em; status:0");
if (arr != null) format('forecolor', arr);
else HtmlEdit.focus();
}
function InsertTable()
{
if (! validateMode()) return;
HtmlEdit.focus();
var range = HtmlEdit.document.selection.createRange();
var arr = showModalDialog("table.php", "", "dialogWidth:300pt;dialogHeight:236pt;help:0;status:0");
if (arr != null){
range.pasteHTML(arr);
}
HtmlEdit.focus();
}
function InsertImg()
{
if (! validateMode()) return;
HtmlEdit.focus();
var range = HtmlEdit.document.selection.createRange();
var strarr,strimg;
var arr = showModalDialog("image.php", "", "dialogWidth:430px; dialogHeight:190px; status:0");
// alert ("0000");
if (arr != null)
{
//將URL地址及圖片鏈接地址拆分再寫入數(shù)據(jù)庫,并且控制只能上傳3張
strarr=arr.split("|");
// alert (arr+"000");
// alert (strarr1);
// arr.split("|");
if (strcompany=="")
{
// alert ("定義變量");
strcompany=strarr1;
}
else
{
strcompany=strcompany+"|"+strarr1;
}
// alert(strcompany);
strimg=strarr0+"
";
range.pasteHTML(strimg);
parent.myform.companylogo.value=strcompany;
// parent.myform.IncludePic.checked=true;
}
HtmlEdit.focus();
}
function specialtype(Mark){
if (!Error()) return;
var sel,RangeType
sel = HtmlEdit.document.selection.createRange();
RangeType = HtmlEdit.document.selection.type;
if (RangeType == "Text"){
sel.pasteHTML("" + sel.text + "");
sel.select();
}
HtmlEdit.focus();
}
function help()
{
var arr = showModalDialog("help.php", "", "dialogWidth:580px; dialogHeight:460px; status:0");
}
function save()
{
if (bTextMode){
//編輯器嵌入其他網(wǎng)頁時(shí)使用下面這一句(請(qǐng)將form1改成相應(yīng)表單名)
parent.myform.infointr.value=HtmlEdit.document.body.innerText;
//單獨(dú)打開編輯器時(shí)使用下面這一句(請(qǐng)將form1改成相應(yīng)表單名)
// self.opener.form1.content.value+=HtmlEdit.document.body.innerText;
}
else{
//編輯器嵌入其他網(wǎng)頁時(shí)使用下面這一句(請(qǐng)將form1改成相應(yīng)表單名)
parent.myform.infointr.value=HtmlEdit.document.body.innerText;
//單獨(dú)打開編輯器時(shí)使用下面這一句(請(qǐng)將form1改成相應(yīng)表單名)
// self.opener.form1.content.value+=HtmlEdit.document.body.innerHTML;
}
// alert ("-----");
HtmlEdit.focus();
// alert (parent.myform.infointr.valu);
return false;
} |