地球村欢迎您!
Tag: 代码实现网站栏目中英文交换预览模式: 图文 | 列表

js代码实现网站栏目中英文交换

JS代码部份:
< script type="text/javascript">
function menuxs(i,n,v){
    
    for(j=1;j<=2;j++){
        
        str=i+j;
        document.getElementById(str).style.display="none";
        
        }
    document.getElementById(v).style.display="block";
    if(n=="1"){
        
        if(i=="menu7"){
        document.getElementById(i).className="top_6_11";    
            }else{        
        document.getElementById(i).className="top_61";}
        
        }else{
            if(i=="menu7"){
        document.getElementById(i).className="top_4_11";    
            }else{    
        document.getElementById(i).className="top_41";}    
            }
    
    }
< /script>

查看更多...

Tags: js 代码实现网站栏目中英文交换

分类:学无止境 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 32