最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
脚本语言的应用
时间:2022-06-30 11:26:18 编辑:袖梨 来源:一聚教程网
var newWin = null;
function NewWin(url,name,xpos,ypos,width,height)
{
newWin=window.open(
url,
name,
"screenX="+xpos+",screenY="+ypos+",,,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 = '';
document.body.insertAdjacentHTML("beforeEnd", str);
document.getElementById("Max").Click();
}
function NewWin(url,name,xpos,ypos,width,height)
{
newWin=window.open(
url,
name,
"screenX="+xpos+",screenY="+ypos+",,,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 = '';
document.body.insertAdjacentHTML("beforeEnd", str);
document.getElementById("Max").Click();
}
相关文章
- 《彩色点点战争》推图常用三大主c玩法详解 01-23
- 《燕云十六声》池鱼林木任务攻略 01-23
- 《大连地铁e出行》查看行程记录方法 01-23
- 《明日方舟》2025春节限定干员余角色介绍 01-23
- 《崩坏:星穹铁道》万敌光锥搭配攻略 01-23
- 《燕云十六声》一药千金任务攻略 01-23