3.149.214.32 |    

Navigation

Google Advertisement

clickclear
  1. function clickclear(thisfield, defaulttext) {
  2.  
  3. if (thisfield.value == defaulttext) {
  4. 	thisfield.value = "";
  5. }
  6.  
  7. }
  8.  
  9. function clickrecall(thisfield, defaulttext) {
  10.  
  11. if (thisfield.value == "") {
  12. 	thisfield.value = defaulttext;
  13. }
  14.  
  15. }
  16.  
  17. /*
  18.   <input type="text" id="searchbox" name="q" value="Search" onclick="clickclear(this, 'Search')" onblur="clickrecall(this,'Search')"/>
  19. */
Parsed in 0.001 seconds at 460.93 KB/s

Search
 
Full text search by name and content of a snippet.

User online
There are 6 users online.

Tags Cloud

Latest snippets
str2seconds
(Bash::Function)
is_integer
(Bash::Function)
file_rotate
(Bash::Function)
confirm
(Bash::Function)
is_workingtime
(Bash::Function)
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)