DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> JavaScript入門知識 >> 關於JavaScript >> js彈出對話框函數
js彈出對話框函數
編輯:關於JavaScript     
function OpenWin( sURL , sFeatures )
{
window.open( sURL , null , sFeatures , null)
//window.open("keleyi_com.htm",null,"height=200,width=400,status=yes,toolbar=no,menubar=no,location=no");
//window.open( [sURL] [, sName] [, sFeatures] [, bReplace])
//sName{_blank; _media; _parent; _search; _self; _top}
//sFeatures{channelmode; directories; fullscreen; height; left; location; menubar; resizable; scrollbars; status; titlebar; toolbar; top; width}
}

function ShowWin( sURL , sFeatures )
{
if(sFeatures == null || sFeatures == ""){
sFeatures = 'dialogHeight:300px;dialogWidth:850px;status:no;scroll:yes;resizable:yes;help:no;center:yes;';
}

var returnValue= window.showModalDialog( sURL , null , sFeatures)
//window.showModalDialog("keleyi_com.htm",null,"dialogHeight:591px;dialogWidth:650px;")
//window.showModalDialog([sURL] [, vArguments] [, sFeatures])
//sFeatures{dialogHeight; dialogLeft; dialogTop; dialogWidth; center; dialogHide; edge; help; resizable; scroll; status; unadorned}
if(returnValue != undefined)
{
return returnValue;
}
else
{
return "";
}
}
XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved