05-04-2013, 08:49 PM
|
#2
|
مدون مميز
تاريخ التسجيل: 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=='')this.value=this.defaultValue;' onfocus='if(this.value==this.defaultValue)this.value=''' type='text' value='Search games....'/> </form>
وان شاء الله بيضبط معك
__________________
|
|
|