عرض مشاركة واحدة
قديم 05-04-2013, 08:49 PM   #2
3li
مدون مميز
 
الصورة الرمزية 3li
 
تاريخ التسجيل: Dec 2012
الدولة: PaLeStinE
المشاركات: 343
افتراضي رد: كيف يمكن جعل النص داخل مربع البحث يختفي بمجرد النقر داخل المربع لكتابة كلمة البحث

اهلا اخي

جرب استبدل
كود PHP:
<form action='/search' id='w2b-searchform' method='get'>
    <
input id='s' name='q' type='text' value='search'/>
    <
input id='sbutton' src='http://img1.blogblog.com/img/blank.gif' type='image'/>
</
form
استبدلو بـ
كود PHP:
<form action='/search' class='searchform' method='get'>
<
input class='searchfield' id='q' name='q' onblur='if(this.value==&apos;&apos;)this.value=this.defaultValue;' onfocus='if(this.value==this.defaultValue)this.value=&apos;&apos;' type='text' value='Search games....'/>
</
form
وان شاء الله بيضبط معك

الدعم العربي

3li غير متواجد حالياً   رد مع اقتباس