看板 Web_Design 關於我們 聯絡資訊
※ 引述《vickykuo (郭大屁)》之銘言: : 遇到一個怪問題,設定了target="_blank" : 可是頁面會另外開一頁,本頁也會同步跳成連結的那一頁 : http://chicing.creatcell.net/crossindustry.php : 左側"人才招募"就是這樣 : 是js的問題嗎?@@...求問好心的高手 : 謝謝!! 問題出在這段 $(function(){ $("#qaContent > ul > li > .qa_title").click(function(){ if($(this).parent().has("ul").length){ var _this= $(this).parent().find(".qa_content"); if($(_this).css("display")=="none"){ $(_this).slideDown(); }else{ $(_this).slideUp(); } return false; } else { var href= $(this).parent().find("a").attr('href'); window.location.href = href; //兇手 } }); }); 應該判斷有沒有attr('target','_blank') false的話才用window.location.href -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.235.116
vickykuo:感謝你!!!!!! >"< 已經調整好了!!!!!! 09/04 11:18