?? 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 + -