con javascript
Código Javascript:
Ver original
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>contador</title> <style type="text/css"> <!-- .menu ul li{ background-image: url(jjjj.gif); background-position: 0px 0px; background-repeat: no-repeat; list-style-type: none; } --> </style> <script type="text/javascript"> function posicion(){ var cambiar = document.getElementById('me').backgroundPosition; var unos = document.getElementById("uno").innerHTML = cambiar; } </script> </head> <body > <div id="uno"></div> <div class="menu"> <ul> <li id="me" onClick="posicion()" >home</li> </ul> </div> </body> </html>