人人做人人澡人人爽欧美,国产主播一区二区,久久久精品五月天,羞羞视频在线观看免费

當前位置:蘿卜系統下載站 > 技術開發教程 > 詳細頁面

腳本語言的應用

腳本語言的應用

更新時間:2020-12-13 文章作者:未知 信息來源:網絡 閱讀次數:


var newWin = null;

function NewWin(url,name,xpos,ypos,width,height)
{
newWin=window.open(
url,
name,
"screenX="+xpos+",screenY="+ypos+",WIDTH="+width+",HEIGHT="+height+
",location=0,resizable=1,status=no,titlebar=1,directories=0,toolbar=0,menubar=0,scrollbars=1,status=0"
);
// newWin.moveTo(xpos, ypos);
newWin.focus();
}



function NewFullScreenWin(url, name)
{
newWin = window.open(url,name,'status=no,toolbar=no,menubar=no,location=no,channelmode=no,directories=no,resizable=yes,scrollbars=yes')
//newWin.moveTo(0,0);
//newWin.resizeTo(screen.width,screen.height-25);
newWin.focus();
}

function NewTalkWin(url, name, width, height)
{
newWin = window.open(
url,
name,
'status=no,toolbar=no,menubar=no,location=no,channelmode=no,directories=no,resizable=yes,scrollbars=1')
newWin.moveTo(screen.width/2-width/2,screen.height/2-height/2);
newWin.resizeTo(width,height);
newWin.focus();
}


function AddDDlTextToTxt(ddlID,txtID)
{
if(document.all(ddlID).options[document.all(ddlID).selectedIndex].text!="請選擇...")
{
document.all(txtID).value=document.all(txtID).value+document.all(ddlID).options[document.all(ddlID).selectedIndex].text;
}
}

function MaxWin()
{
try
{
var b = top.screenLeft == 0;
var b = b && top.screen.availHeight - top.screenTop - top.body.offsetHeight - 20 == 0;
if(!b)
{
var str = '<object id=Max classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">'
str += '<param name="Command" value="Maximize"></object>';
document.body.insertAdjacentHTML("beforeEnd", str);
document.getElementById("Max").Click();
}
}
catch(e)
{
}
}

function CloseWin()
{
window.opener=null;
window.close();
}

function alertMsg(msg)
{
alert(msg);
}

function WaringMessage(msg, outputMeg)
{
var retval = window.confirm(msg);
if (retval)
{
CloseWin();
}
else
{
document.write(outputMeg);
}
}

function SetWinTitle(msg)
{
document.title = msg;
}

function selectAllCheckBox(foreclose)
{
for(var i=0;i<document.Form1.elements.length;i++)
{
var e = document.Form1.elements[i];

if(e.name!=foreclose)
e.checked = document.all[foreclose].checked;
}
}

function reloadPage(minute)
{
var timeSecond = minute * 1000 * 60
window.setTimeout("location.reload()", timeSecond);
}


var dftWidth=740;
var dftHeight=400;
function OpenWin(url,isDefalut)
{
var w=window.screen.width/2-(dftWidth/2);
var t=window.screen.height/2-(dftHeight/2)-35;
if(isDefalut==true)
{
window.open(url,"","scrollbars=yes toolbar=no,status=1,resizable=yes,directories=no,menubar=no,top="+t+",left="+w+",width="+dftWidth+",height="+dftHeight+"");
}
else
{
var winwidth=window.screen.width-10;
var winheight=window.screen.height-20;
window.open(url,"","scrollbars=yes toolbar=no,status=1,resizable=yes,directories=no,menubar=no,top=0,left=0,width="+winwidth+",height="+winheight+"");
}
}
(出處:Viphot)

溫馨提示:喜歡本站的話,請收藏一下本站!

本類教程下載

系統下載排行

網站地圖xml | 網站地圖html
主站蜘蛛池模板: 伽师县| 肇东市| 麻江县| 沅江市| 莱芜市| 城步| 花莲县| 合作市| 赤水市| 永善县| 当阳市| 滨海县| 景宁| 松阳县| 云和县| 平江县| 平阴县| 专栏| 乐安县| 迁西县| 江门市| 印江| 铅山县| 莱州市| 吉安市| 叙永县| 滁州市| 政和县| 沂源县| 林州市| 琼海市| 曲水县| 镇远县| 峡江县| 舒兰市| 彩票| 怀宁县| 庆元县| 甘孜| 宝山区| 晋城|