📄 selectuser.js
字号:
var userAgent = navigator.userAgent.toLowerCase();
var is_opera = userAgent.indexOf('opera') != -1 && opera.version();
var is_moz = (navigator.product == 'Gecko') && userAgent.substr(userAgent.indexOf('firefox') + 8, 3);//是否是火狐
var is_ie = (userAgent.indexOf('msie') != -1 && !is_opera) && userAgent.substr(userAgent.indexOf('msie') + 5, 3);//是否是ie浏览器
function SelectUserSingle(TO_ID,TO_NAME)
{
var URL="SelectUserSingle.aspx";
loc_y=loc_x=200;
if(is_ie)
{
loc_x=document.body.scrollLeft+event.clientX-event.offsetX+270;
loc_y=document.body.scrollTop+event.clientY-event.offsetY-70;
}
LoadDialogWindow(URL,self,loc_x, loc_y, 400, 350);
}
function LoadDialogWindow(URL, parent, loc_x, loc_y, width, height)
{
if(is_ie)
window.showModalDialog(URL,parent,"edge:raised;scroll:1;status:0;help:0;resizable:1;dialogWidth:"+width+"px;dialogHeight:"+height+"px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px",true);
else
window.open(URL,parent,"height="+height+",width="+width+",status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+loc_y+",left="+loc_x+",resizable=yes,modal=yes,dependent=yes,dialog=yes,minimizable=no",true);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -