Preserved Topic: Can I detect horizontal scrollbars? |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: Lebanon |
posted 07-31-2001 10:44
Is there is a way to check if horizontal are present then I resize my window so all the content appear w/o the need to scroll horizontally. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 07-31-2001 14:23
A) no. |
Paranoid (IV) Inmate From: Lebanon |
posted 08-01-2001 08:37
Actually I'm resizing sort of a debug window and not any site. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 08-01-2001 14:17
Well, there is a way, with JavaScript you can find the width of an element containing text (in good browsers, at least). However, you should upload it and give us a link to it, because there may be a better way to solve the problem that we could point out, or if there isn't, we'll almost certainly need the page to be able to show you how to find the width of the text. |
Paranoid (IV) Inmate From: Lebanon |
posted 08-01-2001 15:11
that's the complete testing code, just copy and paste it... code: <html>
|
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 08-01-2001 16:48
OK, well, for one thing, I'm pretty sure you're not allowed to use spaces in the "location=0, width=500, height=200, status=1, scrollbars=1" thing. Maybe it's working, but I don't think it's supposed to be allowed to have spaces. |
Paranoid (IV) Inmate From: Lebanon |
posted 08-02-2001 12:10
>do you *need* to have long words without spaces? |