Mouse location for Rollover
I have some simple rollover code here where I take the rel of an anchor and show the corresponding html ID.
I would like to set the location of the appearance of the tooltip using jquery. So, basically I want to secure the mouse location and append it to the CSS.
How do I do this?
- $('.toolTip').hover(
- function() {
- this.tip = this.rel;
- var tooltipID = "#" + this.rel;
- $(tooltipID).fadeIn(300);
- },
- function() {
- $('.tooltip').fadeOut(300);
- }
- );
Many Thanks in advance!
Nick