大雀软件园

首页 软件下载 安卓市场 苹果市场 电脑游戏 安卓游戏 文章资讯 驱动下载
技术开发 网页设计 图形图象 数据库 网络媒体 网络安全 站长CLUB 操作系统 媒体动画 安卓相关
当前位置: 首页 -> 技术开发 -> Script -> 脚本语言的应用

脚本语言的应用

时间: 2021-07-31 作者:daque

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)

热门阅览

最新排行

Copyright © 2019-2021 大雀软件园(www.daque.cn) All Rights Reserved.