📄 oa_popup2.js
字号:
+ "status=0,"
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "screenx=" + xposition + "," //仅适用于Netscape
+ "screeny=" + yposition + "," //仅适用于Netscape
+ "left=" + xposition + "," //IE
+ "top=" + yposition; //IE
window.open( url,winName,theproperty );
}
//-->
//弹出最大化窗口
function WinPopFull(sURL){
var iWidth = 0 ;
var iHeight = 0 ;
iWidth=window.screen.availWidth-10;
iHeight=window.screen.availHeight-50;
var szFeatures = "" ;
szFeatures = "resizabl=yes,status=yes,toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,resizable=no,width=" + iWidth*1 + ",height=" + iHeight*1 + ",top=0,left=0"
window.open(sURL,"",szFeatures);
} ;
//弹出全屏窗口
function WinPopFull1(sURL){
var szFeatures = "" ;
szFeatures = "fullscreen,status=no,toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,resizable=no,top=0,left=0"
window.open(sURL,"",szFeatures);
} ;
//链接
function link(url){
window.location.href=url;
}
//弹出模式窗口
function pop_show(sUrl,winName, iwidth, iheight)
{
sFeatures = "dialogWidth:"+iwidth+"px;dialogHeight:"+iheight+"px; certer: no; help:no; resizable: no; tustatus: no;status:no;";
window.showModalDialog(sUrl,winName,sFeatures);
}
//leftmenu左边菜单
function mOvr(src,clrOver) {
if (!src.contains(event.fromElement)) {
src.style.cursor = 'hand';
src.className = clrOver;
}
}
function mOut(src,clrIn) {
if (!src.contains(event.toElement)) {
src.style.cursor = 'default';
src.className = clrIn;
}
}
function mClk(src) {
if(event.srcElement.tagName=='TD'){
src.children.tags('A')[0].click();
}
}
//查看照片信息,窗口随照片大小而变化照片
function autoResize(src)
{
function resizeOpenWin()
{
var srcElem = event.srcElement
if (document.resized) return
window.setTimeout(function ()
{
window.resizeBy(srcElem.width-100, srcElem.height-100)
},1)
document.resized = true
}
var srcElem = event.srcElement
var newbody = "<title>照片信息</title><body style='margin:0px'><script>"+resizeOpenWin.toString()+"</"+"script><img src='"+src+"' onreadystatechange='resizeOpenWin()'></body>"
var newwin = window.open("","","width=100,height=100,left="+(screen.width-srcElem.width-100)/2+",top="+(screen.height-srcElem.height-300)/2);
newwin.document.write(newbody)
newwin.document.close()
}
////-----MSG
function DE_MSG()
{
xposition=0; yposition=0;
if ((parseInt(navigator.appVersion) >= 4 ))
{
xposition = (screen.width-((screen.width - 150) / 2));
yposition = (screen.height - 540) / 2;
}
theproperty= "width=311,"
+ "height=476,"
+ "location=0,"
+ "menubar=0,"
+ "resizable=0,"
+ "scrollbars=0,"
+ "status=0,"
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "left=" + xposition + "," //IE
+ "top=" + yposition; //IE
MsgWin=open( '../../module/webcall/jsp1/DEQQ_Chat.htm', 'DE_MSG',theproperty );
//DE_MSG.window.focus();
}
function closecMsg() {
MsgWin.close();}
//窗口隐藏内容
function h_s_con(el)
{
var Obj = eval("el" + el + "Child")
var whichEl = (event) ? event.srcElement : false
if(!whichEl.name) whichEl = eval("document.all.img" + el)
if(Obj.style.display == "none")
{
Obj.style.display = "block"
window.focus()
}
}
//新增2004.5.20(弹出公文模块浏览修改)
//弹出居中窗口(非模式窗口)
function WinPopDoc(url, winName) //scrollbar为是否有滚动条,yes值为1,no值为0;//resizable是否可以最大化,yes为1,no为0;
/*function winPop(url, winName, width, height) */
{
var iWidth = 0 ;
var iHeight = 0 ;
iWidth=window.screen.availWidth-300;
iHeight=window.screen.availHeight-50;
xposition=0;
yposition=0;
if ((parseInt(navigator.appVersion) >= 4 ))
{
xposition = (screen.width-10 - iWidth) / 2;
yposition = (screen.height-30 - iHeight) / 2;
}
theproperty= "width=" + iWidth + ","
+ "height=" + iHeight + ","
+ "location=0,"
+ "menubar=0,"
+ "resizable=1"//是否可以最大化,yes为1,no为0;
+ "scrollbars=1,"
/*+ "scrollbars=0,"*///是否有滚动条,yes值为1,no值为0,
+ "status=1,"
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "screenx=" + xposition + "," //仅适用于Netscape
+ "screeny=" + yposition + "," //仅适用于Netscape
+ "left=" + xposition + "," //IE
+ "top=0"//IE
window.open( url,winName,theproperty );
}
//2005-04-18
function indexpop(sURL)
{
/*模式窗口
var screenwidth=screen.width-160;
var screenheight=screen.height-109;
window.showModalDialog(sURL,self, 'dialogHeight: '+screenheight+'px; dialogWidth: '+screenwidth+'px;dialogTop: 55;dialogLeft: 155;center: yes; status=no;help:no;');
*/
var iWidth = 0 ;
var iHeight = 0 ;
iWidth=window.screen.availWidth-165;
iHeight=window.screen.availHeight-105;
xposition=0;
yposition=0;
if ((parseInt(navigator.appVersion) >= 4 ))
{
xposition = (screen.width-10 - iWidth) / 2;
yposition = (screen.height-30 - iHeight) / 2;
}
theproperty= "width=" + iWidth + ","
+ "height=" + iHeight + ","
+ "location=0,"
+ "menubar=0,"
+ "resizable=1"//是否可以最大化,yes为1,no为0;
+ "scrollbars=0,"
/*+ "scrollbars=0,"*///是否有滚动条,yes值为1,no值为0,
+ "status=1,"
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "screenx=" + xposition + "," //仅适用于Netscape
+ "screeny=" + yposition + "," //仅适用于Netscape
+ "left=155," //IE
+ "top=55"//IE
window.open(sURL,'',theproperty);
}
function indexpopfull(sURL)
{
/*模式窗口
var screenwidth=screen.width-0;
var screenheight=screen.height-109;
window.showModalDialog(sURL,self, 'dialogHeight: '+screenheight+'px; dialogWidth: '+screenwidth+'px;dialogTop: 55;dialogLeft: 10;center:yes;help:no; resizable:no; tustatus:no; status:no;');
*/
var iWidth = 0 ;
var iHeight = 0 ;
iWidth=window.screen.availWidth-10;
iHeight=window.screen.availHeight-105;
xposition=0;
yposition=0;
if ((parseInt(navigator.appVersion) >= 4 ))
{
xposition = (screen.width-10 - iWidth) / 2;
yposition = (screen.height-30 - iHeight) / 2;
}
theproperty= "width=" + iWidth + ","
+ "height=" + iHeight + ","
+ "location=0,"
+ "menubar=0,"
+ "resizable=1"//是否可以最大化,yes为1,no为0;
+ "scrollbars=0,"
/*+ "scrollbars=0,"*///是否有滚动条,yes值为1,no值为0,
+ "status=1,"
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "screenx=" + xposition + "," //仅适用于Netscape
+ "screeny=" + yposition + "," //仅适用于Netscape
+ "left=0," //IE
+ "top=55"//IE
window.open(sURL,'',theproperty);
}
//公文书签脚本2005-10-7
function synchTab(frameName) {
var elList, i;
// Exit if no frame name was given.
if (frameName == null)
return;
// Check all links.
elList = document.getElementsByTagName("A");
for (i = 0; i < elList.length; i++)
// Check if the link's target matches the frame being loaded.
if (elList[i].target == frameName) {
// If the link's URL matches the page being loaded, activate it.
// Otherwise, make sure the tab is deactivated.
if (elList[i].href == window.frames[frameName].location.href) {
elList[i].className += " activeTab";
elList[i].blur();
}
else
removeName(elList[i], "activeTab");
}
}
function removeName(el, name) {
var i, curList, newList;
if (el.className == null)
return;
// Remove the given class name from the element's className property.
newList = new Array();
curList = el.className.split(" ");
for (i = 0; i < curList.length; i++)
if (curList[i] != name)
newList.push(curList[i]);
el.className = newList.join(" ");
}
if (window.parent && window.parent.synchTab)
window.parent.synchTab(window.name);
//收文模式窗口
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -