在HTML中尋找 </body> ,在上方插入以下內容
紅色部分要修正成自己的網址
/*外部連結開新視窗:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript">
jQuery("a").each(function(index) {
var r = new RegExp("^https://roats1000.blogspot.com/");
if (!r.test(jQuery(this).attr('href'))) {
jQuery(this).attr('target', '_blank');
}
});
</script>
*/外部連結開新視窗
參考資料來源:https://www.xiaoyao.tw/2011/05/blogger-link.html
沒有留言:
張貼留言
注意:只有此網誌的成員可以留言。