Saturday, 15 June 2013

javascript - Manipulating hover state -



javascript - Manipulating hover state -

is there anyway manipulate :hover state through html dom like:

javascript:void("document.body.backgroundcolor=red");

in above code or through html dom can hover state defined not through css. want create background color reddish on hover state how can solve when above code placed in url?

jquery includes hover() function:

$('#mydiv').hover(function() { $('body').css('backgroundcolor', '#ff0000'); }, function() { $('body').css('backgroundcolor', '#fff'); });

javascript

No comments:

Post a Comment