|
-
Jul 4th, 2001, 07:38 PM
#1
two questions...
Real quick...
1. How can you get the width of a document? I tried document.width and it returned undefined...
2. are anchor tags listed in an array like links?
example : document.anchors[x]
Thanks for your time
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jul 5th, 2001, 12:55 PM
#2
Black Cat
1. Not sure, but try document.body.width.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Jul 5th, 2001, 10:17 PM
#3
nope, sorry. I still get undefined
But thanks
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jul 6th, 2001, 08:40 PM
#4
Fanatic Member
To your second question:
document.anchors[] is an array of anchor objects from zero to anchors.length-1
Your first question:
I don't think that you can get the document width. You can get the width of the screen though. (window.screen.width)
Chris
-
Jul 6th, 2001, 08:42 PM
#5
Thanks 
I didn't think you could get the width, but I thought I'd give it a shot.
Where abouts in Philly are you?
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jul 6th, 2001, 09:17 PM
#6
Fanatic Member
The Northeast section...
One more bit of info...
There actually is a document.width property. It's a Navigator 4 only thing though.
Chris
-
Jul 6th, 2001, 09:19 PM
#7

Thanks again. And I am in Essington.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jul 6th, 2001, 10:01 PM
#8
Fanatic Member
Did come up with something:
document.body.clientWidth
return's the client width of the window, meaning the inner width. If the window resizes the value will change. I'm not sure if this is what you were after though. There is also a clientHeight property. Most likely IE only.
Essington, PA ? Short trip on 95S...
Chris
-
Jul 6th, 2001, 10:05 PM
#9
that did it!
my hat's off to you
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jul 6th, 2001, 10:15 PM
#10
Fanatic Member
Glad I could help...
Chris
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|