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留下意見