INDEX.JS
上传用户:szhf331
上传日期:2022-06-22
资源大小:1032k
文件大小:2k
- //menus
- function menuFix() {
- var sfEls = document.getElementById("nav").getElementsByTagName("li");
- for (var i=0; i<sfEls.length; i++) {
- sfEls[i].onmouseover=function() {
- this.className+=(this.className.length>0? " ": "") + "show";
- }
- sfEls[i].onmouseout=function() {
- this.className=this.className.replace(new RegExp("( ?|^)show\b"), "");
- }
- }
- }
- window.onload=menuFix;
- function getinfos(){
- var o=document.getElementById('infozone');
- //window.setInterval(function(){scrollup(o,20,0);},3000);
- }
- function switchSysBar(){
- if (document.getElementById("frmTitle").style.display=="block" ){
- switchPoint.innerHTML = '<img src="images/admin_mid_ico_r.gif">';
- document.getElementById("frmTitle").style.display="none"
- }
- else{
- switchPoint.innerHTML = '<img src="images/admin_mid_ico_l.gif">';
- document.getElementById("frmTitle").style.display="block";
- }
- }
- function menucheck(x,y){
- var nowmenuhtml = document.getElementById("m_t_"+x).innerHTML;
- var frmleftenus = frmleft.document.getElementById("nowmenus").value
- if (frmleftenus!=x){frmleft.document.getElementById("m_l").innerHTML=nowmenuhtml;}
- if(y!=""){frmright.location.href=y;}
- }
- //window.onload=menuFix;
- //window.onload=getinfos;
- if (document.all){
- window.attachEvent('onload',menuFix)//对于IE
- window.attachEvent('onload',getinfos)//对于IE
- }
- else{
- window.addEventListener('load',menuFix,false);//对于FireFox
- window.addEventListener('load',getinfos,false);//对于FireFox
- }
- //alert(document.getElementsByTagName("body").innerhtml );