[jQuery] Re: Scrolling inside a div with mousemove

2008-11-07 Thread Jeffrey Kretz
(English) Subject: [jQuery] Re: Scrolling inside a div with mousemove Ah ok, So does that mean I need to calctulate how far up or down it can scroll? On Nov 7, 7:34 am, "Jeffrey Kretz" <[EMAIL PROTECTED]> wrote: > Ah, > > This part of the code: > > // Use

[jQuery] Re: Scrolling inside a div with mousemove

2008-11-07 Thread Dan
TECTED] On > > Behalf Of Dan > Sent: Thursday, November 06, 2008 8:27 PM > To: jQuery (English) > Subject: [jQuery] Re: Scrolling inside a div with mousemove > > Hi Jeffrey, > > Thank you for your reply, however I can't seem to get your code to > work. > >

[jQuery] Re: Scrolling inside a div with mousemove

2008-11-06 Thread Jeffrey Kretz
ssage- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan Sent: Thursday, November 06, 2008 8:27 PM To: jQuery (English) Subject: [jQuery] Re: Scrolling inside a div with mousemove Hi Jeffrey, Thank you for your reply, however I can't seem to get your code to

[jQuery] Re: Scrolling inside a div with mousemove

2008-11-06 Thread Dan
Hi Jeffrey, Thank you for your reply, however I can't seem to get your code to work. I'm getting an error that says "setTop is not defined" Any idea why this is? On Nov 6, 1:15 am, "Jeffrey Kretz" <[EMAIL PROTECTED]> wrote: > Well, you could do something like this (completely untested, sorr

[jQuery] Re: Scrolling inside a div with mousemove

2008-11-05 Thread Jeffrey Kretz
Well, you could do something like this (completely untested, sorry). The hover events bind and unbind the mousemove to prevent resource drain. $('#thisdiv').hover(startScroll,stopScroll); function startScroll(e) { var div = $(this).bind('mousemove',scrollThis); var o = div.offset(); th