久久国产成人av_抖音国产毛片_a片网站免费观看_A片无码播放手机在线观看,色五月在线观看,亚洲精品m在线观看,女人自慰的免费网址,悠悠在线观看精品视频,一级日本片免费的,亚洲精品久,国产精品成人久久久久久久

分享

彈出窗口大全(js)

 IPQ 2008-12-07

/JAVASCRIPT實(shí)現(xiàn)===============================================================
//
//
  代碼描述:打開一個(gè)新的沒有狀態(tài)欄,、工具欄、菜單欄,、定位欄,,
//
            不能改變大小,且位置居中的新窗口
//
  
//
  傳入?yún)?shù):pageURL - 傳遞鏈接
//
            innerWidth - 傳遞需要打開新窗口的寬度
//
            innerHeight - 傳遞需要打開新窗口的高度
//
  
//
  返回參數(shù):無
//
//
//
==========================================================================

    private void openWindow(string mode)
    {
        string script = "<script type=\"text/javascript\">";
        script += @"var height = (screen.availHeight - 530)/2;";
        script += @"var width = (screen.availWidth - 600)/2;";
        script += @"var win = window.open('BC1002.aspx?mode=" + mode + @"','mode','height=520px,width=600px,status=yes,toolbar=no,menubar=no,location=no,top='+ height + ',left=' + width);
                    win.focus();</script>";
        ClientScript.RegisterClientScriptBlock(this.GetType(), "key", script);
    }

 

//==========================================================================
//
//
  代碼描述:打開一個(gè)新的有狀態(tài)欄,、工具欄,、菜單欄、定位欄,,
//
            可以改變大小,,且位置居中的新窗口
//
  
//
  傳入?yún)?shù):pageURL - 傳遞鏈接
//
            innerWidth - 傳遞需要打開新窗口的寬度
//
            innerHeight - 傳遞需要打開新窗口的高度
//
  
//
  返回參數(shù):無
//
//
//
==========================================================================
function g_OpenSizeWindow(pageURL, innerWidth, innerHeight)
{    
    
var ScreenWidth = screen.availWidth
    
var ScreenHeight = screen.availHeight
    
var StartX = (ScreenWidth - innerWidth) / 2
    
var StartY = (ScreenHeight - innerHeight) / 2
    window.open(pageURL, '', 'left
='+ StartX + ', top='+ StartY + ', Width=+ innerWidth +', height=+ innerHeight + ', resizable=yes, scrollbars=yes, status=yes, toolbar=yes, menubar=yes, location=no')

}

//==========================================================================
//
//
  代碼描述:打開一個(gè)新的沒有狀態(tài)欄、工具欄,、菜單欄,、定位欄,
//
            不能改變大小,,且位置居中的新窗口
//
  
//
  傳入?yún)?shù):pageURL - 傳遞鏈接
//
            innerWidth - 傳遞需要打開新窗口的寬度
//
            innerHeight - 傳遞需要打開新窗口的高度
//
  
//
  返回參數(shù):無
//
//
//
==========================================================================
function g_OpenWindow(pageURL, innerWidth, innerHeight)
{    
    
var ScreenWidth = screen.availWidth
    
var ScreenHeight = screen.availHeight
    
var StartX = (ScreenWidth - innerWidth) / 2
    
var StartY = (ScreenHeight - innerHeight) / 2
    window.open(pageURL, '', 'left
='+ StartX + ', top='+ StartY + ', Width=+ innerWidth +', height=+ innerHeight + ', resizable=no, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no')
}


//==========================================================================
//
//
  代碼描述:打開一個(gè)新的沒有狀態(tài)欄,、工具欄、菜單欄,、定位欄,,
//
            不能改變大小,且位置居中的新窗口
//
       
//
  
//
  傳入?yún)?shù):pageURL - 傳遞鏈接
//
            innerWidth - 傳遞需要打開新窗口的寬度
//
            innerHeight - 傳遞需要打開新窗口的高度
//
  
//
  返回參數(shù):返回的數(shù)值
