sjmcd
asked on
Frame - Vertical scrollbar only
Is there a way to make a frame have a vertical scrollbar but not a horizontal one within the <frame> tag?
If not, is there a way I can do it with JavaScript?
If not, is there a way I can do it with JavaScript?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I need it because on my website (www.sjmcd.tk) I want to put a frame with my forums in it (sjmcd.proboards29.com). My forum page has ads on it, but I don't want the horizontal scrollbars there.
COBOLdinosaur's solution does exactly what I wanted to do, but does anyone know a way to get it to work for Netscape as well?
COBOLdinosaur's solution does exactly what I wanted to do, but does anyone know a way to get it to work for Netscape as well?
It can't be done in Netscrap becausee it does not support overflow-x and overflow-y. You either got no scroll bars or you get none.
Cd&
Cd&
Do you have inline content (images etc) that's too wide for the frame, but don't want all of it to be visible? If so, maybe you could just crop the offending portions so everything fits the frames width...
In answer to your question, I think you'd need to have the HTML specify 'scrolling=no' and invoke some kind of javascript of CSS positioning control for scrolling. Think I saw something like that, hang on...
http://www.dynamicdrive.com/dynamicindex2/pagescroller.htm
Use the script from here in your page in the frame, to give it the vertical scrolling ability. If you don't like the style of the buttons, you could try using transparent GIFS instead and make them larger so they cover the top and bottom halves of the frame.
Still don't know why you'd want to chop off your content though...