<?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>Graygift@ye &#187; 链接</title>
	<atom:link href="http://www.graygift.com/tag/%e9%93%be%e6%8e%a5/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.graygift.com</link>
	<description>我是孤独的根号5      </description>
	<lastBuildDate>Sun, 08 Nov 2009 02:13:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>wordpress 主题之更改超级链接样式</title>
		<link>http://www.graygift.com/wordpress/wordpress-themes-to-change-the-hyperlink-style/</link>
		<comments>http://www.graygift.com/wordpress/wordpress-themes-to-change-the-hyperlink-style/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 03:27:38 +0000</pubDate>
		<dc:creator>Graygift</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[external]]></category>
		<category><![CDATA[链接]]></category>

		<guid isPermaLink="false">http://www.graygift.com/wordpress/wordpress-%e4%b8%bb%e9%a2%98%e4%b9%8b%e6%9b%b4%e6%94%b9%e8%b6%85%e7%ba%a7%e9%93%be%e6%8e%a5%e6%a0%b7%e5%bc%8f/</guid>
		<description><![CDATA[现在的效果 超级链接效果 代码如下:
a href=&#34;#&#34; rel=&#34;external&#34;
其实这个我也不是很懂，在群里面一叫，blade童鞋告诉我的。嘿嘿，接下来当然是动手了！
当然了blade童鞋把别人想得和自... ]]></description>
			<content:encoded><![CDATA[<p>现在的效果 <a href="#" rel="external">超级链接效果</a> 代码如下:</p>
<pre>a href=&quot;#&quot; rel=&quot;external&quot;</pre>
<p>其实这个我也不是很懂，在群里面一叫，blade童鞋告诉我的。嘿嘿，接下来当然是动手了！</p>
<p>当然了blade童鞋把别人想得和自己一样高深，其实网上很多人和我一样什么都只懂些皮毛，所以他写的我还是搞不清楚，怎么办呢，我准备找他的时候他人不在线，靠超郁闷！（ps：他是29号告诉我的，我是30号开始动手的！）</p>
<p>当然了面对失败不能后退啊！后退了，还不如我当初不问了，让人郁闷！突然别我发现这小子尽然也在用这个方法，哈哈！俗话说的好，写出来的不一定是好的，怎么都得留一手吧。但是我用FF把他用的给揪出来啊！我查看了他网页源代码发现了一段写在博客上的javascript代码。</p>
<p><span id="more-1195"></span></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.graygift.com/wordpress/wp-content/plugins/wp-codebox/wp-codebox.php?p=1195&amp;download=download.txt">download.txt</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p11953"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code" id="p1195code3"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #003366; font-weight: bold;">function</span> outlinks<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>document.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;">&#41;</span> <span style="color: #000066; font-weight: bold;">return</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;postarea&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000066; font-weight: bold;">return</span><span style="color: #339933;">;</span>
			<span style="color: #003366; font-weight: bold;">var</span> anchors <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;c&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;a&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #006600; font-style: italic;">//仅应用id为c的块内部的a标签</span>
				<span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&lt;</span>anchors .<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
					<span style="color: #003366; font-weight: bold;">var</span> anchor <span style="color: #339933;">=</span> anchors<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
					<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>anchor.<span style="color: #660066;">getAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;href&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> anchor.<span style="color: #660066;">getAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;rel&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;external&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
								anchor.<span style="color: #660066;">target</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;_blank&quot;</span><span style="color: #339933;">;</span>
								anchor.<span style="color: #660066;">className</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;external&quot;</span><span style="color: #339933;">;</span>
				<span style="color: #009900;">&#125;</span>
  	<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>window.<span style="color: #660066;">attachEvent</span><span style="color: #009900;">&#41;</span> window.<span style="color: #660066;">attachEvent</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;onload&quot;</span><span style="color: #339933;">,</span> sfHover<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>window.<span style="color: #660066;">attachEvent</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #006600; font-style: italic;">//ie</span>
	window.<span style="color: #660066;">attachEvent</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;onload&quot;</span><span style="color: #339933;">,</span> outlinks<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>window.<span style="color: #660066;">addEventListener</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	window.<span style="color: #660066;">addEventListener</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'DOMContentLoaded'</span><span style="color: #339933;">,</span> outlinks<span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>anchors<span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>最下面两个/标签去掉，插件bug啊!然后直接拷贝到我的header.php文件的&lt;/head&gt;上面去.当然了要不这中间的“c”改为自己的文章的id最好是文章栏的id。接下来把css代码复制到我的style.css中去，就可以了不过我发现他的css代码不好看就把它稍微处理了一下，把后面的背景下调了一下.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left2">Download <a href="http://www.graygift.com/wordpress/wp-content/plugins/wp-codebox/wp-codebox.php?p=1195&amp;download=download.txt">download.txt</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p11954"><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code" id="p1195code4"><pre class="css" style="font-family:monospace;">a<span style="color: #6666ff;">.external</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">12px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/external.png</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>不过就是使用超级链接的时候麻烦一些，要手动在&lt;a&gt;标签中加入</p>
<pre>rel=&quot;external&quot;</pre>
<p>如果你喜欢我的超级链接的背景的话直接右键复制图片吧!
</p>
<p>感谢：<a href="http://gigalens.com/2008-11/webstandards-css-blankpage.html" rel="external">blade</a></p>
<ul class="related_post"><li><a href="http://www.graygift.com/wordpress/wordpress-theme-navigation-bar-of-the-drop-down-list/" title="wordpress 主题之下拉列表导航栏">wordpress 主题之下拉列表导航栏</a></li><li><a href="http://www.graygift.com/wordpress/comments-add-a-few-floors-wordpress-message-number/" title="WordPress 评论添加楼层数(留言编号)">WordPress 评论添加楼层数(留言编号)</a></li><li><a href="http://www.graygift.com/wordpress/wordpress-separately-trackbacks-pingbacks-list-and-comments/" title="WordPress中分开Trackbacks/Pingbacks 和评论列表">WordPress中分开Trackbacks/Pingbacks 和评论列表</a></li><li><a href="http://www.graygift.com/wordpress/wordpress-blog-to-show-the-current-time/" title="给wordpress博客显示当前时间">给wordpress博客显示当前时间</a></li><li><a href="http://www.graygift.com/wordpress/wordpress-theme-related-articles-code/" title="wordpress主题&ndash;相关文章代码">wordpress主题&ndash;相关文章代码</a></li><li><a href="http://www.graygift.com/wordpress/wordpress-theme-random-article-code/" title="wordpress主题&ndash;随机文章代码">wordpress主题&ndash;随机文章代码</a></li><li><a href="http://www.graygift.com/wordpress/wordpress-theme-the-latest-article-code/" title="wordpress主题&ndash;最新文章代码">wordpress主题&ndash;最新文章代码</a></li><li><a href="http://www.graygift.com/wordpress/wordpress-theme-the-hottest-article-code/" title="wordpress主题&ndash;最热文章代码">wordpress主题&ndash;最热文章代码</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.graygift.com/wordpress/wordpress-themes-to-change-the-hyperlink-style/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
