Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. <!--BEGIN #searchform-->
  2. <form method="get" id="searchform" action="<?php echo home_url(); ?>/">
  3. <fieldset>
  4. <input type="text"
  5. name="s"
  6. id="s"
  7. value="<?php if($_GET['s']) {echo $_GET['s'];} else {echo 'Type and hit enter to search';} ?>" onfocus="if(this.value=='Type and hit enter to search'<?php if($_GET['s']) echo ' || this.value == \'' . $_GET['s'] . '\''; ?>) {this.value = '';}" onblur="if(this.value == '') {this.value = '<?php if($_GET['s']) {echo $_GET['s'];} else {echo 'Type and hit enter to search';} ?>';}" />
  8. </fieldset>
  9. <!--END #searchform-->
  10. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement