JQ正则替换img的src值及img的alt和style
$(function(){
$('img').each(function(i,o){
var $o=$(this);
$o.attr('src',$o.attr('src').replace(/(.+)/g,'http://www.shiciyue.com$1'));
//$o.attr('src',$o.attr('src').replace(/.*/p/g,'http://www.baidu.comhttp://www.shiciyue.com/d/file/p'));
//$o.attr('src',$o.attr('src').replace(/.{9}//g,'http://www.baidu.comhttp://www.shiciyue.com/d/file/p/'));
$o.attr('style',$o.attr('style').replace(/.*/gi,''));
$o.attr('alt',$o.attr('alt').replace(/.*/gi,''));
});
});