Quand je passe la souris sur le lien h2, il devient vert:Comment faire en sorte qu'un élément ait un effet 'hover' (CSS) en survolant un autre élément en utilisant jQuery?
HTML:
<div class="project">
<a rel="bookmark" title="Permalink to Taiwantalk" href="http://localhost/asylum/?p=6">
<img class="attachment-post-thumbnail wp-post-image" width="278" height="128" title="taiwantalk_thumb" alt="taiwantalk_thumb" src="http://localhost/asylum/wp-content/uploads/2011/07/taiwantalk_thumb.png">
</a>
<h2>
<a rel="bookmark" title="Permalink to Taiwantalk" href="http://localhost/asylum/?p=6">Taiwantalk</a>
</h2>
<p>Design, HTML, CSS, Wordpress</p>
</div>
CSS:
#showcase h2 a:hover {
color: #682 !important;
}
Je voudrais que le h2 passe au vert quand je passe la souris le lien d'image trop .
Je pense que jQuery est la voie à suivre. Aucune suggestion?
pouvez-vous s'il vous plaît donner un exemple de comment faire cela avec jQuery? – alexchenco