Skream Example Posted November 19, 2012 Report Share Posted November 19, 2012 deci am urmatorul cod in searchform.php<div id="search"> <form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>"> <div> <input type="text" value="Search..." name="s" id="s" /> <input type="submit" id="searchsubmit" value="" /> </div> </form></div><div class='clear'></div> Tot ce vreau sa implementez e ca dupa ce dau click in forma de la search,sa dispara instant "Search...",cum este in tema twenty eleven. Quote Link to comment Share on other sites More sharing options...
B7ackAnge7z Posted November 19, 2012 Report Share Posted November 19, 2012 Cred c? cea mai eficient? este:<input onfocus="if(this.value==this.defaultValue){this.value=''}" onblur="if(!this.value){this.value=this.defaultValue}" type="text" value="Search..." name="s" id="s" /> Quote Link to comment Share on other sites More sharing options...
Skream Example Posted November 19, 2012 Author Report Share Posted November 19, 2012 mersi Quote Link to comment Share on other sites More sharing options...
JohnDoe Posted November 19, 2012 Report Share Posted November 19, 2012 (edited) Sau poti folosi atributul HTML5 placeholder, dezavantajul este ca nu merge pe browsere foarte vechi.HTML5 input placeholder Attribute Edited November 19, 2012 by JohnDoe Quote Link to comment Share on other sites More sharing options...