📄 top.js.vm
字号:
<SCRIPT LANGUAGE="JavaScript">
<!--
/**
*重新载入leftFrame
*/
function onloadLeftFrame()
{
if(top.getCookie("needHiddenLeftFrameCookie")=="yes")
{
if(top.getCookie("hiddenLeftFrameCookie")=="1")
{
top.childFrameSet.cols="0,*";
top.setCookie("hiddenLeftFrameCookie","1");
hiddenLeftFrameButton.title = "show left frame";
needHiddenLeftFrameFlag = false;
}
else
{
top.childFrameSet.cols="180,*";
top.setCookie("hiddenLeftFrameCookie","0");
hiddenLeftFrameButton.title = "hiddden left frame";
needHiddenLeftFrameFlag = true;
}
}
}
/**
*隐藏/显示leftFrame
*/
function hiddenLeftFrame()
{
if(top.getCookie("needHiddenLeftFrameCookie")=="yes")
{
if(needHiddenLeftFrameFlag==true)
{
top.childFrameSet.cols="0,*";
top.setCookie("hiddenLeftFrameCookie","1");
hiddenLeftFrameButton.title = "show left frame";
needHiddenLeftFrameFlag = false;
}
else
{
top.childFrameSet.cols="180,*";
top.setCookie("hiddenLeftFrameCookie","0");
hiddenLeftFrameButton.title = "hiddden left frame";
needHiddenLeftFrameFlag = true;
}
}
}
/**
*显示时间
function showTime()
{
window.setTimeout( "showTime()", 1000 );
var today = new Date();
var timeArea = document.getElementById("timeArea");
timeArea.innerText = today.toLocaleString();
}
*/
/**
*onMouseOver的导航效果
*/
function navOver(obj,id)
{
if(obj)
{
obj.style.borderColor="#FFFFFF #000000 #000000 #FFFFFF";
obj.style.backgroundColor="$!color.get(1)";
}
}
/**
*onMouseOut的导航效果
*/
function navOut(obj,id)
{
if(!(top.getCookie("navId"))||(top.getCookie("navId")!=id)&&(obj))
{
obj.style.borderColor="#FFFFFF #FFFFFF #FFFFFF #FFFFFF";
obj.style.backgroundColor="$!color.get(1)";
}
else if((top.getCookie("navId"))&&(top.getCookie("navId")==id))
{
obj.style.borderColor="#000000 #FFFFFF #FFFFFF #000000";
obj.style.backgroundColor="$!color.get(2)";
}
}
/**
*onClick的导航效果,并进行导航
*/
function navClick(obj,id)
{
if(obj)
{
nav_Url = eval(id+"_Url");
if(nav_Url[2]!="common")
{
obj.style.borderColor="#000000 #FFFFFF #FFFFFF #000000";
obj.style.backgroundColor="$!color.get(2)";
}
}
if((id)&&(top.getCookie("navId"))&&(top.getCookie("navId")!=""))
{
nav = document.getElementById(top.getCookie("navId"));
nav_Url = eval(top.getCookie("navId")+"_Url");
if((nav)&&(nav_Url))
{
if(nav_Url[2]!="common")
navOut(nav,id);
}
nav_Url = eval(id+"_Url");
openUrl(nav_Url[0],nav_Url[1],nav_Url[3]);
top.setCookie("navId",id);
}
}
/**
*导航
*/
function openUrl(leftUrl,mainUrl,hiddenLeftFrame)
{
if((hiddenLeftFrame)&&(hiddenLeftFrame=="hidden"))
{
top.childFrameSet.cols="0,*";
top.setCookie("needHiddenLeftFrameCookie","no");
hiddenLeftFrameButton.innerHTML=" ";
hiddenLeftFrameButton.style.cursor="";
}
else
{
top.childFrameSet.cols="180,*";
top.setCookie("needHiddenLeftFrameCookie","yes");
hiddenLeftFrameButton.innerHTML="<img src='$img/stat-change.gif' width='20' height='20'>";
hiddenLeftFrameButton.style.cursor="hand";
}
if((leftUrl)&&(leftUrl!=""))
{
if(top)
{
if(top.leftFrame && top.leftFrame.document)
top.showLoadPage(top.leftFrame.document);
top.leftFrame.location.href=leftUrl;
}
}
if((mainUrl)&&(mainUrl!=""))
{
if(top)
{
if(top.mainFrame && top.mainFrame.document)
top.showLoadPage(top.mainFrame.document);
top.mainFrame.location.href=mainUrl;
}
}
}
/**
*切换导航页
*/
function changeNavPage(obj,id)
{
if((obj)&&(id)&&(top.getCookie("navButtonId"))&&(top.getCookie("navButtonId")!=id))
{
navButton = document.getElementById(top.getCookie("navButtonId"));
navButton_Page = eval(top.getCookie("navButtonId")+"_Page");
if((navButton)&&(navButton_Page))
{
navButton.background=navBgImg1;
navButton.bgColor="";
navButton.style.color=navColor1;
navButton_Page.style.display="none";
navButton.style.filter="glow(color=white,strength=2)";
}
navButton_Page = eval(id+"_Page");
obj.background=navBgImg2;
obj.bgColor=navBgColor;
obj.style.color=navColor2;
obj.style.filter="glow(color=white,strength=2)";
navButton_Page.style.display="";
navButton_navId = eval(id+"_navId");
navClick(document.getElementById(navButton_navId),navButton_navId);
top.setCookie("navButtonId",id);
}
}
function maxwin()
{
top.parentFrameSet.rows = "104,*,25,0,0";
topPage.style.display = "";
top.setCookie("maxWinCookie","no");
}
function minwin()
{
top.parentFrameSet.rows = "32,*,0,0,0";
topPage.style.display = "none";
top.setCookie("maxWinCookie","yes");
}
function changeWin()
{
if(top.getCookie("maxWinCookie")=="yes")
maxwin();
else
minwin();
}
function showDiv()
{
if(top.getCookie("maxWinCookie")=="yes")
{
scrollertop=6;
clearTimeout(showClearTime);
clearTimeout(timer);
initiate();
}
else
{
scrollertop=77;
clearTimeout(showClearTime);
clearTimeout(timer);
initiate();
}
}
function initiate()
{
if(message[i_message]!="showTime")
{
contenttext="<table cellpadding=4 cellspacing=0 border=0 width="+copyzonewidth+">"
contenttext+="<tr valign='top'>"
contenttext+="<td width=100% height='"+scrollerheight+"' bgcolor='"+textbg+"'>"
contenttext+="<font color='"+copyzonebg+"'>"+message[i_message]+"</font>"
contenttext+="</td></tr>"
contenttext+="</table>"
}
else
{
contenttext="";
}
contentbg="<table width="+bg_width+" height='"+bg_height+"' cellpadding=0 cellspacing=0 border='"+scrollerborder+"'><tr><td bgcolor='"+scrollbg+"'> </td></tr></table>"
if (document.all)
{
if(contenttext)
{
clearTimeout(showClearTime);
scrollertext.innerHTML=contenttext;
}
else
{
showTime();
}
scrollerbg.innerHTML=contentbg;
document.all.scrollertext.style.posTop=scrollertop+scrollerheight
document.all.scrollertext.style.posLeft=scrollerleft
document.all.scrollerbg.style.posTop=scrollertop-scrollerborder
document.all.scrollerbg.style.posLeft=scrollerleft-scrollerborder
document.all.scrollertext.style.clip="rect("+cliptop+" "+copyzonewidth+" "+clipbottom+" "+clipleft+")"
scrollin()
}
if (document.layers)
{
if(contenttext)
{
document.scrollertext.document.write(contenttext);
document.scrollertext.document.close();
}
else
{
//document.scrollertext.document.write("bbb");
//document.scrollertext.document.close();
}
document.scrollerbg.document.write(contentbg)
document.scrollerbg.document.close()
document.scrollertext.top=scrollertop+scrollerheight
document.scrollertext.left=scrollerleft
document.scrollerbg.top=scrollertop-scrollerborder
document.scrollerbg.left=scrollerleft-scrollerborder
document.scrollertext.clip.left=clipleft
document.scrollertext.clip.right=copyzonewidth
document.scrollertext.clip.top=cliptop
document.scrollertext.clip.bottom=clipbottom
scrollin()
}
}
function scrollin()
{
if (document.all)
{
if (document.all.scrollertext.style.posTop>scrollertop)
{
clipbottom+=step;
document.all.scrollertext.style.clip="rect("+cliptop+" "+copyzonewidth+" "+clipbottom+" "+clipleft+")";
document.all.scrollertext.style.posTop-=step;
timer=setTimeout("scrollin()",pause);
}
else
{
clearTimeout(timer);
timer=setTimeout("scrollout()",standstill)
}
}
if (document.layers)
{
if (document.scrollertext.top>scrollertop)
{
clipbottom+=step
document.scrollertext.clip.left=clipleft
document.scrollertext.clip.right=copyzonewidth
document.scrollertext.clip.top=cliptop
document.scrollertext.clip.bottom=clipbottom
document.scrollertext.top-=step
timer=setTimeout("scrollin()",pause)
}
else
{
clearTimeout(timer)
timer=setTimeout("scrollout()",standstill)
}
}
}
function scrollout()
{
if (document.all)
{
if (document.all.scrollertext.style.posTop>(scrollertop-scrollerheight))
{
cliptop+=step
document.all.scrollertext.style.clip="rect("+cliptop+" "+copyzonewidth+" "+clipbottom+" "+clipleft+")"
document.all.scrollertext.style.posTop-=step
timer=setTimeout("scrollout()",pause)
}
else
{
clearTimeout(timer)
changemessage()
}
}
if (document.layers)
{
if (document.scrollertext.top>(scrollertop-scrollerheight))
{
cliptop+=step
document.scrollertext.clip.left=clipleft
document.scrollertext.clip.right=copyzonewidth
document.scrollertext.clip.top=cliptop
document.scrollertext.clip.bottom=clipbottom
document.scrollertext.top-=step
timer=setTimeout("scrollout()",pause)
}
else
{
clearTimeout(timer)
changemessage()
}
}
}
function changemessage()
{
i_message++
if (i_message>message.length-1)
i_message=0
cliptop=0
clipbottom=0
if(message[i_message]!="showTime")
{
contenttext="<table cellpadding=4 cellspacing=0 border=0 width="+copyzonewidth+">"
contenttext+="<tr valign='top'>"
contenttext+="<td width=100% height='"+scrollerheight+"' bgcolor='"+textbg+"'>"
contenttext+="<font color='"+copyzonebg+"'>"+message[i_message]+"</font>"
contenttext+="</td></tr>"
contenttext+="</table>"
contentbg="<table width="+bg_width+" height='"+bg_height+"' cellpadding=0 cellspacing=0 border='"+scrollerborder+"'><tr><td bgcolor='"+scrollbg+"'> </td></tr></table>"
}
else
{
contenttext="";
}
if (document.all)
{
if(contenttext)
{
clearTimeout(showClearTime);
scrollertext.innerHTML=contenttext;
}
else
{
showTime();
}
document.all.scrollertext.style.posTop=scrollertop+scrollerheight
document.all.scrollertext.style.posLeft=scrollerleft
document.all.scrollertext.style.clip="rect("+cliptop+" "+copyzonewidth+" "+clipbottom+" "+clipleft+")"
scrollin()
}
if (document.layers)
{
if(contenttext)
{
document.scrollertext.document.write(contenttext);
document.scrollertext.document.close();
}
else
{
//document.scrollertext.document.write("bbb");
//document.scrollertext.document.close();
}
document.scrollertext.top=scrollertop+scrollerheight;
document.scrollertext.left=scrollerleft;
document.scrollertext.clip.left=clipleft;
document.scrollertext.clip.right=copyzonewidth;
document.scrollertext.clip.top=cliptop;
document.scrollertext.clip.bottom=clipbottom;
scrollin()
}
}
function showTime()
{
showClearTime=window.setTimeout( "showTime()", 1000 );
var today = new Date();
contenttext="<table cellpadding=4 cellspacing=0 border=0 width="+copyzonewidth+">"
contenttext+="<tr valign='top'>"
contenttext+="<td width=100% height='"+scrollerheight+"' bgcolor='"+textbg+"'>"
contenttext+="<font color='"+copyzonebg+"'>"+today.toLocaleString()+"</font>"
contenttext+="</td></tr>"
contenttext+="</table>"
contentbg="<table width="+bg_width+" height='"+bg_height+"' cellpadding=0 cellspacing=0 border='"+scrollerborder+"'><tr><td bgcolor='"+scrollbg+"'> </td></tr></table>"
scrollertext.innerHTML=contenttext
}
//-->
</SCRIPT>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -