if(window.event){
var current = window.event.srcElement;
}else{
var current = event.target;
}

and then i am using current in the code
but i am not getting the value in either FF or IE