473,385 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to remove scrollbar(s) without use of frames.

Hello all,

Is it possible to remove scrollbar(s) without using frames. Is there
any code which could be applied in body tag to remove scrollbar(s).

Thanks in adv,
Sujan

Jul 23 '05 #1
7 25999
VK
IE and NN 8 only (I guess, at least not on FF):

window.document.body.scroll = 'no'; //hide
window.document.body.scroll = 'yes'; // show
window.document.body.scroll = 'auto'; // show only if needed

Jul 23 '05 #2
> "Sujan" <su*****@gmail.com> wrote:
news:11**********************@f14g2000cwb.googlegr oups.com....

Hello all,

Is it possible to remove scrollbar(s) without using frames. Is there
any code which could be applied in body tag to remove scrollbar(s).

Thanks in adv,
Sujan


Maybe css will work.

<body style="overflow:auto;">
--
BootNic Saturday, July 02, 2005 12:13 PM

Imagination was given to man to compensate him for what he isn't. A sense of humor was provided to
console him for what he is.
*Horace Walpole English novelist*

Jul 23 '05 #3

Why the need of it? Chances are there's no need, other than you're
getting scrollbars on a page whose content fits in 'YOUR SCREEN'. So,
you're pretty much just making it work for people who use your screen size
and resolution and maybe even color depth, which is quite cheesy, and I
can also bet you're using fixed units for the element positioning, and
thus the overflow and thus the scrollbars, which isn't the browser's deal
but yours. Is very easy to do, but is not the answer to the issue. Use
relative units for the positioning and code to the viewport, not your
monitor.
Danny

On Sat, 02 Jul 2005 09:13:52 -0700, BootNic <Bo*****@bounce.prodigy.net>
wrote:
"Sujan" <su*****@gmail.com> wrote:
news:11**********************@f14g2000cwb.googlegr oups.com....

Hello all,

Is it possible to remove scrollbar(s) without using frames. Is there
any code which could be applied in body tag to remove scrollbar(s).

Thanks in adv,
Sujan


Maybe css will work.

<body style="overflow:auto;">


--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Jul 23 '05 #4
"Sujan" <su*****@gmail.com> wrote:
news:11**********************@f14g2000cwb.googlegr oups.com....
Hello all,
Is it possible to remove scrollbar(s) without using frames. Is there
any code which could be applied in body tag to remove scrollbar(s).


If you don't need to remove the functionality but instead simply want to
eliminate the appearance, why not set the CSS such that the scrollbar and
its buttons blend into your background?:

<body text="#ffffff" link="#ffff00" vlink="#ffff00"
alink="#ff0000" bgcolor="#0000CC">
<STYLE TEXT="text/css">
<!--
body {scrollbar-face-color: #0000CC; scrollbar-shadow-color: #0000CC;
scrollbar-highlight-color: #0000CC; scrollbar-3dlight-color: #0000CC;
scrollbar-darkshadow-color: #0000CC; scrollbar-track-color: #0000CC;
scrollbar-arrow-color: #00000CC}
-->
</STYLE>

--
David Hayes

(remove the name of the programming language from email address to make it
usable)
Jul 23 '05 #5
Thanks,

This script works.

Sujan.

Jul 23 '05 #6
BootNic wrote:
"Sujan" <su*****@gmail.com> wrote: [...]
Is it possible to remove scrollbar(s) without using frames. Is there
any code which could be applied in body tag to remove scrollbar(s).


Maybe css will work.

<body style="overflow:auto;">


`overflow:auto' makes the UA to display scrollbars only if required which
is probably the default behavior, i.e. scrollbars will be displayed. One
*could* use `overflow:hidden' but I would not recommend that; rather check
the layout for errors and format the margins of the document body
accordingly.
PointedEars
Jul 23 '05 #7
Thomas 'PointedEars' Lahn wrote on 16 jul 2005 in comp.lang.javascript:
BootNic wrote:
"Sujan" <su*****@gmail.com> wrote: [...]
Is it possible to remove scrollbar(s) without using frames. Is there
any code which could be applied in body tag to remove scrollbar(s).


Maybe css will work.

<body style="overflow:auto;">


`overflow:auto' makes the UA to display scrollbars only if required
which is probably the default behavior, i.e. scrollbars will be
displayed. One *could* use `overflow:hidden' but I would not
recommend that; rather check the layout for errors and format the
margins of the document body accordingly.


Type this in the address bar:

javascript:document.body.style.overflow='hidden';v oid 0;

IE tested

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 23 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Z | last post by:
Hi, I have problem with auto-scrolling frames in IE (6.0 on Xp, but same happens with IE 5.5 on Win2k): If I set scrolling="auto" to frame, IE reserves space where vertical scrollbar normally...
2
by: C P | last post by:
I'm trying to build a custom web control and I know that frames aren't a great idea, but I'm not clear on how else to get what I'd like. I'd like a tree (for navigation) in a left hand pane, and...
4
by: Charles Law | last post by:
Is there a way to dynamically remove an event handler from an event without knowing the name of the handler? For example, how can ClassB remove the handler without knowing the name, or how many...
4
by: jaYPee | last post by:
I have a report created in crystal report. My problem is on how can I remove the decimal point without converting the value. say for example if I have this data: Unit 2 1.5 2 3
4
by: eksamor | last post by:
I have a simple linked list: struct element { struct element *next; int start; }; struct list { struct element *head;
10
by: steve | last post by:
Hi All, My site has two frames, one with a menu system, one with the selected results. I can select a menu item and get the other frame to reflect that selection. But I want to select 'log...
13
by: axr0284 | last post by:
Hi, I have a main function as follows: int main(void) { while(TRUE) { ... } return TRUE; } my question is since the return TRUE is never reached, can I remove
1
by: Tom | last post by:
First, I posted a similar request for help in another group and now don't find the posting. Problem with my newsreader perhaps ... but apologies if this appears as a cross posting. My code is...
1
by: AK | last post by:
Hello, I want to remove the DTD reference from an xml document before validating it against a local schema instead. Currently I'm first creating an xml document and removing the DTD reference,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.