jq.entry jQuery plugin to determine side which cursor enters or leaves the element. Demos and usages are available here.