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

📄 art.htm

📁 八星瓢虫留言本特点:采用PHP+Access数据库实现
💻 HTM
📖 第 1 页 / 共 4 页
字号:
    for (var i=0; i<aArts.length; i++){
        if (i%6==0){
            str += "<tr valign=middle align=center height=75>";
        }
        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){}

    td_fontfamily.innerHTML = "<select id=d_fontfamily onchange='doFontFamily(this.options[this.selectedIndex].value)'>" + lang["FontName"] + "</select>";
    SearchSelectValue(d_fontfamily, sFontFamily);

    str = "<img onclick='doBold(this)' border=0 width=20 height=20 src='../buttonimage/" + config.ButtonDir + "/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='../buttonimage/" + config.ButtonDir + "/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;
}

function doFontFamily(str){

⌨️ 快捷键说明

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