Test pour Wordpress.com

Syntaxe Highlighting

by toubia95

HTML

<a href="#">Gomme</a>
<p id="target">Texte a faire disparaître</p>

CSS

a {
    padding: 10px;
    display: inline-block;
    background-color: rgba(0, 100, 200, 1);
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 10px;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
    box-shadow: 0 0 5px rgba(0,200,200,1), 0 0 10px rgba(0,0,0,0.5) inset;
}

JavaScript

$('a').click(function() {   
    $('#target').hide('slow', function() {
        alert('Le texte a été effacé !');
    }); 
});