<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[韶华岁月]]></title> 
<link>http://www.allenzheng.com/index.php</link> 
<description><![CDATA[Ray's Blog]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[韶华岁月]]></copyright>
<item>
<link>http://www.allenzheng.com/read.php?13</link>
<title><![CDATA[让Opera显示淘宝的图片]]></title> 
<author>ray &lt;allenzheng.sh AT gmail DOT com&gt;</author>
<category><![CDATA[网络]]></category>
<pubDate>Wed, 22 Aug 2007 09:26:01 +0000</pubDate> 
<guid>http://www.allenzheng.com/read.php?13</guid> 
<description>
<![CDATA[ 
	<span style="color: #4169E1;">Opera一直是我首选的浏览器，除了网银要用IE外（不是IE好用，而是中国网银太烂，只支持IE，浦发的网银已经支持firefox了），基本都是用Opera的，Opera有很多人性化的地方，许多以IE为内核的浏览器的功能都是模仿Opera，Opera才是鼻祖，<br/>不过Opera在浏览淘宝的时候不能显示宝贝的图片，总是显示服务器超时，非常不爽。<br/>在网上还是找到了高人写的js脚本，顺便推广一下。</span><br/><div class="code">// ==UserScript==<br/>// @name Show images - Taobao.com<br/><br/>// @author somh<br/>// @ahmore@gmail.com<br/>// @include http://auction1.taobao.com/auction*<br/>// @20:41 2006-9-6<br/><br/>// ==/UserScript==<br/><br/>var h=window.location.href;<br/><br/>var sUrls=&quot;taobao.com/auction&quot;;<br/>var iShown=0;<br/>if(h.indexOf(sUrls) != -1) &#123;<br/>window.addEventListener(&#039;load&#039;,function(e)&#123;<br/> &nbsp; &nbsp;try &#123;<br/><br/> &nbsp; &nbsp; if(!iShown)&#123;<br/> &nbsp; &nbsp; &nbsp;var p = document.getElementById(&#039;FlashArea&#039;);<br/> &nbsp; &nbsp; &nbsp;var z = document.getElementById(&#039;ZoomInLink&#039;);<br/> &nbsp; &nbsp; &nbsp;var iUrl = &quot;&quot;;for (var i = 0; i &lt; imageUrl.length; ++i) &#123; var code = imageUrl.charCodeAt(i); iUrl += String.fromCharCode(code ^ (i % 5)); &#125;<br/> &nbsp; &nbsp; &nbsp;iUrl=picServer+&quot;/&quot;+iUrl;<br/> &nbsp; &nbsp; &nbsp;iObj=new Image();<br/> &nbsp; &nbsp; &nbsp;iObj.src=iUrl;<br/> &nbsp; &nbsp; &nbsp;z.href=iUrl;<br/> &nbsp; &nbsp; &nbsp;x=p.parentNode;<br/><br/> &nbsp; &nbsp; &nbsp;x.removeChild(p);<br/> &nbsp; &nbsp; &nbsp;p=document.createElement(&#039;img&#039;);<br/> &nbsp; &nbsp; &nbsp;x.appendChild(p);<br/> &nbsp; &nbsp;<br/> &nbsp; &nbsp; &nbsp;document.styleSheets&#91;0&#93;.insertRule(&quot;img.iMover &#123; border: 1px solid #FF6600; padding: 1px; cursor: hand &#125;&quot;, 0); <br/> &nbsp; &nbsp; &nbsp;document.styleSheets&#91;0&#93;.insertRule(&quot;img.iMout &nbsp; &nbsp; &#123; border:1px dotted; padding:1px;cursor: pointer&#125;&quot;, 0); <br/> &nbsp; &nbsp; &nbsp;loadImage=setInterval(function()&#123;<br/> &nbsp; &nbsp; &nbsp; if(iObj.width&gt;0 &amp;&amp; iObj.height&gt;0)&#123;<br/> &nbsp; &nbsp; &nbsp; &nbsp;p.src=iUrl;<br/> &nbsp; &nbsp; &nbsp; &nbsp;aw=350;ah=350;w=iObj.width; h=iObj.height; r=w/h;<br/> &nbsp; &nbsp; &nbsp; &nbsp;if(w&gt;aw)w=aw;h=w/r; if(h&gt;ah)h=ah;w=h*r;<br/> &nbsp; &nbsp; &nbsp; &nbsp;p.width=w;p.height=h;p.className=&quot;iMout&quot;;p.title=z.innerText;<br/> &nbsp; &nbsp; &nbsp; &nbsp;p.setAttribute(&quot;onclick&quot;,&quot;window.open(this.src);&quot;);<br/> &nbsp; &nbsp; &nbsp; &nbsp;p.setAttribute(&quot;onmouseover&quot;,&quot;this.className=&#92;&#039;iMover&#92;&#039;;&quot;);<br/> &nbsp; &nbsp; &nbsp; &nbsp;p.setAttribute(&quot;onmouseout&quot;,&quot;this.className=&#92;&#039;iMout&#92;&#039;;&quot;);<br/> &nbsp; &nbsp; &nbsp; &nbsp;delete iObj;<br/> &nbsp; &nbsp; &nbsp; &nbsp;clearInterval(loadImage);<br/> &nbsp; &nbsp; &nbsp; &nbsp;iShown=1;<br/> &nbsp; &nbsp; &nbsp; &#125;<br/> &nbsp; &nbsp; &nbsp;&#125;,10)<br/> &nbsp; &nbsp; &#125;<br/> &nbsp; &nbsp;&#125;catch (e)&#123;&#125;<br/>&#125;,true);<br/><br/>&#125;</div><br/><br/>另存为taobao-show-images.js<br/>然后在首选项>内容>Javascript选项>用户Javascript文件，里添加文件的目录就可以了。<br/>Tags - <a href="http://www.allenzheng.com/tag.php?tag=taobao" rel="tag">taobao</a> , <a href="http://www.allenzheng.com/tag.php?tag=%25E6%25B7%2598%25E5%25AE%259D" rel="tag">淘宝</a> , <a href="http://www.allenzheng.com/tag.php?tag=opera" rel="tag">opera</a> , <a href="http://www.allenzheng.com/tag.php?tag=%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8" rel="tag">浏览器</a>
]]>
</description>
</item>
</channel>
</rss>