// bestone javascript document var mouseouttimer; function commoninit(){ $(".nav_menus .ul_menus li.topmenu").on("mouseover",function(ev){ if($(ev.target).attr("class")){ var classnamestr = $(ev.target).attr("class"); if(classnamestr.indexof("topmenu-link")>=0){ //$(ev.target).addclass("current"); $(ev.target).next().css("display","block"); $(ev.target).next().css("visibility","visible"); } }else{ cleartimeout(mouseouttimer); } }); $(".nav_menus .ul_menus li.topmenu").on("mouseout",function(ev){ if($(ev.target).attr("class")){ mouseouttimer = settimeout(function(){ $(ev.target).next().css("display","none"); $(ev.target).next().css("visibility","hidden"); },100); }else{ console.log($(ev.target).closest(".topmenu-link").next()); mouseouttimer = settimeout(function(){ $(ev.target).closest(".topsubmenu").css("display","none"); $(ev.target).closest(".topsubmenu").css("visibility","hidden"); },100); } }); } function code2dshow(){ $.layer({ type: 1, title: false, border: [0], closebtn: [1,true], shadeclose: true, area: ['460px', '460px'], page: { html: '