Tag: prototype
Highlight search keywords like google cache does
If you ever clicked on a google cache link you know their highlighting. Some time ago I wrote a prototype.js-based highlighiting script to achieve the same. Whenever someone finds your site in a search engine this scripts highlights the entered keywords. By default there are only a bunch of search engines included but you can [...]
Setting a visible default value for text and password inputs as well as textareas – empty on click
It’s really a simple thing: Give a textfield or a password field a visible default value, if the user clicks on it remove it and let him type… . This “ui-pattern” is often used instead of a label tag. You find it on many sites where there’s little space. Login-Forms with a default value that [...]
Subscribe