本帖最後由 soso123 於 2014-1-18 11:05 編輯 ; u1 S1 p7 h7 y, J9 j; k9 t
. U( m R+ G c. t! h& U% b
這個是網上找的,沒有操作過
( J+ _. K0 E) F( o& c7 |
7 j) h. M; t/ ?4 ~打開當前主題下的footer.php,加入以下代碼:- <script type="text/javascript">9 i* _# k F3 P
- $$$$(function() { 5 C1 K9 I8 L! z4 N; K; M! p
- var yourdomain = location.hostname;
4 {+ ]; _; B+ W& L" V) } - $$$$("a[href^='http://" + yourdomain + "/wp-content/uploads'],[href^='http://']:not([href*= '"+ mydomain +"'])").attr("target", "_blank");8 L+ @6 e7 B( M! e4 m4 ?
- }); * v/ o6 E; H& p% H+ M
- </script>
複製代碼 奇怪,怎麼上面的代碼一個$會變成四個的
: ?% x K( @% @) W4 ] M; D) i8 M' m1 q! k2 y% Y# Z5 O$ g- q F
) s+ D) Y! P, w$ c
|