$(function(){ var sec=$(".sec_t_l li").find('a'); sec.click(function(){ $(this).addclass("secter").parents('li').siblings().removeclass('secter'); }) /*右边case展示*/ var pro=$(".proul li p"); pro.mousemove(function(){ $(this).parent('li').find('a').show(); }) pro.mouseout(function(){ $(this).parent('li').find('a').hide(); }) $.geturlparam = function (name) { var reg = new regexp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r != null) return decodeuri(r[2]); return null; } var type = $.geturlparam('type'); if(type=='2') { $('.bounced').show(); } })