In hover, the structure is
var a = 1;},
If I want to access a that was set in the mouseover part of this structure, or I want to change the value of a from the second function, do I have to create a global variable that can be accessed by both or is there a way to pass this variable back and forth between the two functions since they are both within the hover event?
I think I'd use .data() for that
alert( $(this).data('a') );
Perfect, thanks. I appreciate it.