//
//
//
==========================================================================
function g_OpenReturnWindow(pageURL, innerWidth, innerHeight)
{    
    
var ScreenWidth = screen.availWidth
    
var ScreenHeight = screen.availHeight
    
var StartX = (ScreenWidth - innerWidth) / 2
    
var StartY = (ScreenHeight - innerHeight) / 2
    window.open(pageURL, '', 'left
='+ StartX + ', top='+ StartY + ', Width=+ innerWidth +', height=+ innerHeight + ', resizable=no, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no')
    
return false
}


function g_OpenReturnWindowNoScrollbars(pageURL, innerWidth, innerHeight)
{    
    
var ScreenWidth = screen.availWidth
    
var ScreenHeight = screen.availHeight
    
var StartX = (ScreenWidth - innerWidth) / 2
    
var StartY = (ScreenHeight - innerHeight) / 2
    window.open(pageURL, '', 'left
='+ StartX + ', top='+ StartY + ', Width=+ innerWidth +', height=+ innerHeight + ', resizable=no, scrollbars=no, status=no, toolbar=no, menubar=no, location=no')
    
//return false
}



//==========================================================================
//
//
  代碼描述:打開一個(gè)新的沒有狀態(tài)欄,、工具欄,、菜單欄、定位欄,,
//
            不能改變大小,,且位置居中的新窗口
//
  
//
  傳入?yún)?shù):pageURL - 傳遞鏈接
//
  
//
  返回參數(shù):無
//
//
//
==========================================================================
function g_OpenReturnWindowPrint(pageURL)
{    
    
var ScreenWidth = screen.availWidth
    
var ScreenHeight = screen.availHeight
    
//var StartX = (ScreenWidth - innerWidth) / 2
    //var StartY = (ScreenHeight - innerHeight) / 2
    var Win = window.open(pageURL, '','Width=+ ScreenWidth +', height=+ ScreenHeight + ', resizable=no, scrollbars=no, status=no, toolbar=no, menubar=no, location=no, left=0, top=0')
    Win.moveTo(
99999,99999)    
    
return false
}




//==========================================================================================
//
//
 代碼描述:打開模式窗口函數(shù),打開一個(gè)模式窗口不包含菜單,、狀態(tài)條,、工具條、定位欄
//
//
 傳入?yún)?shù):pageURL - 傳遞鏈接
//
            innerWidth - 傳遞需要打開新窗口的寬度
//
            innerHeight - 傳遞需要打開新窗口的高度
//
 返回參數(shù):無
//
//
//
==========================================================================================
function g_OpenModalWindow(pageURL, innerWidth, innerHeight)
{
    window.showModalDialog(pageURL, 
null, 'dialogWidth:' + innerWidth + 'px;dialogHeight:' + innerHeight + 'px;help:no;unadorned:no;resizable:no;status:no')
}


//==========================================================================================
//
//
 代碼描述:打開模式窗口函數(shù),,打開一個(gè)模式窗口不包含菜單,、狀態(tài)條、工具條,、定位欄 ,并且返回值
//
//
 傳入?yún)?shù):pageURL - 傳遞鏈接
//
            innerWidth - 傳遞需要打開新窗口的寬度
//
            innerHeight - 傳遞需要打開新窗口的高度
//
 返回參數(shù):模式窗體返回的returnValue
//
//
//
==========================================================================================
function g_OpenreturnWindow(pageURL, innerWidth, innerHeight)
{
    
var returnv;
    returnv
=window.showModalDialog(pageURL, null, 'dialogWidth:' + innerWidth + 'px;dialogHeight:' + innerHeight + 'px;help:no;unadorned:no;resizable:no;status:no')
    
return returnv;
}


//==========================================================================================
//
//
 代碼描述:打開模式窗口函數(shù),,打開一個(gè)模式窗口不包含菜單、狀態(tài)條、工具條,、定位欄
//
//
 傳入?yún)?shù):pageURL - 傳遞鏈接
//
            innerWidth - 傳遞需要打開新窗口的寬度
//
            innerHeight - 傳遞需要打開新窗口的高度
//
 返回參數(shù):無
//
//
//
==========================================================================================
function g_OpenReturnModalWindow(pageURL, innerWidth, innerHeight)
{
    window.showModalDialog(pageURL, 
null, 'dialogWidth:' + innerWidth + 'px;dialogHeight:' + innerHeight + 'px;help:no;unadorned:no;resizable:no;status:no');
    
return false;
}



//==========================================================================================
//
//
 代碼描述:關(guān)閉窗口
//
//
 傳入?yún)?shù):無
//
//
 返回參數(shù):無
//
//
//
==========================================================================================
function g_CloseWindow()
{
    window.close()
    
return false
}

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn),。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式,、誘導(dǎo)購(gòu)買等信息,謹(jǐn)防詐騙,。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章 更多