![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | HTA: allow mouse wheel scroll but hide scrollbars I was thinking that there is a way to allow a user to scroll an HTA window using their mouse wheel or the keyboard and still hide the scrollbars. Is this possible? If so, what should my settings be? I can't crack it... Thanks much in advance. |
My System Specs![]() |
| | #2 (permalink) |
| | Re: HTA: allow mouse wheel scroll but hide scrollbars XP wrote: Quote: > I was thinking that there is a way to allow a user to scroll an HTA window > using their mouse wheel or the keyboard and still hide the scrollbars. > > Is this possible? I think it may be possible with a little "trial-and-error", (my usual muddle-through coding technique). I see two parts, part one is detecting the mouse wheel event. If you google (scroll html "mouse wheel"), you will find several pages discussing this, here is one: http://roshanbh.com.np/2008/08/move-...avascript.html It's not exactly what you want, but is does explain how to detect mouse wheel events. For the second part, you want to do scrolling (without scroll bars). I suggest using the "scrollIntoView" method. http://msdn.microsoft.com/en-us/libr...30(VS.85).aspx The "scrollIntoView" method only applies to certain tags, but the number of those tags is over fifty, so you should be able find one-or-two you can work with. Finally, you will have to set up your page and write some script to get the scrolling you want. For example, let's say you decide to use paragraphs for your scrolling element. Then your script will have to keep track of the id of the paragraph shown at the top of the page. Then if a mouse wheel event is detected you would use scrollIntoView to scroll (up or down) so the next (or previous) paragraph will be shown at the top. cheers, jw ____________________________________________________________ You got questions? WE GOT ANSWERS!!! ..(but, no guarantee the answers will be applicable to the questions) |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| No Wheel Scroll | Vista hardware & devices | |||
| Scroll wheel on mouse doesnt scroll page | Vista installation & setup | |||
| Microsoft Wireless Desktop 6000 V2 under Vista - some keys not working - mouse scroll wheel 1 direction only | Vista hardware & devices | |||
| Microsoft Wireless Desktop 6000 V2 under Vista - some keys not working - mouse scroll wheel 1 direction only | Vista General | |||
| Annoying Mouse Problem - Scroll Wheel Button | Vista General | |||