?
?
LiveJournal
Find more
Communities
RSS Reader
Shop
Help
Search
Log in
javascript
Log in
Join free
Join
English
(en)
English (en)
Русский (ru)
Українська (uk)
Français (fr)
Português (pt)
español (es)
Deutsch (de)
Italiano (it)
Беларуская (be)
javascript
—
< no suspend reason >
Readability
Find posts by author
Type username to filter posts in this community
Apply
More
javascript
Archive
Filter by author
Readability
Log in
No account?
Create an account
Remember me
Forgot password
Log in
Log in
Login with Sber ID
QR code
Javascript's Journal
[Most Recent Entries]
[Calendar View]
[Friends View]
Thursday, August 23rd, 2007
Time
Event
1:29a
Using Javascript to get style sheet values
I found that these two links were helpful:
for global and external values
http://www.javascriptkit.com/dhtmltutors/dhtmlcascade.shtml
and for
offsetHeight - height in pixels
offsetLeft - distance of paragraph from the left, in pixels (left of what? see below)
offsetTop - distance of paragraph from the top, in pixels (top of what? see below)
offsetWidth - width in pixels
http://www.quirksmode.org/dom/getstyles.html
Works only if inline stlyes are declared (no one wants to put inline styles in to everything.)
document.getElementById(elementID).style.height
(
Comment on this
)
<< Previous Day
2007/08/23
[
Calendar
]
Next Day >>
About LiveJournal.com