用jquery很容易实现:
<script type=”text/javascript”>
$(document).ready(function(){
$(“a[href*=’://’]:not(a[href^=’http://xinghuwan.net’],a[href^=’javascript:’])”).attr({target:”_blank”,rel:”nofollow”});
});
</script>
用jquery很容易实现:
<script type=”text/javascript”>
$(document).ready(function(){
$(“a[href*=’://’]:not(a[href^=’http://xinghuwan.net’],a[href^=’javascript:’])”).attr({target:”_blank”,rel:”nofollow”});
});
</script>
最新评论