<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>FVF.me&#039;Ye &#187; external</title>
	<atom:link href="http://fvf.me/tag/external/feed" rel="self" type="application/rss+xml" />
	<link>http://fvf.me</link>
	<description>我是孤独的根号5</description>
	<lastBuildDate>Mon, 19 Sep 2011 12:10:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>超级链接样式</title>
		<link>http://fvf.me/wordpress/tips/wordpress-themes-to-change-the-hyperlink-style.html</link>
		<comments>http://fvf.me/wordpress/tips/wordpress-themes-to-change-the-hyperlink-style.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 10:57:15 +0000</pubDate>
		<dc:creator>死兔子</dc:creator>
				<category><![CDATA[小技巧]]></category>
		<category><![CDATA[external]]></category>
		<category><![CDATA[链接]]></category>

		<guid isPermaLink="false">http://fvf.me/wordpress/wordpress-themes-to-change-the-hyperlink-style.html</guid>
		<description><![CDATA[现在的效果 超级链接效果 代码如下: &#60;a href=&#34;#&#34; rel=&#34;external&#34;&#62;#&#60;/a&#62; 其实这个我也不是很懂，在群里面一叫，blade童鞋告诉我的。嘿嘿，接下来当然是动手了！ 当然了blade童鞋把别人想得和自己一样高深，其实网上很多人和我一样什么都只懂些皮毛，所以他写的我还是搞不清楚，怎么办呢，我准备找他的时候他人不在线，靠超郁闷 ！（ps：他是29号告诉我的，我是30号开始动手的！） 当然了面对失败不能后退啊！后退了，还不如我当初不问了，让人郁闷！突然别我发现这小子尽然也在用这个方法，哈哈！俗话说的好，写出来的不一定是好的，怎么都得留一 手吧。但是我用FF把他用的给揪出来啊！我查看了他网页源代码发现了一段写在博客上的javascript代码。 &#60;script type=&#34;text/javascript&#34;&#62; function outlinks() { &#160; if (!document.getElementsByTagName) return; &#160;&#160;&#160;&#160;&#160;&#160;&#160; if(! document.getElementById(&#34;postarea&#34;)) return; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var anchors = document.getElementById(&#34;c&#34;).getElementsByTagName(&#34;a&#34;);//仅应用id为c的块内部的 a标签 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; for (var i=0; i&#60;anchors .length; i++) { &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var anchor = anchors[i]; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (anchor.getAttribute(&#34;href&#34;) &#38;&#38; anchor.getAttribute(&#34;rel&#34;) == &#34;external&#34;){ &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#038; nbsp;&#160;&#160;&#160;&#160; anchor.target = &#34;_blank&#34;; [...]]]></description>
			<content:encoded><![CDATA[<p>现在的效果 <a href="#" rel="external">超级链接效果</a> 代码如下:</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 0); font-weight: bold; ">&lt;a</span> <span style="color: rgb(255, 255, 0); ">href=</span><span style="color: rgb(187, 187, 0); </p>
<p>">&quot;#&quot;</span> <span style="color: rgb(255, 255, 0); ">rel=</span><span style="color: rgb(187, 187, 0); ">&quot;external&quot;</span><span style="color: rgb(255, 255, 0); font-weight: bold; ">&gt;</span><span style="color: rgb(192, 192, 192); ">#</span><span style="color: rgb(255, 255, 0); font</p>
<p>-weight: bold; ">&lt;/a&gt;</span></div>
<p>其实这个我也不是很懂，在群里面一叫，blade童鞋告诉我的。嘿嘿，接下来当然是动手了！</p>
<p>当然了blade童鞋把别人想得和自己一样高深，其实网上很多人和我一样什么都只懂些皮毛，所以他写的我还是搞不清楚，怎么办呢，我准备找他的时候他人不在线，靠超郁闷</p>
<p>！（ps：他是29号告诉我的，我是30号开始动手的！）</p>
<p>当然了面对失败不能后退啊！后退了，还不如我当初不问了，让人郁闷！突然别我发现这小子尽然也在用这个方法，哈哈！俗话说的好，写出来的不一定是好的，怎么都得留一</p>
<p>手吧。但是我用FF把他用的给揪出来啊！我查看了他网页源代码发现了一段写在博客上的javascript代码。</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(192, 192, 192); ">&lt;</span><span style="color: rgb(192, 192, 192); ">script</span> <span style="color: rgb(192, 192, 192); </p>
<p>">type</span><span style="color: rgb(192, 192, 192); ">=</span><span style="color: rgb(187, 187, 0); ">&quot;text/javascript&quot;</span><span style="color: </p>
<p>rgb(192, 192, 192); ">&gt;</span><br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">function</span> <span style="color: rgb(192, 192, 192); </p>
<p>">outlinks</span>() <span style="color: rgb(192, 192, 192); ">{</span><br /> &nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">if</span> (<span style="color: rgb(192, 192, 192); ">!</span><span style="color: rgb(192, 192, 192); ">document</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">getElementsByTagName</span>) <span style="color: rgb(255, 255, 0); font-weight: bold; ">return</span>; </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">if</span>(<span style="color: rgb(192, 192, 192); ">!</p>
<p></span><span style="color: rgb(192, 192, 192); ">document</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); </p>
<p>">getElementById</span>(<span style="color: rgb(187, 187, 0); ">&quot;postarea&quot;</span>)) <span style="color: rgb(255, 255, 0); font-weight: bold; </p>
<p>">return</span>;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">var</span> </p>
<p><span style="color: rgb(192, 192, 192); ">anchors</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(192, 192, 192); </p>
<p>">document</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">getElementById</span>(<span style="color: rgb</p>
<p>(187, 187, 0); ">&quot;c&quot;</span><span style="color: rgb(192, 192, 192); ">).</span><span style="color: rgb(192, 192, 192); </p>
<p>">getElementsByTagName</span>(<span style="color: rgb(187, 187, 0); ">&quot;a&quot;</span>);<span style="color: rgb(105, 105, 105); ">//仅应用id为c的块内部的</p>
<p>a标签</span><br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-</p>
<p>weight: bold; ">for</span> (<span style="color: rgb(255, 255, 0); font-weight: bold; ">var</span> <span style="color: rgb(192, 192, 192); ">i</span><span style="color: rgb(192, 192, 192); ">=</span><span style="color: rgb(192, 192, 192); ">0</span>; <span style="color: rgb(192, 192, 192); ">i</span><span style="color: rgb(192, 192, 192); ">&lt;</span><span style="color: rgb(192, 192, 192); ">anchors</span> <span style="color: rgb(192, 192, 192); </p>
<p>">.</span><span style="color: rgb(192, 192, 192); ">length</span>; <span style="color: rgb(192, 192, 192); ">i</span><span style="color: rgb(192, 192, 192); </p>
<p>">++</span>) <span style="color: rgb(192, 192, 192); ">{</span> </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); </p>
<p>font-weight: bold; ">var</span> <span style="color: rgb(192, 192, 192); ">anchor</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(192, 192, 192); ">anchors</span><span style="color: rgb(192, 192, 192); ">[</span><span style="color: rgb(192, 192, 192); ">i</span><span style="color: rgb(192, 192, 192); ">];</span> </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); </p>
<p>font-weight: bold; ">if</span> (<span style="color: rgb(192, 192, 192); ">anchor</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: </p>
<p>rgb(192, 192, 192); ">getAttribute</span>(<span style="color: rgb(187, 187, 0); ">&quot;href&quot;</span>) <span style="color: rgb(192, 192, 192); </p>
<p>">&amp;&amp;</span> <span style="color: rgb(192, 192, 192); ">anchor</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, </p>
<p>192, 192); ">getAttribute</span>(<span style="color: rgb(187, 187, 0); ">&quot;rel&quot;</span>) <span style="color: rgb(192, 192, 192); ">==</span> <span style="color: rgb(187, 187, 0); ">&quot;external&quot;</span><span style="color: rgb(192, 192, 192); ">){</span> </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#038;</p>
<p>nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(192, 192, 192); ">anchor</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: </p>
<p>rgb(192, 192, 192); ">target</span> <span style="color: rgb(192, 192, 192); ">=</span> <span style="color: rgb(187, 187, 0); ">&quot;_blank&quot;</span>; </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#038;</p>
<p>nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(192, 192, 192); ">anchor</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: </p>
<p>rgb(192, 192, 192); ">className</span><span style="color: rgb(192, 192, 192); ">=</span><span style="color: rgb(187, 187, 0); </p>
<p>">&quot;external&quot;</span>;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(192, </p>
<p>192, 192); ">}</span><br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(192, 192, 192); ">}</span></p>
<p> <span style="color: rgb(192, 192, 192); </p>
<p>">}</span><br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">if</span> (<span style="color: rgb(192, 192, 192); ">window</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">attachEvent</span>) <span style="color: rgb(192, 192, 192); </p>
<p>">window</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">attachEvent</span>(<span style="color: rgb(187, </p>
<p>187, 0); ">&quot;onload&quot;</span><span style="color: rgb(192, 192, 192); ">,</span> <span style="color: rgb(192, 192, 192); ">sfHover</span>);<br /> <span style="color: rgb(255, 255, 0); font-weight: bold; ">if</span>(<span style="color: rgb(192, 192, 192); ">window</span><span style="color: rgb(192, 192, 192); </p>
<p>">.</span><span style="color: rgb(192, 192, 192); ">attachEvent</span>) <span style="color: rgb(192, 192, 192); ">{</span> <span style="color: rgb(105, 105, </p>
<p>105); ">//ie</span><br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(192, 192, 192); ">window</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">attachEvent</span>(<span style="color: rgb(187, 187, 0); ">&quot;onload&quot;</span><span style="color: rgb(192, 192, </p>
<p>192); ">,</span> <span style="color: rgb(192, 192, 192); ">outlinks</span>);<br /> <span style="color: rgb(192, 192, 192); ">}</span><br /> <span style="color: </p>
<p>rgb(255, 255, 0); font-weight: bold; ">else</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">if</span>(<span style="color: rgb(192, 192, </p>
<p>192); ">window</span><span style="color: rgb(192, 192, 192); ">.</span><span style="color: rgb(192, 192, 192); ">addEventListener</span>) <span style="color: </p>
<p>rgb(192, 192, 192); ">{</span><br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(192, 192, 192); ">window</span><span style="color: rgb(192, 192, 192); </p>
<p>">.</span><span style="color: rgb(192, 192, 192); ">addEventListener</span>(<span style="color: rgb(187, 187, 0); ">&#39;DOMContentLoaded&#39;</span><span style="color: rgb(192, 192, 192); ">,</span> <span style="color: rgb(192, 192, 192); ">outlinks</span><span style="color: rgb(192, 192, 192); ">,</span> </p>
<p><span style="color: rgb(255, 255, 0); font-weight: bold; ">false</span>);<br /> <span style="color: rgb(192, 192, 192); ">}</span><br /> <span style="color: rgb</p>
<p>(192, 192, 192); ">&lt;</span><span style="color: rgb(192, 192, 192); ">/script&gt;</span></div>
<p>最下面两个/标签去掉，插件bug啊!然后直接拷贝到我的header.php文件的&lt;/head&gt;上面去.当然了要不这中间的“c”改为自己的文章的id最好是文章栏的id。接下来把</p>
<p>css代码复制到我的style.css中去，就可以了不过我发现他的css代码不好看就把它稍微处理了一下，把后面的背景下调了一下.</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(255, 255, 0); font-weight: bold; ">a</span><span style="color: rgb(192, 192, 192); ">.external</span> <span style="color: rgb(192, 192, </p>
<p>192); ">{</span><br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">padding</span><span style="color: rgb(192, 192, 192); </p>
<p>">:</span><span style="color: rgb(192, 192, 192); ">0</span> <span style="color: rgb(192, 192, 192); ">12px</span> <span style="color: rgb(192, 192, 192); </p>
<p>">0</span> <span style="color: rgb(192, 192, 192); ">0</span>;<br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">background-</p>
<p>image</span><span style="color: rgb(192, 192, 192); ">:</span> <span style="color: rgb(187, 187, 0); ">url(images/external.png)</span>; </p>
<p>&nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; ">background-repeat</span><span style="color: rgb(192, 192, 192); ">:</span> </p>
<p><span style="color: rgb(255, 255, 0); font-weight: bold; ">no-repeat</span>;<br /> &nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 255, 0); font-weight: bold; </p>
<p>">background-position</span><span style="color: rgb(192, 192, 192); ">:</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">right</span> <span style="color: rgb(255, 255, 0); font-weight: bold; ">center</span>;<br /> <span style="color: rgb(192, 192, 192); ">}</span></div>
<p>不过就是使用超级链接的时候麻烦一些，要手动在&lt;a&gt;标签中加入</p>
<div class="source" style="font-family: 'Courier New', 'Lucida Console', Verdana; color: rgb(192, 192, 192); background-color: rgb(0, 0, 0); "> <span style="color: rgb(192, 192, 192); ">rel=&quot;external&quot;</span></div>
<p>如果你喜欢我的超级链接的背景的话直接右键复制图片吧!</p>
]]></content:encoded>
			<wfw:commentRss>http://fvf.me/wordpress/tips/wordpress-themes-to-change-the-hyperlink-style.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

