Fork me on GitHub
JQuery Code1

 

function changetab(obj){
			    var div = $(obj).parent("h3").next("div");			    
			    div.css("display","block");
			    div.addClass("active");
			    
			    if(div.attr("id") == "tab-01"){
			        $("#tab-02").removeClass("active");
			        $("#tab-02").css("display","none");
			    }
			    
			    if(div.attr("id") == "tab-02"){
			        $("#tab-01").removeClass("active");
			        $("#tab-01").css("display","none");
			    }
			}

 

 

posted on 2010-04-06 17:45  HackerVirus  阅读(222)  评论(0编辑  收藏  举报