jQuery获取鼠标位置
[code]
<script type="text/javascript">
$(document).ready(function(){
$('a[href^="mailto:%22]').addClass('mailto');
$('a[href$=".pdf"]').addClass('pdf');
$('th:parent').addClass('headline');
$('tr:odd').addClass('odd');
$('tr:even').addClass('even');
$('.testDiv').mousemove(function(e){
var xx=e.originalEvent.x||e.originalEvent.layerX||0;
var yy=e.originalEvent.y||e.originalEvent.layerY||0;
$(this).text(xx+'---'+yy);
});
});
</script>
[/code]
浙公网安备 33010602011771号