admin
Guest
|
 |
« on: July 10, 2009, 12:30: PM » |
|
Place this just above the </body> tag
<script type="text/javascript"> var inputs = document.getElementsByTagName("input"); for( var i = 0 ; i < inputs.length ; i++ ) { if(inputs.type=="text"||inputs.type=="password") { inputs.onfocus = function() { if(this.value==this.defaultValue) this.value = ''; } inputs.onblur = function() { if(this.value=='') this.value = this.defaultValue; } } } </script> </body>
|