12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- $(document).bind("click",function(e){
- var target = $(e.target);
- if(target.closest(".moreBuUl>li.rightbtn").length == 0){
- $(".table-drop").hide();
- }
- })
-
- $(".leftconItem").hide();
- $(".leftconItem:first").show();
-
- $(".moreNav").hide()
-
- $("ul.mainNavUl").on("click", "li", function() {
- $(".leftconItem").hide();
- var activeTab = $(this).attr("rel");
- $("#" + activeTab).fadeIn();
-
- $("ul.mainNavUl li").removeClass("liNow");
- $(this).addClass("liNow");
-
- $(".moreNav").hide();
- if($(this).is('[tmp]')){
- var activeMoreTab = $(this).attr("tmp");
- $("#" + activeMoreTab).fadeIn();
- }
- });
-
-
- $(".leftconItem>.dropconItem").hide();
- $(".leftconItem>.dropconItem:first").show();
-
- $("ul.moreNavUl").on("click", "li",function() {
- $(".moreNav").hide()
- $(this).parents(".moreNav").show()
-
- $(".leftconItem>.dropconItem").hide();
- var activeTab = $(this).attr("rel");
- $("#" + activeTab).fadeIn();
-
- $("ul.moreNavUl li").removeClass("liNow");
- $(this).addClass("liNow");
- });
-
- $(".table-drop").hide()
- $("ul.moreNavUl").on("click", "li.rightbtn",function() {
- $(this).find(".table-drop").show();
- });
-
-
- $("ul.table-drop").on("click","li",function(){
- var id=$(this).attr("id")
- $(this).parents(".rightbtn").find("span").html($(this).text());
- $(this).parents(".rightbtn").attr("rel",id)
- $(".table-drop").fadeOut(1000);
- })
- $(".listdiv .listbox").hide();
- $(".listdiv .listbox:first").show();
-
- $("ul.choosediv").on("click", "li", function() {
- $(".listdiv .listbox").hide();
- var activeTab = $(this).attr("rel");
- $("#" + activeTab).fadeIn();
-
- $("ul.choosediv li").removeClass("liactive");
- $(this).addClass("liactive");
-
- });
|