Назначает функцию к событию mousemove для каждого элемента набора.
Данное событие обычно активируется, когда указатель двигается над областью элемента. Обработчику события передается одна переменная — объект события. В свойствах .clientX и .clientY находятся координаты указателя.
_____________________________________________________________________________________
Offset
Возвращаемый объект содержит два значение (сверху и слева) типа Float. Для фактического позиционирования браузеры обычно округляют эти значения до ближайшего целого. Этот метод работает только с видимыми элементами.
· .offset( coordinates )
CoordinatesAn object containing the properties top and left, which are integers indicating the new top and left coordinates for the elements.
· offset( function(index, coords) )
function(index, coords)A function to return the coordinates to set. Receives the index of the element in the collection as the first argument and the current coordinates as the second argument. The function should return an object with the new top and left properties.
$(document).ready(function(){
$(document).mousemove(function(event){
$('#mouseFollow').offset({top:event.pageY,left:event.pageX});
});
}); квадратик преследует курсор J
_____________________________________________________________________________________
:hover()
$(document).ready(function(){
$("div").hover(
function () {
$(this).addClass('hover');
},
function () {
$(this).removeClass('hover');
}
);
});

_____________________________________________________________________________________