脚本语言的应用
来源:互联网 发布:免费制作淘宝logo软件 编辑:程序博客网 时间:2024/05/16 04:47
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+"");
}
}
- 脚本语言的应用
- Hadoop的脚本语言Pig应用
- Windows 桌面应用脚本语言的选择
- 脚本语言的分类和应用(Lua)
- L脚本语言的表对象应用
- 2、Lua脚本语言的简单应用
- 有关Lua脚本语言应用
- ASP脚本语言的19个基本技巧应用
- 网页中的基本脚本语言应用
- 领域知识--脚本,脚本语言,常见的脚本语言,脚本语言分类
- 脚本语言的定义。
- 脚本语言的概述
- 无效的默认脚本语言
- 常用的脚本语言
- 脚本语言的选择
- InstallShield脚本语言的编写
- 常用的脚本语言
- 我的脚本语言观
- 十进制转换成二进制(如8转成1000)
- 工作组近期计划
- 模块化编程与模块化编辑器的设想
- 企业应用程序客户端的选择
- 大类和长方法
- 脚本语言的应用
- 【转】车东:Java正则表达式详解
- 苏格拉底与失恋者的对话
- DataGrid中单元格的比较
- Understanding the Word Object Model from a .NET Developer's Perspective
- 找工作了
- 看什么都很简单的人,很难长进
- day day up!
- 语丝