<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type="text/javascript" language="javascript">
$(document).ready(function() {
$('ul li').mouseover(function(i) {
$('#txt').html($(this).index());
});
});
</script>
<ul>
<li>00000</li>
<li>11111</li>
<li>22222</li>
<li>33333</li>
</ul>
<div id="txt"></div>