HTML5 Placeholders for troublesome browsers (ie. IE9)
$(function() {
if(!$.support.placeholder) {
var active = document.activeElement;
$('textarea').each(function(index, element) {
if($(this).val().length == 0) {
$(this).html($(this).attr('id')).addClass('hasPlaceholder');
}
});
$('input, textarea').focus(function () {
if ($(this).attr('placeholder') != '' && $(this).val() == $(this).attr('placeholder')) {
$(this).val('').removeClass('hasPlaceholder');
}
}).blur(function () {
if (($(this).attr('placeholder') != '' && ($(this).val() == '' || $(this).val() == $(this).attr('placeholder')))) {
$(this).val($(this).attr('placeholder')).addClass('hasPlaceholder');
//$(this).css('background', 'red');
}
});
$(':text').blur();
$(active).focus();
$('form').submit(function () {
$(this).find('.hasPlaceholder').each(function() { $(this).val(''); });
});
}
});
ie  placeholder  jquery  js  script 
12 days ago
How To Run Multiple Dropbox Accounts Simultaneously [Mac]
Clean Up Your Mac OS X macpaw.com/CleanMacOSX
Clean Mac is Happy and Fast Mac. Download CleanMyMac Now.
dropbox 
november 2011
applescripts for pomodoro.app — Gist
tell application "Finder"
if (name of every application process) contains "Skype" then
tell application "Skype"
send command "SET USERSTATUS DND" script name "pomodoro"
send command "SET PROFILE MOOD_TEXT Available in 25 minutes" script name "pomodoro"
end tell

tell application "System Events"
set visible of process "Skype" to false
end tell
end if
end tell

tell application "Twitter" to quit

tell application "Notify" to quit
pomodoro  applescript 
november 2011
« earlier      
2.0 3d 4 agence agency ajax ancien animation apple application art aston astön avion bape Barredesignets Barrepersonnelle belge belgique belgium ben benjamin bigd bjuice blog book brand brice browser bruce bruxelles camera choc client clothing code color compte concurrents corio couleur croc croc-in css david de deaxon denis design designer divx e-commerce e-tv ecommerce email etv facebook fashion film firefox firefox_toolbar fixie fixies flash flickr fm font for_bjuice format fournisseurs france free futura galerie gallery game girl google gps graffiti grafiti graph graphisme gsm house html html5 icon icone icones icons ie illustration iloveyourtshirt image in Informations internet iphone ipod itunes java javascript jquery js julien karmaloop kitch/7000 Laser laurent led LienssurFirefoxetMozilla logo lolo mac magazine mail maison map marketing marque matam mathieu melvin MenuSignets mix mobile mode mons mozilla mp3 music musique news newsletter nike online os osx outils ox paris peinture photo photographe photography photos photoshop php pic pics picture pictures pierre plug plugin podcast police poster press print ps psp pub qr referencement rixensart rss saad safari screen script sculpture shirt shoes shop shopping sim site skate slimed sneaker sneakers social software son sound stickers store street t-shirt t-shirts tee tools torrent toys tshirt tv twitter typo ui url verfaillie veuch video vinch voiture vélo web webdesign website werbrouck wireframe word wordpress x xhtml youtube

Copy this bookmark:



description:


tags: