|
|
主图部分的代码
<tr id="prodImageContainer">
<td id="prodImageCell" height="300" width="300"><a href="/gp/reader/B003L0QR3K/ref=sib_dp_kd#reader-link" onclick="if (typeof(SitbReader) != 'undefined') { SitbReader.LightboxActions.openReader('sib_dp_kd'); return false; }"><img onload="if (typeof uet == 'function') { if(typeof setCSMReq=='function'){setCSMReq('af');setCSMReq('cf');}else{uet('af');uet('cf');amznJQ.completedStage('amznJQ.AboveTheFold');} } " src="http://ecx.images-amazon.com/images/I/413gxoBHErL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA278_PIkin4,BottomRight,-67,22_AA300_SH20_OU01_.jpg" id="prodImage" width="300" height="300" border="0" alt="Reflections of Grey (Book Three of the Alexis Stanton Chronicles)" onmouseover="" /></a><div id="prodImageCellInner" style="position: relative; height:0px;"><!--Comment for IE as it is empty div--></div></td>
</tr>
你好 我要提取的是这个图片:src="http://ecx.images-amazon.com/images/I/413gxoBHErL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA278_PIkin4,BottomRight,-67,22_AA300_SH20_OU01_.jpg"
用正则表达式 我是这样子写的
左边
<img onload="if (typeof uet == 'function') { if(typeof setCSMReq=='function'){setCSMReq('af');setCSMReq('cf');}else{uet('af');uet('cf');amznJQ.completedStage('amznJQ.AboveTheFold');} } " src="[参数1].jpg"
右边
<img src="images/[参数1].jpg" />
不过还是不行 麻烦帮我看下 要怎么写。。。谢谢 |
|