JS 的选择

function MyClick(no) {
        for (var i = 1; i < 9; i++) {
            var b = document.getElementById("a" + i.toString());
            b.style.backgroundImage = "";
        }
        if (no != 0) {
            var a = document.getElementById("a" + no.toString());
            a.style.backgroundImage = "url(images/bulewhite.png)";
        }
        
        //
//        if (0 == no) {
//            var ele2 = document.getElementById("leftdiv");
//            var btn2 = document.getElementById("hsBtn");
//            ele2.style.display = "none";
//            btn2.style.display = "none";
//        } else {
//            var ele3 = document.getElementById("leftdiv");
//            var btn3 = document.getElementById("hsBtn");
//            ele3.style.display = "block";
//            btn3.style.display = "block";
//        }
       


        //
        var lsrc = "Page/HomePage/NavPage.aspx";
        var rsrc = "Page/HomePage/GCEconomicIndicators.aspx";
var img = "url(images/biaoyu_hexie.png)";
        switch (no) {
            case 0: lsrc = "Page/HomePage/NavPage.aspx"; rsrc = "Page/HomePage/GCEconomicIndicators.aspx"; img = "url(images/biaoyu_hexie.png)"; break;
            case 1: lsrc = "Page/Monitor/NavPage.aspx"; rsrc = "Page/Monitor/Default.aspx"; img = "url(images/biaoyu_value.png)"; break;
            case 2: lsrc = "Page/EquipmentReliability/NavPage.aspx"; rsrc = "Page/EquipmentReliability/analysis.aspx"; img = "url(images/biaoyu_zuida.png)"; break;
            case 3: lsrc = "Page/TrendAnalysis/NavPage.aspx"; rsrc = "Page/TrendAnalysis/RealTimeData.aspx"; img = "url(images/biaoyu_new.png)"; break;
            case 4: lsrc = "Page/StatisticalComparison/NavPage.aspx"; rsrc = "Page/StatisticalComparison/UnitECDifAnalysis.aspx"; img = "url(images/biaoyu_new.png)"; break;
            case 5: lsrc = "Page/FaultManagement/NavPage.aspx"; rsrc = "Page/FaultManagement/UnitFaultQuery.aspx"; img = "url(images/biaoyu_zuida.png)"; break;
            case 6: lsrc = "Page/ReportManager/NavPage.aspx"; rsrc = "Page/ReportManager/ConDiff.aspx"; img = "url(images/biaoyu_zuida.png)"; break;
case 7: lsrc = "Page/ParameterImport/NavPage.aspx"; rsrc = "Page/ParameterImport/ProductionProcessParameter.aspx"; img = "url(images/biaoyu_zixin.png)"; break;
            case 8: lsrc = "Page/FileManagement/NavPage.aspx"; rsrc = "Page/FileManagement/Default.aspx"; img = "url(images/biaoyu_zuida.png)"; break;
//            case 9: lsrc = "Page/AdvancedApplications/NavPage.aspx"; rsrc = "Page/AdvancedApplications/Default.aspx"; break;
        }


        document.getElementById("leftframe").src = lsrc;
        document.getElementById("rightframe").src = rsrc;
document.getElementById("value").style.backgroundImage = img;
    }
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值