Hej,
znalazłem ciekawy skrypt:
http://wiadomosci.onet.pl/regionalne/krako...BQX__w.facebook
Czy ktoś wie jak to jest zrobione? Chciałbym zrobić podobną rzecz o moim mieście...
pozdrawiam
<script> $().ready(function(){ var width=$('.image2').width(); width=width/2; $('.image2').width(width); $('.image').bind('mousemove',function(e){ var x = e.pageX; $('.image2').width(x); }); }); </script> <style> .image{ background:url('1.jpg');width:600px;height:200px;position:absolute;z-index:0} .image2{ background:url('2.jpg');width:600px;height:200px;position:absolute;z-index:10;overflow:hidden} </style> </head> <body> <div class="image"> </div> </body>