📄 function.js
字号:
//----------------------------------------
var msg //定义一个字符串变量,输出表格
var blhidden //工具菜单是否显示
msg=" <TABLE cellSpacing=0 borderColorDark=#ffffff cellPadding=0 width='100%' borderColorLight=#000000 border=1>"
msg=msg+"<TBODY>"
msg=msg+"<TR>"
msg=msg+"<TD class=coolButton style='CURSOR: wait' onclick='' noWrap align=middle width=50%>"
msg=msg+"<IMG height=16 alt=查找在线和不在线的聊友 src='images/add.gif' width=16 border=0>"
msg=msg+"查找Q友"
msg=msg+" </TD>"
msg=msg+"</TR>"
msg=msg+" <TR>"
msg=msg+" <TD class=coolButton onclick='' noWrap align=middle width='50%'>"
msg=msg+"<a onclick=openScript('sendMsg.asp','370,200','')"
msg=msg+" title='给陌生人或不在线好友发送消息'>"
msg=msg+"<IMG alt='给陌生人或不在线好友发送消息' src='images/open.gif' border=0>"
msg=msg+"发送消息</a>"
msg=msg+" </TD>"
msg=msg+" </TR>"
msg=msg+"<TR>"
msg=msg+"<td class=coolButton onClick=openScript('myinfo.asp','470,360','') noWrap align=middle width='50%'>"
msg=msg+"<img alt=个人设置 src='images/system.gif' border=0>"
msg=msg+"个人设置 "
msg=msg+"</td>"
msg=msg+" </TR>"
msg=msg+" <TR>"
msg=msg+"<TD class=coolButton style='CURSOR: wait' onclick='' noWrap align=middle width='50%' rowspan=3>"
msg=msg+"<IMG height=15 alt=系统消息 src='images/topic1.gif' width=19 border=0>"
msg=msg+"系统消息 "
msg=msg+"</TD>"
msg=msg+"</TR>"
msg=msg+"</TBODY>"
msg=msg+"</TABLE>"
//输出表格的函数
function show_msg(){
document.write(msg)
}
//............
//-------------------------------------
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }
}
//----------------
function openScript(url, width, height ,isbars) {
window.open(url,"",'width=' + width + ',height=' + height + ',resizable=no,scrollbars='+ isbars + ',status=no,toolbar=no,menubar=no,location=no ');
}
//------------------------
function window_onresize() {
if(window.screen.width > 100){ //当窗口被拉宽时,恢复为默认窗口
window.resizeTo(100,500)
}
}
//------------------------------
function window_onload() {
window.moveTo(1,1)
window.resizeTo(100,500)
}
//----------------------------
function window_onunload() { //当窗口被刷新或关闭时,判断是否处理当前用户的在线状态
window.open ("switch.htm","","left=2000,top=-100, width=1,height=1")
}
//----------------------
function window_onblur() {
returnMsg()
}
//-------
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//------------
function changeMsg(){
//显示图层时,改变页面的框架尺寸
message.innerHTML ="<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>"
MM_showHideLayers('Layer1','','show')
}
//隐藏图层,显示表格
function returnMsg(){
MM_showHideLayers('Layer1','','hide')
message.innerHTML=msg
}
//--------------------
function reLogin(url){ //重新登陆
self.close()
window.open(url,'','location=no,width=260,height=180,left=100,top=100')
}
//***********************************************************
//公司介绍
var introduce_company
introduce_company="\n\n 坐标网络 "
introduce_company=introduce_company+"\n\n公司简介\n"
introduce_company=introduce_company+"长沙坐标网络信息有限公司是一家专门从事\n"
introduce_company=introduce_company+"计算机网络开发与维护;软硬件开发与维护\n"
introduce_company=introduce_company+"以及家教服务等为一体的新型公司。\n"
introduce_company=introduce_company+"公司本着“尽心做事,诚恳做人”的理念,\n"
introduce_company=introduce_company+"在短期内即获得了较大发展。\n"
introduce_company=introduce_company+"公司现有主要客户包括:中国人民保险公司湖南省分公司、\n"
introduce_company=introduce_company+"湖南省团省委下属机构——湖南省青联、\n"
introduce_company=introduce_company+"上海优通房地产经纪有限公司、广东清新伟华集团等。\n"
introduce_company=introduce_company+"\n公司业务\n"
introduce_company=introduce_company+"企业建站、电子商务、电子政务、E-OA、E-Mis\n"
introduce_company=introduce_company+"\n主要产品\n"
introduce_company=introduce_company+"17560电子商务网、17560内部人事管理系统、\n"
introduce_company=introduce_company+"17560房地产信息管理系统、17560产品销售系统等\n"
introduce_company=introduce_company+"\n最新推出\n 17560学校信息管理系统V1.0(已完成)\n"
introduce_company=introduce_company+"正在热销中,详情请访问http://www.17560.net\n"
introduce_company=introduce_company+"\n---------坐标期待与您合作!---------"
//----------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -