fix compatibility problem about mouse event for firefox and ie