Infuriating Search Result الاغضاب نتيجة البحث
April 17th, 2007 · by David Bradley نيسان / ابريل 17th ، 2007 من قبل ديفيد برادلي
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. واحدة من أكثر الظواهر الاغضاب على شبكة الانترنت هي المواقع التي لا تحطم المتصفح او بلوق ان ابدأ التحديث ، بل انه ليس مواقع الأخبار التي لا يبدو ان لها 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. لا ، انها قليلة تلك المواقع صناديق البحث التي ترى من المناسب ان تدرج كلمة "البحث" الصفعه في منتصف الشكل الذي لا تختفي عند النقر على مربع البحث الى ان تدخل كلمات البحث.
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. اذا كنت الانزلاق بالماوس عليك احيانا ينتهي الأمر مع كلمة "البحث" في بداية او نهاية ، او حتى في منتصف كلماتك الرئيسية -- signifsearchicant الارقام على سبيل المثال.
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 , webmasters please embed the following in your search form as appropriate: ، الرجاء تضمين مشرفي المواقع التالية في شكل من أشكال البحث حسب الاقتضاء :
<FORM> <form>
Search: <INPUT TYPE=text VALUE=”Search Text” ONFOCUS=”clearDefault(this)”> بحث : <inputtype=text value="search text" onfocus="cleardefault(this)">
</FORM> </ شكل>
(Similarly, if you insist on including the word “email” in your email subscription form then use (وبالمثل ، اذا كنت تصر على ادراج كلمة "البريد الالكتروني" في بريدك الالكتروني ثم استخدام استماره الاشتراك
Email: <INPUT TYPE=text VALUE=”E-Mail Address” ONFOCUS=”clearDefault(this)”> البريد الالكتروني : <inputtype=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”> <scripttype="text/javascript">
<!– <! --
function clearDefault(el) { وظيفة cleardefault (el) (
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?). انها كلها سهلة للغاية ويوفر علي الكثير من الغضب الشديد) هو ان كلمة؟). 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. يبدو المعطف ايضا.






















1 response so far ↓ 1 رد حتى الان ↓
David Bradley ديفيد برادلي // / / Apr 18, 2007 at 8:29 am 18 ابريل ، 2007 في الساعة 8:29
Apologies the > signs were’nt working properly in the original post, fixed now فان الاعتذار> علامات were'nt يعمل بشكل صحيح في الأصل وظيفة ثابتة الآن
Leave a Comment ترك التعليق