Posted By

dato on 09/14/11


Tagged

javascript jquery


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

spee66


jquery live


 / Published in: jQuery
 

  1. $(el).live("mouseover mouseout", function(event)
  2. {
  3. if ( event.type == "mouseover" )
  4. {
  5. // do something on mouseover
  6. $(this).css({'background-color':'#000','cursor':'pointer'});
  7. }else{
  8. // do something on mouseout
  9. $(this).css({'background-color':'#e0001a','cursor':'default'});
  10. }
  11. });

Report this snippet  

You need to login to post a comment.