JavaScript Universal Library (2)

xiaoxiao2021-03-05  22

"# 000000"; var labelbackcolor = "# fffe1"; // sets each attribute Function setLabelfontFace (obj) {obj = trim (obj); if (obj == null || Obj == ") {Obj =" Song , arial, verdana ";} labelfontface = obj;} function setLabelfontColor (obj) {obj = trim (obj); if (obj == null || Obj ==") {Obj = "# 000000";} labelfontcolor = Obj;} function setlabelfontsize (obj) {obj = trim (obj); if (obj == null || obj == ") {Obj =" 9pt ";} labelfontsize = obj;} function setLabelfontStyle (OBJ) {Obj = Trim (obj); if (obj == null || obj == ") {obj =" font.plain ";} labelfontStyle = Obj;} Function setLabelBorderColor (OBJ) {Obj = trim (obj); IF Obj == NULL || {Obj = "# 000000";} labelbordercolor = obj;} Function setLabelbackColor (obj) {Obj = trim (obj); if (Obj == null || Obj == "") {obj = "# fffe1";} labelbackcolor = obj;} // Synthetic text style Function setTextStyle (STR) {var strret = "; var strsty =" "; strstyle =" font-family: " labelfontface ";"; strstyle = "," labelfontcolor ";"; strstyle = "font-size:" labelfontsize "; switch (labelfontstyle.tolowercase ()) {CASE" font.plain ": Strsty = "font-weight: normal;" strstyle = "font-style: normal;" Break; case "font.bold": strStyle = "font-weight: bold;"; strstyle = "font-style: Normal ; "; Break; Case" font.italic ": strStyle =" font-weight: normal; "; strstyle ="

Font-style: italic; ";" font.bold.italicbold ": Case" font.bolditalic ": strStyle =" font-weight: bold; "; strStyle =" font-style: italic; "; break; default: Strsty = "Font-Weight: bold;" strstyle = "font-style: italic;"; Break;} Strret = "; strret =" " str " "; strret ="; Return Strret;} // synthesis table style function SetTableStyle () {var strRet = ""; strRet = "border-right:" LabelBorderColor "1px solid;"; strRet = "border-top:" LabelBorderColor "1px solid;"; strRet = "border -left: " LabelBorderColor " 1px solid; "; strRet =" border-bottom: " LabelBorderColor " 1px solid; "; strRet =" background-color: " LabelBackColor; return strRet;} // display the prompt function ShowNote ( Str) {var strHtml; strHtml = ""; strHtml = "

"; strHtml ="

"; strHtml ="

" SetTextStyle (STR) " "; strHtml ="

"; strHtml ="

"; If (document.all && document.readyState ==" complete ") {document.all.div_Note.innerHTML = strHtml; document.all.div_Note.style.pixelLeft = event.clientX document.body.scrollLeft 10 document.all .div_Note.style.pixelTop = event.clientY document.body.scrollTop 10 document.all.div_Note.style.visibility = "visible"}} // hide prompt function HideNote () {if (document.all) {document .all.div_note.style.visibility = "hidden";} else {if (document.layers) {ClearInterval (Currentscroll) Document.div_note.visibility = "hidden";}}} // Initialization infusion}} {Window. Document.write (" Text " ";} else {return

转载请注明原文地址:https://www.9cbs.com/read-38603.html

New Post(0)