Functino

My daily struggle with webdevelopment

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 [...]

Better looking radio buttons and checkboxes with FancyBoxes

Let’s face it: In most browsers forms are plain ugly. Each browser displays radio buttons and checkboxes different. If you ever wanted your radio buttons and checkboxes to look consistant in different browsers and wanted them to look prettier:  FancyBoxes is for you.
It’s a Prototype based class that let’s you convert checkboxes and radio [...]