function fontZoom(size){ document.getElementById('NewsContentLabel').style.fontSize=size+'px' } function IframeTop(){ window.parent.window.scroll(0,140); } function TitleTop(){ window.parent.window.scroll(0,140); } function IframeHeight(iframeID){ var frm = document.getElementById(iframeID); var subWeb = document.frames ? document.frames[iframeID].document : frm.contentDocument; if(frm != null && subWeb != null){ frm.height = subWeb.body.scrollHeight+3; } } function TuneHeight(iframeID){ var frm = window.parent.document.getElementById(iframeID); var subWeb = window.parent.document.frames ? window.parent.document.frames[iframeID].document : frm.contentDocument; if(frm != null && subWeb != null){ frm.height =document.body.scrollHeight+3; } } var oldDIv="Div1"; function Div_switch(newDIv) { if(newDIv!=""){ if(document.getElementById(newDIv).style.display=="none") { if(oldDIv!="") { document.getElementById(oldDIv).style.display="none"; } oldDIv=newDIv; document.getElementById(newDIv).style.display=""; } else { if(oldDIv!="") oldDIv=newDIv; document.getElementById(newDIv).style.display=""; } } else{ if(oldDIv!="") { document.getElementById(oldDIv).style.display="none"; } } } function openwin(kheight,kwidth,kwords,kbody) { OpenWindow=window.open("", "newwin","height="+kheight+", width="+kwidth+",status=no,toolbar=no,scrollbars=yes,menubar=no"); //写成一行 OpenWindow.document.write("") OpenWindow.document.write(""+kwords+"") OpenWindow.document.write("") OpenWindow.document.write("
[") OpenWindow.document.write(kwords+"]
") OpenWindow.document.write(kbody) OpenWindow.document.write("
") OpenWindow.document.write("") OpenWindow.document.close() } function openwin1(url) { window.open("jxsp0.htm?url="+url, "_sp","height=320, width=360,toolbar=no,scrollbars=no,menubar=no"); } function openwin2(url) { window.open("../jxsp0.htm?url="+url, "_sp","height=320, width=360,toolbar=no,scrollbars=no,menubar=no"); } function getQueryString(queryStringName) { var returnValue=""; var URLString=new String(window.top.document.location); var serachLocation=-1; var queryStringLength=queryStringName.length; do { serachLocation=URLString.indexOf(queryStringName+"\="); if (serachLocation!=-1) { if ((URLString.charAt(serachLocation-1)=='?') || (URLString.charAt(serachLocation-1)=='&')) { URLString=URLString.substr(serachLocation); break; } URLString=URLString.substr(serachLocation+queryStringLength+1); } } while (serachLocation!=-1) if (serachLocation!=-1) { var seperatorLocation=URLString.indexOf("&"); if (seperatorLocation==-1) { returnValue=URLString.substr(queryStringLength+1); } else { returnValue=URLString.substring(queryStringLength+1,seperatorLocation); } } return returnValue; } function Playflv() { document.getElementById("Player").url ="s_vidio/"+getQueryString("url"); } //层的显示隐藏操作 function course_hide(){ title1.style.display="none"; title2.style.display="none"; title3.style.display="none"; title4.style.display="none"; title5.style.display="none"; title6.style.display="none"; content1.style.display="none"; content2.style.display="none"; content3.style.display="none"; content4.style.display="none"; content5.style.display="none"; content6.style.display="none"; } function show(top){ if (top.style.display=="none") top.style.display="" else top.style.display="none" } function hide(top){ top.style.display="none" } function showall(top){ top.style.display="" } var oldContent="MItem1"; function menu_switch(newContent) { if(newContent!=""){ if(document.getElementById(newContent).style.display=="none") { if(oldContent!="") { document.getElementById(oldContent).style.display="none"; } oldContent=newContent; document.getElementById(newContent).style.display=""; } else { if(oldContent!="") oldContent=newContent; document.getElementById(newContent).style.display=""; } } else{ if(oldContent!="") { document.getElementById(oldContent).style.display="none"; } } } var oldtitle="title1"; function menu_switch1(newtitle) { if(newtitle!=""){ if(document.getElementById(oldtitle).background=="images/line.gif") { if(oldtitle!=newtitle) { if(document.getElementById(newtitle).background=="images/line.gif") { document.getElementById(newtitle).background="images/line0.gif"; }else { document.getElementById(newtitle).background="images/line.gif"; } oldtitle=newtitle; }else { document.getElementById(oldtitle).background="images/line0.gif"; oldtitle=newtitle; } } else { if(oldtitle!=newtitle) { document.getElementById(oldtitle).background="images/line.gif"; oldtitle=newtitle; document.getElementById(newtitle).background="images/line0.gif"; } else { document.getElementById(oldtitle).background="images/line0.gif"; oldtitle=newtitle; } } } else{ if(oldtitle!="") { document.getElementById(oldtitle).background="images/line.gif"; } } }