Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

scrolling my div element

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rodchar - 17 Oct 2007 19:04 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.