Hello, im Pablo Noel

Designer, Skater, Punk

Articulos marcados con el Tag ‘javascript’

How to create transparents backgrounds with CSS and Javascript

Esta entrada fue publicada el:

25October2010

5 Comentarios

Leer Articulo

One of the most used graphic resources on the web are transparent backgrounds, the main problem with them, besides the readability of the content inside, is the always hard cross browsing, so lets see  how we can do some workarounds in order to make some nice transparent backgrounds. The “opacity” problem The simple and short [...]

Clean inputs on focus

Esta entrada fue publicada el:

08June2010

2 Comentarios

Leer Articulo

A fast and nice way using Jquery to clean input values on focus, and put the default value back when is empty: $(“.clean”).each(function(){ var value = $(this).val(); $(this).focusin(function(){if($(this).val() == value){$(this).val(“”);};}); $(this).focusout(function(){if($(this).val() == ”){$(this).val(value);};}); }); Just add the class “.clean” to your input tag and voilá.

Categories

Social Links