crs
05-12-2003, 09:02 AM
How to get height of some object in pixels, if it is defined in procentage?
Thanx in advance
Thanx in advance
|
Click to See Complete Forum and Search --> : Object height? crs 05-12-2003, 09:02 AM How to get height of some object in pixels, if it is defined in procentage? Thanx in advance Gollum 05-12-2003, 09:24 AM You could try putting a <span> or <div> around it and getting the height from that crs 05-12-2003, 09:37 AM I tried, but got null from style. If I trie like alert(this.style.height), I get null. I need something like alert(this.height). khalidali63 05-12-2003, 10:06 AM I'd seriously doubt that there is a simple way of doing this.Imagine asking a question in french and getting respond in english..:-) if you set the height property in %,then this.style.height will return a % height.. crs 05-12-2003, 10:23 AM Thank you... but I think I found the sollution. It is alert(this.style.pixelHeight); And it works :) crs 05-12-2003, 10:26 AM And even better... offsetHeight webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |