Archive for August 18th, 2009
jQuery hoverpulse different image ratio fix
by z3n on Aug.18, 2009, under Coding
The jQuery’s extension hoverpulse created allows you to have images that resize themselfs on a mouse hover, very usefull when you need to have larger thumbs without showing the full image like other extensions does.
However hoverpulse has a issue when it comes to resize non square images, it simply stretches them, so I wrote this little custom version of hoverpulse in order to have this gap filled:
Links:
little jQuery to loop through checkboxes
by z3n on Aug.18, 2009, under Coding
This is a little function to loop throught a specific form or id with checkboxes, it will check if the checkbox is checked and then you can `do something`.
-
function (what)
-
{
-
jQuery.each(jQuery("#"+what+" :checkbox"),function(){
-
if (jQuery(this).is(':checked')) {
-
// do something
-
}
-
});
-
}