[jQuery] move div according to mouse X position
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=531004419-23102007><FONT face=Arial size=2>hello
friends,</FONT></SPAN></DIV>
<DIV><SPAN class=531004419-23102007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=531004419-23102007><FONT face=Arial size=2>i'm (still) trying
to create this interaction: a very wide div scroll into view, according to the
user mouse position on the screen. It's something i've done in flash without
issue, but here in javascript, even with jquery i'm not too
successful.</FONT></SPAN></DIV>
<DIV><SPAN class=531004419-23102007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=531004419-23102007><FONT face=Arial size=2>the best result i
have so far is this: <A
href="http://m2.lab-au.com/proto_metalab2_datascape.htm">http://m2.lab-au.com/proto_metalab2_datascape.htm</A></FONT></SPAN></DIV>
<DIV><SPAN class=531004419-23102007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=531004419-23102007><FONT face=Arial size=2>but apparently i've
got some coordinates wrong. Can someone help me out/ give
advises?</FONT></SPAN></DIV>
<DIV><SPAN class=531004419-23102007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=531004419-23102007><FONT face=Arial size=2>here is my code: <A
href="http://m2.lab-au.com/_js/frontend/datascape.js">http://m2.lab-au.com/_js/frontend/datascape.js</A></FONT></SPAN></DIV>
<DIV><SPAN class=531004419-23102007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=531004419-23102007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=531004419-23102007><FONT face=Arial size=2>any help would be
*much* appreciated.</FONT></SPAN></DIV>
<DIV><SPAN class=531004419-23102007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=531004419-23102007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=531004419-23102007><FONT face=Arial size=2>Thanks a
lot!</FONT></SPAN></DIV>
<DIV><SPAN class=531004419-23102007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=531004419-23102007><FONT face=Arial
size=2>alexandre</FONT></SPAN></DIV></BODY></HTML>
<BR>
<P><FONT SIZE=2>Ce message Envoi est certifié sans virus connu.<BR>
Analyse effectuée par AVG.<BR>
Version: 7.5.488 / Base de données virus: 269.15.6/1086 - Date: 22/10/2007 19:57<BR>
</FONT> </P>