Getting mouseover and mousedown to work together
Hello all,
So I am trying to get data from the user. I have a table with lots of different cells repersenting 15min of a day. I need them to select when they are avaliable. I can get it to work when they just roll their mouse over the cell, or i can if they click. But what I want is for the cell to change when the user holds the mouse down and slides it over the times. So like a mousedown and mouseover event. Anyone have any ideas?
this is what i have so far
$(function(){
$(".ava").each(function(){
$(this).bind('mouseover',(function(e) {
var color = $("input:checked").attr("alt");
$(this).attr({bgcolor: color});
}));
});
});
thanks in advanced,