Infuriating Search Result激怒搜索结果
April 17th, 2007 · by David Bradley 2007年4月17日,大卫布拉德利
One of the most infuriating phenomena on the net isn’t sites that crash your browser or blogs that never update, it is not even news sites that don’t seem to have a newsfeed.其中一个最激怒的现象,就净是不是网站坠毁您的浏览器或博客从来没有更新,这不是新闻网站,甚至不似乎有一个新闻。 No, it is those little search boxes that webmasters see fit to include the word “search” smack in the middle of the form that don’t disappear when you click the search box to enter your search terms.没有,这是那些小搜索框的网站管理员,看到合适的,包括“搜索”一词的smack ,在中东的形式不消失,当您单击搜索框输入您的搜索字词。
Why are they infuriating?为什么他们激怒? Well, as soon as you realize that the form is not self-clearing, you have to then select the word that is already there (”search”) and either delete it before you add your own terms, or else select and type or paste over the top of it.那么,一旦你认识到的形式,不是自封的结算,你必须然后选择这个词已经是有( “搜索” )和删除它之前,您添加您自己的条款,否则,选择并输入或粘贴超过的顶部。 If you slip with your mouse you’ll occasionally end up with the word “search” at the start or finish, or even in the middle of your keywords - eg signifsearchicant figures.如果您的支路,与您的鼠标,您偶尔会结束与“搜索”一词在开始或完成,或什至在中东您的关键字-例如s ignifsearchicant数字。
There is a solution, but it has to be implemented by the webmaster, there is no quick fix from the browser’s perspective (unless you know different).有一个解决办法,但要推行,并由网站管理员,有没有快速解决从浏览器的角度来看, (除非你知道不同) 。 So, with thanks to因此,与感谢 Urban75 urban75 , webmasters please embed the following in your search form as appropriate: ,网站管理员,请嵌入以下在您的搜索适当形式:
<FORM>到<form>
Search: <INPUT TYPE=text VALUE=”Search Text” ONFOCUS=”clearDefault(this)”>搜索: <input type=text value="search text" onfocus="cleardefault(this)">
</FORM> < /表格>
(Similarly, if you insist on including the word “email” in your email subscription form then use (同样,如果你坚持,包括Word中的“电子邮件”在您的电子邮件订阅表格,然后使用
Email: <INPUT TYPE=text VALUE=”E-Mail Address” ONFOCUS=”clearDefault(this)”>电子邮件: <input type=text value="e-mail address" onfocus="cleardefault(this)">
in there instead.在那里,而是。
There is an additional step to make it work and it requires a wee script in the head section of your page:有一个额外的步骤,使它的工作,它需要一个脚本凌晨在头一节您的网页:
<script type=”text/javascript”> <script type="text/javascript">
<!– < ! -
function clearDefault(el) {功能cleardefault ( ) (
if (el.defaultValue==el.value) el.value = “”如果( el.defaultvalue == el.value ) el.value = “ ”
} )
// –> / / -> “
</script> < /脚本>
It’s all very easy and it saves a lot of infuriation (is that a word?).这一切都非常容易,而且节省了很多infuriation (这是一个字? ) 。 There is of course a much simpler solution that involves a serious assumption.当然还有更简单的解决办法,涉及到一个严重的假设。 You could simply assume that your readership knows what a search box is and will use it to search or if you have an email subscription box they will know to type their email address in order to subscribe, so you could just as easily leave out that “search” and “email” from the boxes’ startup settings in the first place.你可以简单地假设您的读者知道什么是搜索框,并会用它来搜寻或如果你有一个电子邮件订阅方块他们会知道,以键入他们的电子邮件地址,以便订阅,所以你可以用一样容易留下指出, “搜索“和”电子邮件“从箱子'启动设置摆在首位。 It looks slicker too.看来, slicker太。






















1 response so far ↓ 1回应到目前为止↓
David Bradley 大卫布拉德利 // / / Apr 18, 2007 at 8:29 am 2007年4月18日在上午8时29分
Apologies the > signs were’nt working properly in the original post, fixed now该道歉>的迹象,妥善were'nt工作在原来的职位,现在固定
Leave a Comment留下意见