hey all,
i have a datalist inside my div element which is set to clip overflow
content. i have a left and right button that handles scrolling the div left
or right by just hovering over the buttons.
however, i've seen it where if i hover over the div on the left or right
side it will scroll. does anyone have any ideas on how i would implement
something like this?
thanks,
rodchar
bruce barker - 17 Oct 2007 20:45 GMT
the same way you do with the buttons. the div has the same event
handlers, you just need to look at the event x position to determine
which way to scroll.
-- bruce (sqlwork.com)
> hey all,
> i have a datalist inside my div element which is set to clip overflow
[quoted text clipped - 7 lines]
> thanks,
> rodchar
rodchar - 17 Oct 2007 21:00 GMT
how do i get to the event x position?
> the same way you do with the buttons. the div has the same event
> handlers, you just need to look at the event x position to determine
[quoted text clipped - 13 lines]
> > thanks,
> > rodchar
Peter Bromberg [C# MVP] - 17 Oct 2007 20:57 GMT
You would implement this with client-side javascript. Search on "scrollable
div" and you'll find plenty of good sample code.
--Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com
> hey all,
> i have a datalist inside my div element which is set to clip overflow
[quoted text clipped - 7 lines]
> thanks,
> rodchar
rodchar - 26 Oct 2007 15:27 GMT
thanks everyone for the direction.
rod.
> hey all,
> i have a datalist inside my div element which is set to clip overflow
[quoted text clipped - 7 lines]
> thanks,
> rodchar