Result
jQuery
$('.hover').hover(
function(){$(this).addClass('on_hover');},
function(){$(this).removeClass('on_hover');}
);
css
.on_hover{color:red;}
html
<p class="hover">hover</p>
[myphp file=’jquery-other-snippets’]
$('.hover').hover(
function(){$(this).addClass('on_hover');},
function(){$(this).removeClass('on_hover');}
);
.on_hover{color:red;}
<p class="hover">hover</p>
[myphp file=’jquery-other-snippets’]