Welcome to WebmasterWorld Guest from 54.242.53.253

Forum Moderators: incrediBILL

Message Too Old, No Replies

Disabling horizontal scrolling

...but not vertical

     
9:46 am on Dec 5, 2000 (gmt 0)

Full Member

10+ Year Member

joined:Aug 21, 2000
posts:273
votes: 0


Does anybody have any idea if this is possible, and if so how to do it? I would have thought that there was some sort of JavaScript trick out there, but I can't for the life of me find one.

Cross browser compatability is also required (just to make the task a little trickier).

8:38 pm on Dec 5, 2000 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


You could achieve this effect with a 100% frameset, and disabled scrolling in the visible frame.

However, the page design would still be tricky -- there would be differing amounts of screen real estate available for display according to the visitor's screen resolution, whether the browser window was open full or not, etc.

12:01 am on Dec 6, 2000 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


Oops! I mis-read your question -- nevermind. I'll look around and see what I can find. Apologies, my friend.

-- Here's what I discovered. The source is David Flanagan's "JavaScript, The Definitive Guide" from O'Reilly

1. Scrollbar visibility is a package deal in Javascript -- no separate address to vertical and horizontal scrolling

2. Access to the scrollbars object requires a signed script (and subsequent user permission in each case)

3. Even with a signed script, Explorer 4.x does not support access

8:58 am on Dec 6, 2000 (gmt 0)

Full Member

10+ Year Member

joined:Aug 21, 2000
posts:273
votes: 0


Just 2 thoughts...

1) Cheers tedster

and

2) Damn! It could have been sooo good...