C#学习中记录(一)

来源:互联网 发布:淘宝直播红包雨怎么玩 编辑:程序博客网 时间:2024/05/21 19:13

js中的页面跳转和显示


function searchForm(thisForm, width, height) {

    var str = "";

    var winProperty= "dialogWidth:" + width + "px;dialogHeight:" + height + "px;status:no;help:no;resizable=no;scrollbars=no";
    var url ="URL" +str +"";
    var eurl = escape(url);
    var title = "&popupTitle=(信息查询)"
    var returnTarget = showModalDialog("(要显示页面的URL)" + eurl + title, window, popupWinProperty);

    if (typeof (returnTarget) == "undefined") {
        return false;
    }

    //将查询画面的查询条件返回父画面
    document.getElementById("(记录数据)").value = returnTarget[0];

    cleradioBoxSituationStr();
    showLoadingDialog();

    return true;
}

 

//清除状态
function situationState() {
    window.parent.document.getElementById("title").contentWindow.document.getElementById("situationState").value = "";
}

 

/*
* 显示等待页面,遮盖当前页面操作
*/

function showLoadingDialog() {
    var mainDocument = top.document;
    var divLoadFrame = mainDocument.getElementById("divLoadFrame");
    var LodaingFrame = mainDocument.getElementById("LodaingFrame");
    if (divLoadFrame != null) {
        divLoadFrame.style.width = mainDocument.body.clientWidth;
        divLoadFrame.style.height = mainDocument.body.clientHeight;
        divLoadFrame.style.display = "block";
    }
}

原创粉丝点击