📄 art.htm
字号:
}
var s = i + 1;
if (s<10){
s = "0" + s;
}
str += "<td id='shape_x0000_i00" + s + "' onmouseover='doMouseOver(this)' onmouseout='doMouseOut(this)' onclick='doClick(this)' class='shapenormal'><div style='width:75px' id='shape_x0000_i00" + s + "_div'><span>" + aArts[i] + "</span></div></td>";
if (i%6==5){
str += "</tr>";
}
}
str += "</table>"
td_shape.innerHTML = str;
try{
document.all(sShapeID).click();
}catch(e){}
var s_Options = "";
for (var k=0; k<lang["FontNameItem"].length; k++){
s_Options += "<option value='"+lang["FontNameItem"][k]+"'>"+lang["FontNameItem"][k]+"</option>";
}
td_fontfamily.innerHTML = "<select id=d_fontfamily onchange='doFontFamily(this.options[this.selectedIndex].value)'><option selected>" + lang["FontName"] + "</option>" + s_Options + "</select>";
SearchSelectValue(d_fontfamily, sFontFamily);
str = "<img onclick='doBold(this)' border=0 width=20 height=20 src='../sysimage/bold.gif' id=s_bold class="
if (sFontWeight.toLowerCase()=="bold"){
str += "imageselected";
}else{
str += "imagenormal";
}
str += ">";
td_bold.innerHTML = str;
str = "<img onclick='doItalic(this)' border=0 width=20 height=20 src='../sysimage/italic.gif' id=s_italic class="
if (sFontStyle.toLowerCase()=="italic"){
str += "imageselected";
}else{
str += "imagenormal";
}
str += ">";
td_italic.innerHTML = str;
d_fontsize.value = sFontSize;
SearchSelectValue(d_fontunit, sFontUnit);
changeTextStyle();
d_text.value = sText;
d_text.select();
d_text.focus();
adjustDialog();
}
function doMouseOver(obj){
obj.className = "shapeselected";
}
function doMouseOut(obj){
if (obj.id!=sShapeID){
obj.className = "shapenormal";
}
}
function doClick(obj){
document.all(sShapeID).className = "shapenormal";
obj.className = "shapeselected";
sShapeID = obj.id;
}
function doBold(obj){
if (obj.className=="imagenormal"){
obj.className = "imageselected";
sFontWeight = "bold";
}else{
obj.className = "imagenormal";
sFontWeight = "normal";
}
changeTextStyle();
}
function doItalic(obj){
if (obj.className=="imagenormal"){
obj.className = "imageselected";
sFontStyle = "italic";
}else{
obj.className = "imagenormal";
sFontStyle = "normal";
}
changeTextStyle();
}
function changeTextStyle(){
d_text.style.fontFamily = sFontFamily;
d_text.style.fontSize = sFontSize + sFontUnit;
d_text.style.fontWeight = sFontWeight;
d_text.style.fontStyle = sFontStyle;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -