Welcome to WebmasterWorld Guest from 54.144.79.200

Forum Moderators: incrediBILL

Message Too Old, No Replies

Disabling horizontal scrolling

...but not vertical

     

rpking

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

10+ Year Member



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).

tedster

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

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



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.

tedster

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

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



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

rpking

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

10+ Year Member



Just 2 thoughts...

1) Cheers tedster

and

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

 

Featured Threads

Hot Threads This Week

Hot Threads This Month