jQuery Input Focus/Blur

A quick snippet to clear an inputs default value on focus and revert to the original value on blur:



$('input[type=text]').focus(function()
{
if($(this).val() == (this.defaultValue)) $(this).val('') }).blur(function()
{
if(!$(this).val()) $(this).val(this.defaultValue)
});


The selector assumes input[type=text] only. You may add input[type=password], textarea, etc.

Sell your Rolex, cancel your Visa Card

Here is a list of companies that support SOPA and PIPA. I would expect RIAA and Time, but VISA and Monster Cable, come on. Half of these companies sell overpriced products to an uninformed public.

RIAA
News Corp
TimeWarner
Walmart
Nike
Tiffany
Chanel
Rolex
Sony
Juicy Couture
Ralph Lauren
VISA
Mastercard
Comcast
ABC
Dow Chemical
Monster Cable
Teamsters

New AIM iPhone App

AOL (that company which used to send you CD’s in the mail to use that awful software) has done something great. I’m talking about the new AIM application for the iPhone, more specifically it’s GUI.

They have redesigned everything including the brand (no more running yellow man, about time.) It’s interface is very sleek and intuitive, almost like the iPhone’s native iMessage with avatars and a cleaner, hipper look.

AIM iPhone App
See this beauty larger

Once more they have added another feature which allows you to connect with Facebook and Twitter.

Overall, good job AOL. How often have you heard that?