Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--BEGIN #searchform-->
- <form method="get" id="searchform" action="<?php echo home_url(); ?>/">
- <fieldset>
- <input type="text"
- name="s"
- id="s"
- 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';} ?>';}" />
- </fieldset>
- <!--END #searchform-->
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement