Pinkey

How to add search box to your blog

Dec 15th, 2012
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. ------------ PUT THIS CODE UNDER <HEAD> --------
  2.  
  3.  
  4. <meta name="text:Search Label" content="" />
  5. <script type="text/javascript" src="http://static.tumblr.com/p2evvtm/Wycm17d1m/tumblr_search_box.js"></script>
  6.  
  7.  
  8.  
  9.  
  10.  
  11. ------------PUT THIS CODE ON DISCRIPTION OR ANYWERE YOU WANT YOUR SEARCH BOX -------------
  12.  
  13.  
  14. <form onsubmit="return tagSearch(this)">
  15. <input type="text" name="tag" value="Search Our Blog" onfocus="if (this.value == '{text:Search Label}') {this.value=''}" onblur="if (this.value == '') {this.value='{text:Search Label}'}" />
  16. <input type="submit" value="Search" />
  17. </form>
Advertisement
Add Comment
Please, Sign In to add comment