admin 發表於 2016-12-16 16:29:58

//鼠標懸浮 // console.log

不對,荷重元,再猜猜唄~
var zl_collection = new Image(); var ucid = getCookie('userid'); if(ucid == ''){ ucid = '1470200011592_000000000'; } var flag = true; var lock = false; $( ".zl_parent" ).bind("mouseenter mouseleave",通馬桶,function(event){ if (event.type == "mouseenter" && flag ) { //鼠標懸浮 // console.log('zl_parent MouseEnter!'); $('.zl_quesbox').addClass('zl_quesbox_extend'); $('.zl_quesbox_body').addClass('zl_quesbox_extend_inner'); $('.zl_q_choice').show(); $('.zl_q_result').show(); } else if (event.type == "mouseleave" && flag && !lock ) { //鼠標離開 // console.log('zl_parent MouseLeave!'); $('.zl_quesbox').removeClass('zl_quesbox_extend') $('.zl_quesbox_body').removeClass('zl_quesbox_extend_inner'); $('.zl_q_choice').hide(); $('.zl_q_result').hide(); } }); $('.zl_q_choice li').on('click', function(obj) { if(!lock){$(this).children('input').click();} }); $('.zl_q_choice input').on('click', function(obj) { this.checked=true; zl_collection.src = ''+ucid; $('.zl_q_result p:nth-child(2)').hide(); $('.zl_q_choice input').attr('disabled','true'); if(this.attributes['ans'].value == 'T'){ //答對 // console.log('答對'); $('.zl_q_result p:first').show(); setTimeout(function() { $('.zl_quesbox').hide(); $('.pic_target img').removeClass('blur'); $('.zl_q_result p:nth-child(2)').show(); },2000); flag = false; }else{ //答錯 // console.log('答錯'); $('.zl_q_result p:last').show(); lock = true; setTimeout(function() { $('.zl_q_result p:last').hide(); $('.zl_q_choice input').removeAttr('disabled'); this.checked=false; lock = false; $('.zl_q_result p:nth-child(2)').show(); },嬰兒推車,1000); } }); function getCookie(c_name) { if (document.cookie.length>0) { c_start=document.cookie.indexOf(c_name + "=") if (c_start!=-1) { c_start=c_start + c_name.length+1 c_end
答對才能看美圖哦~


惡趣味 / 高智商 / 求真相 / 更多 懽樂答 看美圖 下面哪種痠,外遇挽回,人在品嘗時不是痠味的,清潔公司?
對啦,防火門,馬上看美圖~
頁: [1]
查看完整版本: //鼠標懸浮 // console.log