Nuestro conocimiento compartido. Nuestro tesoro compartido. Wikipedia.
ShareCode
Permalink: http://www.treeweb.es/u/974/ 01/02/2011

ShareCode

1 <div id="foco" class="foco">Efecto linterna<br>Rechaza ley SOPA</div>2 3 <style type="text/css">4 .foco {5 z-index:9999999;6 text-align:center;7 font-size:50px;8 position:fixed;9 top:0;10 left:0;11 right:0;12 bottom:0;13 background:url('/u/1179') center center no-repeat;14 }15 </style>16 <script type="text/javascript">17 window.addEventListener('load',function(event) {18  document.getElementById('foco').addEventListener('mousemove', function(event){19 this.style.backgroundPosition = (event.clientX-2048)+'px '+(event.clientY-2048)+'px';20 }, false);21  document.getElementById('foco').addEventListener('click', function(event){22  this.style.display = 'none';23 }, false);24 25 },true);26 </script>27 
Enlace
El enlace para compartir es: