Hi Andreas,
There are two problems here: a superfluous comma and a missing semicolon.
$("a.fdisplay").mousemove(function(e) { var cssObj = { left: e.pageX, top: e.pageY-190 // <-- removed comma }; // <-- added semicolon $("div.fbaloon").css(cssObj); }); --Karl _________________ Karl Swedberg www.englishrules.com www.learningjquery.com On Mar 28, 2008, at 2:15 PM, Andreas de Reggi wrote:
Hy! This is the code: $("a.fdisplay").mousemove(function(e) { var cssObj = { left: e.pageX, top: e.pageY-190, } $("div.fbaloon").css(cssObj); }); Opera gives me a syntax error: $("div.fbaloon").css(cssObj); ^ I'm trying to make a div folow my pointer on moving it across a link. What seems to be the problem. Can anyone please help?!?