<?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>Let's whisper &#187; 美化</title>
	<atom:link href="http://www.whisperer.name/tag/%e7%be%8e%e5%8c%96/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.whisperer.name</link>
	<description>Let's whisper.</description>
	<lastBuildDate>Thu, 02 Feb 2012 05:52:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>网页渐变效果</title>
		<link>http://www.whisperer.name/2009/10/gradual-change/</link>
		<comments>http://www.whisperer.name/2009/10/gradual-change/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 07:17:08 +0000</pubDate>
		<dc:creator>whisperer</dc:creator>
				<category><![CDATA[知识技巧]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[渐变]]></category>
		<category><![CDATA[美化]]></category>

		<guid isPermaLink="false">http://www.whisperer.name/?p=64</guid>
		<description><![CDATA[　　用IE进出小博时有种渐变效果，这两天连续有同学问到这个问题，我就顺便介绍一下，免得我每次都要贴代码解释，虽然我很喜欢解释，我喜欢别人从我这里获得满足感。 　　在meta标签里用 blendTrans 和 RevealTrans 这两种滤镜可以产生渐变效果。滤镜嘛，IE专用，所以其他浏览器现在都可以回家吃饭去了。把下面其中一段代码放到网页的&#60;body&#62;和&#60;/body&#62;之间，WordPress的话放 header.php 就好: No.1 &#60;meta http-equiv="Page-Enter" Content="blendTrans(Duration=0.2)"&#62;&#60;/meta&#62; &#60;meta http-equiv="Page-Exit" Content="blendTrans(Duration=0.2)"&#62; &#60;/meta&#62; No.2 &#60;Meta http-equiv="Page-Enter" Content="revealTrans(duration=x, transition=y)"&#62; &#60;Meta http-equiv="Page-Exit" Content="revealTrans(duration=x, transition=y)"&#62; 　　其中，Page-Enter和Page-Exit分别表示进入和离开网页。用No.2的同学把x和y换成你的参数。 　　Duration  　表示滤镜特效的持续时间(单位：秒) 　　Transition　滤镜类型。表示使用哪种特效，取值为0-23。 0 矩形缩小 1 矩形扩大 2 圆形缩小 3 圆形扩大 4 下到上刷新 5 上到下刷新 6 左到右刷新 7 右到左刷新 8 竖百叶窗 9 横百叶窗 10 错位横百叶窗 11 错位竖百叶窗 12 点扩散 [...]]]></description>
			<content:encoded><![CDATA[<p>　　用IE进出小博时有种渐变效果，这两天连续有同学问到这个问题，我就顺便介绍一下，免得我每次都要贴代码解释，虽然我很喜欢解释，我喜欢别人从我这里获得满足感。 <img src='http://www.whisperer.name/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>　　在meta标签里用 blendTrans 和 RevealTrans 这两种滤镜可以产生渐变效果。滤镜嘛，IE专用，所以其他浏览器现在都可以回家吃饭去了。把下面其中一段代码放到网页的<span style="background-color: #dddddd;">&lt;body&gt;</span>和<span style="background-color: #dddddd;">&lt;/body&gt;</span>之间，WordPress的话放 <span style="background-color: #dddddd;">header.php</span> 就好:<span id="more-64"></span></p>
<p><span style="color: #cc214e;">No.1</span></p>
<div class="source" style="BACKGROUND-COLOR: #1e1e27; FONT-FAMILY: 'Consolas','Lucida Console','Courier New'; COLOR: #d0d0d0"><span style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;meta</span> <span style="COLOR: #bbbbbb">http-equiv=</span><span style="COLOR: #ed9d13">"Page-Enter"</span> <span style="COLOR: #bbbbbb">Content=</span><span style="COLOR: #ed9d13">"blendTrans(Duration=0.2)"</span><span style="COLOR: #6ab825; FONT-WEIGHT: bold">&gt;&lt;/meta&gt;</span><br />
<span style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;meta</span> <span style="COLOR: #bbbbbb">http-equiv=</span><span style="COLOR: #ed9d13">"Page-Exit"</span> <span style="COLOR: #bbbbbb">Content=</span><span style="COLOR: #ed9d13">"blendTrans(Duration=0.2)"</span><span style="COLOR: #6ab825; FONT-WEIGHT: bold">&gt;</span> <span style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;/meta&gt;</span></div>
<p><span style="color: #cc214e;">No.2</span></p>
<div class="source" style="BACKGROUND-COLOR: #1e1e27; FONT-FAMILY: 'Consolas','Lucida Console','Courier New'; COLOR: #d0d0d0"><span style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;Meta</span> <span style="COLOR: #bbbbbb">http-equiv=</span><span style="COLOR: #ed9d13">"Page-Enter"</span> <span style="COLOR: #bbbbbb">Content=</span><span style="COLOR: #ed9d13">"revealTrans(duration=x, transition=y)"</span><span style="COLOR: #6ab825; FONT-WEIGHT: bold">&gt;</span> <br />
<span style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;Meta</span> <span style="COLOR: #bbbbbb">http-equiv=</span><span style="COLOR: #ed9d13">"Page-Exit"</span> <span style="COLOR: #bbbbbb">Content=</span><span style="COLOR: #ed9d13">"revealTrans(duration=x, transition=y)"</span><span style="COLOR: #6ab825; FONT-WEIGHT: bold">&gt;</span></div>
<p>　　其中，Page-Enter和Page-Exit分别表示进入和离开网页。用No.2的同学把x和y换成你的参数。</p>
<p>　　Duration  　表示滤镜特效的持续时间(单位：秒) <br />
　　Transition　滤镜类型。表示使用哪种特效，取值为0-23。</p>
<blockquote><p>0 矩形缩小 <br />
1 矩形扩大 <br />
2 圆形缩小 <br />
3 圆形扩大 <br />
4 下到上刷新 <br />
5 上到下刷新 <br />
6 左到右刷新 <br />
7 右到左刷新 <br />
8 竖百叶窗 <br />
9 横百叶窗 <br />
10 错位横百叶窗 <br />
11 错位竖百叶窗 <br />
12 点扩散 <br />
13 左右到中间刷新 <br />
14 中间到左右刷新 <br />
15 中间到上下 <br />
16 上下到中间 <br />
17 右下到左上 <br />
18 右上到左下 <br />
19 左上到右下 <br />
20 左下到右上 <br />
21 横条 <br />
22 竖条 <br />
23 以上22种随机选择一种</p>
</blockquote>
<p>　　我比较低调，所以用的是No.1 <img src='http://www.whisperer.name/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />    感兴趣的同学可以回去自己试试No.2的效果。</p>
<p><strong><span style="color: #cc214e;">PS：</span></strong></p>
<p>　　今天把顶部的面板去掉了，原因是我觉得它有些影响整体的美观。呃，和功能相比，我更加重视外观。而且貌似除了我之外，几乎没人会用到那个地方。</p>
<p>　　去掉面板之后把订阅按钮安排在了导航栏的右侧，正宗的E7的订阅图标位置，呵呵。没订阅的同学可以顺便点点 <img src='http://www.whisperer.name/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><strong><span style="color: #cc214e;">PS1：</span></strong></p>
<p>　　最近增加了两个页面，不知道有同学发现没有，<a  href="http://www.whisperer.name/joke/" target="_blank">Joke</a>  和 <a  href="http://www.whisperer.name/video/" target="_blank">Video</a>。</p>
<p>　　<a  href="http://www.whisperer.name/joke/" target="_blank">Joke</a>，其实是安装的另外一个WordPress，新的模板，用来收集一些好玩儿的文字，成人内容居多，小朋友请自行绕道。</p>
<p>　　<a  href="http://www.whisperer.name/video/" target="_blank">Video</a>，是我的视频收集页面，一些只看一遍觉得不过瘾的视频。</p>
<p><span style="color: #cc214e;"><strong>PS2：</strong></span></p>
<p>　　应该也同学有这样的感受，时不时会有人来问“你这里、这里和这里怎么实现的啊”之类的问题。我是一个小小菜鸟，不懂什么php、js，甚至连css、html都没真正学过。可恨的是，我对别人的新奇功能还特别感兴趣，这时我会首先翻翻他的文章，看看有没有相关的介绍教程，或者查看下他js、css，找点相关线索，实在没办法才会请教。</p>
<p>　　从上篇文章列出我的使用的插件后，加上我陆陆续续介绍过的功能，现在我的博客已经没有秘密了。另外如果你对这个主题的功能感兴趣的话，请参考<a  href="http://www.neoease.com/inove/" target="_blank">iNove</a>，如果你喜欢它的外观的话，请移步<a  href="http://www.esvista.net/design/theme-e7-v1.html" target="_blank">E7</a>  <img src='http://www.whisperer.name/wp-includes/images/smilies/icon_razz.gif' alt=':razz:' class='wp-smiley' /> </p>
<p>　　当然了，有问题还可以随时问我，只要我知道的，保证也会让你知道。话说，我喜欢别人从我这里获得满足感。</p>
<p><br class="spacer_" /></p>
<p><span style="color: #cc214e;">呃，其实这篇文章好水。</span></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>2009/08/24 -- <a  href="http://www.whisperer.name/2009/08/removing-the-dashed-box-around-links/" title="去除IE和Firefox中链接的虚线框">去除IE和Firefox中链接的虚线框</a> (22)</li><li>2009/09/01 -- <a  href="http://www.whisperer.name/2009/09/improve-the-google-custom-search-results-of-inove/" title="美化iNove的Google自定义搜索">美化iNove的Google自定义搜索</a> (108)</li><li>2009/08/17 -- <a  href="http://www.whisperer.name/2009/08/feed-benefits/" title="订阅益于身心健康">订阅益于身心健康</a> (15)</li><li>2009/08/13 -- <a  href="http://www.whisperer.name/2009/08/ie6-go-to-hell/" title="IE6去死！">IE6去死！</a> (21)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.whisperer.name/2009/10/gradual-change/feed/</wfw:commentRss>
		<slash:comments>63</slash:comments>
		</item>
		<item>
		<title>美化iNove的Google自定义搜索</title>
		<link>http://www.whisperer.name/2009/09/improve-the-google-custom-search-results-of-inove/</link>
		<comments>http://www.whisperer.name/2009/09/improve-the-google-custom-search-results-of-inove/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 11:56:54 +0000</pubDate>
		<dc:creator>whisperer</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[知识技巧]]></category>
		<category><![CDATA[iNove]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[美化]]></category>

		<guid isPermaLink="false">http://www.whisperer.name/?p=42</guid>
		<description><![CDATA[iNove主题在后台的“主题选项”中设置了一个定制Google自定义搜索的功能，以优化WordPress的搜索结果。我一直没有启用这个功能，直到看到A-shun同学折腾后的搜索页面，恍然大悟，原来我也是想要搜索结果在当前主题内展示，而不是跳转到Google的页面。我也做出了一些改变，把搜索结果页面整合到了主题中，具体的效果，可以到NeoEase和Let's whisper随便搜索些东西来比较一下。 [比较这里吧：前 &#124; 后] 其中参考了我爱水煮鱼的教程，如果你不是用iNove，可以直接看那篇教程。以下我就针对iNove，开始： 1、登陆到Google自定义搜索，创建你的自定义搜索。（此处略去x百字） 2、创建一个搜索结果模板。把下面代码保存为cse.php，上传至iNove主题的文件夹。（cse意为custom search engine，你可以换成其他） &#60;?php/*Template Name: cse*/?&#62;&#60;?php get_header(); ?&#62;&#60;div id="cse-search-results"&#62;&#60;/div&#62;&#60;script type="text/javascript"&#62;&#160; var googleSearchIframeName = "cse-search-results";&#160; var googleSearchFormName = "cse-search-box";&#160; var googleSearchFrameWidth =600;&#160; var googleSearchDomain = "www.google.com";&#160; var googleSearchPath = "/cse";&#60;/script&#62;&#60;script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"&#62;&#60;/script&#62;&#60;?php get_footer(); ?&#62; var googleSearchFrameWidth =605为搜索结果页面的宽度，iNove默认的宽度是605。 3、在WordPress中创建一个页面，比如我的，地址为http://www.whisperer.name/cse，标题为Search Result，模板选择刚刚创建的cse。 然后在导航栏隐藏这个页面，在iNove的文件夹找到templates/header.php，找到下面一行： wp_list_pages('title_li=0&#38;sort_column=menu_order'); 改成， wp_list_pages('title_li=0&#38;sort_column=menu_order&#38;exclude=41'); 其中exclude=41意思是在导航栏隐藏这个cse页面，41是这个页面的ID，在/wp-admin/edit-pages.php页面，鼠标悬浮在页面的标题上，在下面状态栏就可以看到post=41。 4、定义搜索框。仍然是templates/header.php，找到下面代码: &#60;form action="http://www.google.com/cse" method="get"&#62;     &#60;div [...]]]></description>
			<content:encoded><![CDATA[<p><a  href="http://www.neoease.com/inove/" target="_blank">iNove</a>主题在后台的“主题选项”中设置了一个定制Google自定义搜索的功能，以优化WordPress的搜索结果。我一直没有启用这个功能，直到看到<a  href="http://www.a-shun.com/" target="_blank">A-shun</a>同学<a  href="http://www.a-shun.com/archives/21257.html" target="_blank">折腾</a>后的搜索页面，恍然大悟，原来我也是想要搜索结果在当前主题内展示，而不是跳转到Google的页面。我也做出了一些改变，把搜索结果页面整合到了主题中，具体的效果，<span style="text-decoration: line-through;">可以到</span><a  href="http://www.neoease.com/" target="_blank"><span style="text-decoration: line-through;">NeoEase</span></a><span style="text-decoration: line-through;">和</span><a  href="http://www.whisperer.name/"><span style="text-decoration: line-through;">Let's whisper</span></a><span style="text-decoration: line-through;">随便搜索些东西来比较一下。</span> [比较这里吧：<a  href="http://www.google.com/cse?q=inove&#038;cx=014782006753236413342%3A1ltfrybsbz4&#038;ie=UTF-8" target="_blank">前</a> | <a  href="http://www.neoease.com/cse/?q=inove&#038;cx=014782006753236413342%3A1ltfrybsbz4&#038;cof=FORID%3A11&#038;ie=UTF-8#993" target="_blank">后</a>]</p>
<p>其中参考了<a  href="http://fairyfish.net/2008/04/29/integrate-google-custom-search-into-wordpress/" target="_blank">我爱水煮鱼的教程</a>，如果你不是用iNove，可以直接看那篇教程。以下我就针对iNove，开始：</p>
<p>1、登陆到<a  href="http://www.google.com/coop/cse/">Google自定义搜索</a>，创建你的自定义搜索。（此处略去x百字）</p>
<p>2、创建一个搜索结果模板。把下面代码保存为<span style="background-color: #dddddd;">cse.php</span>，上传至iNove主题的文件夹。（cse意为custom search engine，你可以换成其他）<span id="more-42"></span></p>
<p><DIV style="BACKGROUND-COLOR: #1e1e27; FONT-FAMILY: 'Consolas','Lucida Console','Courier New'; COLOR: #d0d0d0" class=source jQuery1255539165484="15"><SPAN style="COLOR: #cd2828; FONT-WEIGHT: bold">&lt;?php</SPAN><BR><SPAN style="FONT-STYLE: italic; COLOR: #999999">/*</SPAN><BR><SPAN style="FONT-STYLE: italic; COLOR: #999999">Template Name: cse</SPAN><BR><SPAN style="FONT-STYLE: italic; COLOR: #999999">*/</SPAN><BR><SPAN style="COLOR: #cd2828; FONT-WEIGHT: bold">?&gt;</SPAN><BR><BR><SPAN style="COLOR: #cd2828; FONT-WEIGHT: bold">&lt;?php</SPAN> <SPAN style="COLOR: #d0d0d0">get_header</SPAN>(); <SPAN style="COLOR: #cd2828; FONT-WEIGHT: bold">?&gt;</SPAN><BR><SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;div</SPAN> <SPAN style="COLOR: #bbbbbb">id=</SPAN><SPAN style="COLOR: #ed9d13">"cse-search-results"</SPAN><SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&gt;&lt;/div&gt;</SPAN><BR><SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;script </SPAN><SPAN style="COLOR: #bbbbbb">type=</SPAN><SPAN style="COLOR: #ed9d13">"text/javascript"</SPAN><SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&gt;</SPAN><BR>&nbsp; <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">var</SPAN> <SPAN style="COLOR: #d0d0d0">googleSearchIframeName</SPAN> <SPAN style="COLOR: #d0d0d0">=</SPAN> <SPAN style="COLOR: #ed9d13">"cse-search-results"</SPAN>;<BR>&nbsp; <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">var</SPAN> <SPAN style="COLOR: #d0d0d0">googleSearchFormName</SPAN> <SPAN style="COLOR: #d0d0d0">=</SPAN> <SPAN style="COLOR: #ed9d13">"cse-search-box"</SPAN>;<BR>&nbsp; <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">var</SPAN> <SPAN style="COLOR: #d0d0d0">googleSearchFrameWidth</SPAN> <SPAN style="COLOR: #d0d0d0">=</SPAN><SPAN style="COLOR: #3677a9">600</SPAN>;<BR>&nbsp; <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">var</SPAN> <SPAN style="COLOR: #d0d0d0">googleSearchDomain</SPAN> <SPAN style="COLOR: #d0d0d0">=</SPAN> <SPAN style="COLOR: #ed9d13">"www.google.com"</SPAN>;<BR>&nbsp; <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">var</SPAN> <SPAN style="COLOR: #d0d0d0">googleSearchPath</SPAN> <SPAN style="COLOR: #d0d0d0">=</SPAN> <SPAN style="COLOR: #ed9d13">"/cse"</SPAN>;<BR><SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;/script&gt;</SPAN><BR><SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;script </SPAN><SPAN style="COLOR: #bbbbbb">type=</SPAN><SPAN style="COLOR: #ed9d13">"text/javascript"</SPAN> <SPAN style="COLOR: #bbbbbb">src=</SPAN><SPAN style="COLOR: #ed9d13">"http://www.google.com/afsonline/show_afs_search.js"</SPAN><SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&gt;&lt;/script&gt;</SPAN><BR><SPAN style="COLOR: #cd2828; FONT-WEIGHT: bold">&lt;?php</SPAN> <SPAN style="COLOR: #d0d0d0">get_footer</SPAN>(); <SPAN style="COLOR: #cd2828; FONT-WEIGHT: bold">?&gt;</SPAN><BR></DIV></p>
<p><span style="background-color: #dddddd;">var googleSearchFrameWidth =605</span>为搜索结果页面的宽度，iNove默认的宽度是605。</p>
<p>3、在WordPress中创建一个页面，比如我的，地址为<span style="background-color: #dddddd;">http://www.whisperer.name/cse</span>，标题为<span style="background-color: #dddddd;">Search Result</span>，模板选择刚刚创建的cse。</p>
<p>然后在导航栏隐藏这个页面，在iNove的文件夹找到<span style="background-color: #dddddd;">templates/header.php</span>，找到下面一行：</p>
<div class="source" style="BACKGROUND-COLOR: #1e1e27; FONT-FAMILY: 'Consolas','Lucida Console','Courier New'; COLOR: #d0d0d0"><span style="COLOR: #d0d0d0">wp_list_pages('title_li=0&amp;sort_column=menu_order');</span></div>
<p>改成，</p>
<div class="source" style="BACKGROUND-COLOR: #1e1e27; FONT-FAMILY: 'Consolas','Lucida Console','Courier New'; COLOR: #d0d0d0"><span style="COLOR: #d0d0d0">wp_list_pages('title_li=0&amp;sort_column=menu_order&amp;exclude=41');</span></div>
<p>其中<span style="background-color: #dddddd;">exclude=41</span>意思是在导航栏隐藏这个cse页面，<span style="background-color: #dddddd;">41</span>是这个页面的ID，在<span style="background-color: #dddddd;">/wp-admin/edit-pages.php</span>页面，鼠标悬浮在页面的标题上，在下面状态栏就可以看到<span style="background-color: #dddddd;">post=41</span>。</p>
<p>4、定义搜索框。仍然是<span style="background-color: #dddddd;">templates/header.php</span>，找到下面代码:</p>
<div class="source" style="BACKGROUND-COLOR: #1e1e27; FONT-FAMILY: 'Consolas','Lucida Console','Courier New'; COLOR: #d0d0d0"><span style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;form</span> <span style="COLOR: #bbbbbb">action=</span><span style="COLOR: #ed9d13">"http://www.google.com/cse"</span> <span style="COLOR: #bbbbbb">method=</span><span style="COLOR: #ed9d13">"get"</span><span style="COLOR: #6ab825; FONT-WEIGHT: bold">&gt;</span><br />
    <span style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;div</span> <span style="COLOR: #bbbbbb">class=</span><span style="COLOR: #ed9d13">"content"</span><span style="COLOR: #6ab825; FONT-WEIGHT: bold">&gt;</span><br />
        <span style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;input</span> <span style="COLOR: #bbbbbb">type=</span><span style="COLOR: #ed9d13">"text"</span> <span style="COLOR: #bbbbbb">class=</span><span style="COLOR: #ed9d13">"textfield"</span> <span style="COLOR: #bbbbbb">name=</span><span style="COLOR: #ed9d13">"q"</span> <span style="COLOR: #bbbbbb">size=</span><span style="COLOR: #ed9d13">"24"</span> <span style="COLOR: #6ab825; FONT-WEIGHT: bold">/&gt;</span><br />
        <span style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;input</span> <span style="COLOR: #bbbbbb">type=</span><span style="COLOR: #ed9d13">"submit"</span> <span style="COLOR: #bbbbbb">class=</span><span style="COLOR: #ed9d13">"button"</span> <span style="COLOR: #bbbbbb">name=</span><span style="COLOR: #ed9d13">"sa"</span> <span style="COLOR: #bbbbbb">value=</span><span style="COLOR: #ed9d13">""</span> <span style="COLOR: #6ab825; FONT-WEIGHT: bold">/&gt;</span><br />
        <span style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;input</span> <span style="COLOR: #bbbbbb">type=</span><span style="COLOR: #ed9d13">"hidden"</span> <span style="COLOR: #bbbbbb">name=</span><span style="COLOR: #ed9d13">"cx"</span> <span style="COLOR: #bbbbbb">value=</span><span style="COLOR: #ed9d13">"</span><span style="COLOR: #cd2828; FONT-WEIGHT: bold">&lt;?php</span> <span style="COLOR: #6ab825; FONT-WEIGHT: bold">echo</span> <span style="COLOR: #40ffff">$options</span><span style="COLOR: #d0d0d0">[</span><span style="COLOR: #ed9d13">'google_cse_cx'</span><span style="COLOR: #d0d0d0">];</span> <span style="COLOR: #cd2828; FONT-WEIGHT: bold">?&gt;</span><span style="COLOR: #ed9d13">"</span> <span style="COLOR: #6ab825; FONT-WEIGHT: bold">/&gt;</span><br />
        <span style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;input</span> <span style="COLOR: #bbbbbb">type=</span><span style="COLOR: #ed9d13">"hidden"</span> <span style="COLOR: #bbbbbb">name=</span><span style="COLOR: #ed9d13">"ie"</span> <span style="COLOR: #bbbbbb">value=</span><span style="COLOR: #ed9d13">"UTF-8"</span> <span style="COLOR: #6ab825; FONT-WEIGHT: bold">/&gt;</span><br />
    <span style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;/div&gt;</span><br />
<span style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;/form&gt;</span></div>
<p>改成，</p>
<p><DIV style="BACKGROUND-COLOR: #1e1e27; FONT-FAMILY: 'Consolas','Lucida Console','Courier New'; COLOR: #d0d0d0" class=source jQuery1255538284046="15"><SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;form</SPAN> <SPAN style="COLOR: #bbbbbb">action=</SPAN><SPAN style="COLOR: #ed9d13">"</SPAN><SPAN style="COLOR: #cd2828; FONT-WEIGHT: bold">&lt;?php</SPAN> <SPAN style="COLOR: #d0d0d0">bloginfo</SPAN>(<SPAN style="COLOR: #ed9d13">'wpurl'</SPAN>) <SPAN style="COLOR: #cd2828; FONT-WEIGHT: bold">?&gt;</SPAN><SPAN style="COLOR: #ed9d13">/cse"</SPAN> <SPAN style="COLOR: #bbbbbb">id=</SPAN><SPAN style="COLOR: #ed9d13">"cse-search-box"</SPAN><SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&gt;</SPAN><BR>&nbsp; <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;div</SPAN> <SPAN style="COLOR: #bbbbbb">class=</SPAN><SPAN style="COLOR: #ed9d13">"content"</SPAN><SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&gt;</SPAN><BR>&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;input</SPAN> <SPAN style="COLOR: #bbbbbb">type=</SPAN><SPAN style="COLOR: #ed9d13">"hidden"</SPAN> <SPAN style="COLOR: #bbbbbb">name=</SPAN><SPAN style="COLOR: #ed9d13">"cx"</SPAN> <SPAN style="COLOR: #bbbbbb">value=</SPAN><SPAN style="COLOR: #ed9d13">"</SPAN><SPAN style="COLOR: #cd2828; FONT-WEIGHT: bold">&lt;?php</SPAN> <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">echo</SPAN> <SPAN style="COLOR: #40ffff">$options</SPAN><SPAN style="COLOR: #d0d0d0">[</SPAN><SPAN style="COLOR: #ed9d13">'google_cse_cx'</SPAN><SPAN style="COLOR: #d0d0d0">];</SPAN> <SPAN style="COLOR: #cd2828; FONT-WEIGHT: bold">?&gt;</SPAN><SPAN style="COLOR: #ed9d13">"</SPAN> <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">/&gt;</SPAN><BR>&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;input</SPAN> <SPAN style="COLOR: #bbbbbb">type=</SPAN><SPAN style="COLOR: #ed9d13">"hidden"</SPAN> <SPAN style="COLOR: #bbbbbb">name=</SPAN><SPAN style="COLOR: #ed9d13">"cof"</SPAN> <SPAN style="COLOR: #bbbbbb">value=</SPAN><SPAN style="COLOR: #ed9d13">"FORID:11"</SPAN> <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">/&gt;</SPAN><BR>&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;input</SPAN> <SPAN style="COLOR: #bbbbbb">type=</SPAN><SPAN style="COLOR: #ed9d13">"hidden"</SPAN> <SPAN style="COLOR: #bbbbbb">name=</SPAN><SPAN style="COLOR: #ed9d13">"ie"</SPAN> <SPAN style="COLOR: #bbbbbb">value=</SPAN><SPAN style="COLOR: #ed9d13">"UTF-8"</SPAN> <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">/&gt;</SPAN><BR>&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;input</SPAN> <SPAN style="COLOR: #bbbbbb">type=</SPAN><SPAN style="COLOR: #ed9d13">"text"</SPAN> <SPAN style="COLOR: #bbbbbb">class=</SPAN><SPAN style="COLOR: #ed9d13">"textfield"</SPAN> <SPAN style="COLOR: #bbbbbb">id=</SPAN><SPAN style="COLOR: #ed9d13">"searchtxt"</SPAN> <SPAN style="COLOR: #bbbbbb">name=</SPAN><SPAN style="COLOR: #ed9d13">"q"</SPAN> <SPAN style="COLOR: #bbbbbb">size=</SPAN><SPAN style="COLOR: #ed9d13">"24"</SPAN> <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">/&gt;</SPAN><BR>&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;input</SPAN> <SPAN style="COLOR: #bbbbbb">type=</SPAN><SPAN style="COLOR: #ed9d13">"submit"</SPAN> <SPAN style="COLOR: #bbbbbb">class=</SPAN><SPAN style="COLOR: #ed9d13">"button"</SPAN> <SPAN style="COLOR: #bbbbbb">id=</SPAN><SPAN style="COLOR: #ed9d13">"searchbtn"</SPAN> <SPAN style="COLOR: #bbbbbb">name=</SPAN><SPAN style="COLOR: #ed9d13">"sa"</SPAN> <SPAN style="COLOR: #bbbbbb">value=</SPAN><SPAN style="COLOR: #ed9d13">""</SPAN> <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">/&gt;</SPAN><BR>&nbsp; <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;/div&gt;</SPAN><BR><SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;/form&gt;</SPAN><BR></DIV></p>
<p>其中第一行的<span style="background-color: #dddddd;">&lt; ?php bloginfo('wpurl') ?&gt;/cse</span>是刚刚你创建的搜索结果页面的地址。</p>
<p>5、在iNove的主题选项中，勾选使用Google自定义引擎，填上你的CX值。</p>
<p>这样，所有的工作都做完了。你可以随时在WordPress默认搜索和Google自定义搜索之间进行切换。并且不需要再另外用css定义搜索框了，已经沿用原来的搜索框样式了。</p>
<p><span style="color: #800000;">PS：这个是可以在后台切换两种搜索模式，应该可以在搜索框旁边定义一个按钮，让访客可以自行选择。刚入WP的时候在某个博客上看到过，谁知道怎么定义的话不妨共享出来。</span></p>
<p><span style="color: #800000;"><strong>2009/09/24  update:</strong> </span><span style="color: #800000;">在IE6下出现错位的同学，请更新一下第4步中的代码，感谢<a  id="commentauthor-1074" rel="external nofollow" href="http://bigyang.com/">bigyang </a>。</span></p>
<p><br class="spacer_" /></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>2011/08/06 -- <a  href="http://www.whisperer.name/2011/08/some-theme-changes/" title="iNove修改小记">iNove修改小记</a> (45)</li><li>2011/10/10 -- <a  href="http://www.whisperer.name/2011/10/ads-actived/" title="广告来了">广告来了</a> (70)</li><li>2011/09/07 -- <a  href="http://www.whisperer.name/2011/09/conflict-between-weibo-share-and-google-site-verification/" title="微博分享和Google网站验证疑似冲突">微博分享和Google网站验证疑似冲突</a> (16)</li><li>2011/08/16 -- <a  href="http://www.whisperer.name/2011/08/free-virtual-host-form-cosbeta/" title="换虚拟主机啦">换虚拟主机啦</a> (31)</li><li>2011/07/28 -- <a  href="http://www.whisperer.name/2011/07/recall-gravatar/" title="解决Gravatar头像不显示">解决Gravatar头像不显示</a> (34)</li><li>2009/10/11 -- <a  href="http://www.whisperer.name/2009/10/gradual-change/" title="网页渐变效果">网页渐变效果</a> (63)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.whisperer.name/2009/09/improve-the-google-custom-search-results-of-inove/feed/</wfw:commentRss>
		<slash:comments>108</slash:comments>
		</item>
		<item>
		<title>去除IE和Firefox中链接的虚线框</title>
		<link>http://www.whisperer.name/2009/08/removing-the-dashed-box-around-links/</link>
		<comments>http://www.whisperer.name/2009/08/removing-the-dashed-box-around-links/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 09:13:36 +0000</pubDate>
		<dc:creator>whisperer</dc:creator>
				<category><![CDATA[知识技巧]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[美化]]></category>

		<guid isPermaLink="false">http://www.whisperer.name/?p=34</guid>
		<description><![CDATA[在IE和Firefox下，点击超链接时会产生一个虚线框， 虽然几乎所有的网站都会有， 可是个人觉得非常影响美观（在Chrome和Opera中没有） 细心的同学可能早就发现了，点击whisperer.name上所有的链接是没有这个恶心的虚线框的。 下面我就介绍一下如何在WordPress中实现消除链接元素周围的虚线框。 Firefox中的虚线框很好去除。对于IE浏览器，我们用.htc的脚本文件来解决这个问题。 1、把下面代码保存为一个扩展名为.htc的文件（或者直接下载我的文件）：     function example()             {             this.blur(); } 把这个文件上传到你的网站上，得到一个地址。 2、修改你当前主题的style.css文件，追加以下代码： a {behavior:url(你的.htc文件地址)}  /*去除IE中的链接虚线框*/ a:focus{outline:0;}  /*去除Firefox中的链接虚线框*/ 保存之后就可以了，享受没有虚线框束缚的美感吧。 PS：后来发现这个方法有一个很大的缺点，具体见下面8#的评论。 这里还有另外一个方法，用jQuery实现，方法来自willin $(&#39;a,input[type=&#34;submit&#34;]&#39;).bind(&#39;focus&#39;,function(){if(this.blur){ this.blur();}}); 顺便说，如果用 noConflict, $ 要还原 jQuery, 不能用 $，$(’a,input[type="submit"]‘)…..要改成 jQuery(’a,input[type="submit"]‘)….. Related Posts2009/10/11 -- 网页渐变效果 (63)2009/09/01 -- 美化iNove的Google自定义搜索 (108)2009/08/13 -- IE6去死！ (21)]]></description>
			<content:encoded><![CDATA[<p>在IE和Firefox下，点击超链接时会产生一个虚线框，<br />
虽然几乎所有的网站都会有，<br />
可是个人觉得非常影响美观（在Chrome和Opera中没有）</p>
<p>细心的同学可能早就发现了，点击whisperer.name上所有的链接是没有这个恶心的虚线框的。<br />
下面我就介绍一下如何在WordPress中实现消除链接元素周围的虚线框。</p>
<p><span id="more-34"></span>Firefox中的虚线框很好去除。对于IE浏览器，我们用.htc的脚本文件来解决这个问题。</p>
<p>1、把下面代码保存为一个扩展名为<span style="background-color: #ededed;">.htc</span>的文件（或者直接下载<a  href="http://www.whisperer.name/killdash/killdash.htc" target="_blank">我的文件</a>）：</p>
<div class="source" style="BACKGROUND-COLOR: #1e1e27; FONT-FAMILY: 'Consolas','Lucida Console','Courier New'; COLOR: #d0d0d0"><span style="COLOR: #d0d0d0"><</span><span style="COLOR: #d0d0d0">public</span><span style="COLOR: #d0d0d0">:</span><span style="COLOR: #d0d0d0">attach</span> <span style="COLOR: #d0d0d0">event</span><span style="COLOR: #d0d0d0">=</span><span style="COLOR: #ed9d13">"onfocus"</span> <span style="COLOR: #d0d0d0">onevent</span><span style="COLOR: #d0d0d0">=</span><span style="COLOR: #ed9d13">"example()"</span><span style="COLOR: #d0d0d0">/></span><br />
<span style="COLOR: #d0d0d0"><</span><span style="COLOR: #d0d0d0">script</span> <span style="COLOR: #d0d0d0">language</span><span style="COLOR: #d0d0d0">=</span><span style="COLOR: #ed9d13">"javascript"</span><span style="COLOR: #d0d0d0">></span><br />
    <span style="COLOR: #6ab825; FONT-WEIGHT: bold">function</span> <span style="COLOR: #d0d0d0">example</span>()<br />
            <span style="COLOR: #d0d0d0">{</span><br />
            <span style="COLOR: #6ab825; FONT-WEIGHT: bold">this</span><span style="COLOR: #d0d0d0">.</span><span style="COLOR: #d0d0d0">blur</span>();<br />
<span style="COLOR: #d0d0d0">}</span><br />
<span style="COLOR: #d0d0d0"></</span><span style="COLOR: #d0d0d0">script</span><span style="COLOR: #d0d0d0">></span></div>
<p>把这个文件上传到你的网站上，得到一个地址。</p>
<p>2、修改你当前主题的<span style="background-color: #ededed;">style.css</span>文件，追加以下代码：</p>
<div class="source" style="BACKGROUND-COLOR: #1e1e27; FONT-FAMILY: 'Consolas','Lucida Console','Courier New'; COLOR: #d0d0d0"><span style="COLOR: #6ab825; FONT-WEIGHT: bold">a</span> <span style="COLOR: #d0d0d0">{</span><span style="COLOR: #d0d0d0">behavior</span><span style="COLOR: #d0d0d0">:</span><span style="COLOR: #ffa500">url(你的.htc文件地址)</span><span style="COLOR: #d0d0d0">}</span>  <span style="FONT-STYLE: italic; COLOR: #999999">/*去除IE中的链接虚线框*/</span><br />
<span style="COLOR: #6ab825; FONT-WEIGHT: bold">a</span><span style="COLOR: #ffa500">:focus</span><span style="COLOR: #d0d0d0">{</span><span style="COLOR: #6ab825; FONT-WEIGHT: bold">outline</span><span style="COLOR: #d0d0d0">:</span><span style="COLOR: #3677a9">0</span><span style="COLOR: #d0d0d0">;}</span>  <span style="FONT-STYLE: italic; COLOR: #999999">/*去除Firefox中的链接虚线框*/</span></div>
<p>保存之后就可以了，享受没有虚线框束缚的美感吧。</p>
<p><span style="color: #800000;">PS：后来发现这个方法有一个很大的缺点，具体见下面<a  href="http://www.whisperer.name/2009/08/removing-the-dashed-box-around-links/#comment-236">8#</a>的评论。</span></p>
<p>这里还有另外一个方法，用jQuery实现，方法来自<a  href="http://willin.atbhost.net/" target="_blank">willin</a></p>
<div class="source" style="font-family: Consolas, 'Lucida Console', 'Courier New', Verdana; color: rgb(208, 208, 208); background-color: rgb(30, 30, 39); "> <span style="color: rgb(208, 208, 208); ">$</span>(<span style="color: rgb(237, 157, 19); ">&#39;a,input[type=&quot;submit&quot;]&#39;</span><span style="color: rgb(208, 208, 208); ">).</span><span style="color: rgb(208, 208, 208); ">bind</span>(<span style="color: rgb(237, 157, 19); ">&#39;focus&#39;</span><span style="color: rgb(208, 208, 208); ">,</span><span style="color: rgb(106, 184, 37); font-weight: bold; ">function</span><span style="color: rgb(208, 208, 208); ">(){</span><span style="color: rgb(106, 184, 37); font-weight: bold; ">if</span>(<span style="color: rgb(106, 184, 37); font-weight: bold; ">this</span><span style="color: rgb(208, 208, 208); ">.</span><span style="color: rgb(208, 208, 208); ">blur</span><span style="color: rgb(208, 208, 208); ">){</span> <span style="color: rgb(106, 184, 37); font-weight: bold; ">this</span><span style="color: rgb(208, 208, 208); ">.</span><span style="color: rgb(208, 208, 208); ">blur</span><span style="color: rgb(208, 208, 208); ">();}});</span></div>
<p>顺便说，如果用 noConflict, $ 要还原 jQuery, 不能用 $，$(’a,input[type="submit"]‘)…..要改成 jQuery(’a,input[type="submit"]‘)…..</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>2009/10/11 -- <a  href="http://www.whisperer.name/2009/10/gradual-change/" title="网页渐变效果">网页渐变效果</a> (63)</li><li>2009/09/01 -- <a  href="http://www.whisperer.name/2009/09/improve-the-google-custom-search-results-of-inove/" title="美化iNove的Google自定义搜索">美化iNove的Google自定义搜索</a> (108)</li><li>2009/08/13 -- <a  href="http://www.whisperer.name/2009/08/ie6-go-to-hell/" title="IE6去死！">IE6去死！</a> (21)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.whisperer.name/2009/08/removing-the-dashed-box-around-links/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
	</channel>
</rss>

