equal
deleted
inserted
replaced
156 |
156 |
157 // getElementWidth() and getElementHeight() |
157 // getElementWidth() and getElementHeight() |
158 // Source: http://www.aspandjavascript.co.uk/javascript/javascript_api/get_element_width_height.asp |
158 // Source: http://www.aspandjavascript.co.uk/javascript/javascript_api/get_element_width_height.asp |
159 |
159 |
160 function getElementHeight(Elem) { |
160 function getElementHeight(Elem) { |
161 if (ns4) { |
161 if (ns4) |
|
162 { |
162 var elem = getObjNN4(document, Elem); |
163 var elem = getObjNN4(document, Elem); |
163 return elem.clip.height; |
164 return elem.clip.height; |
164 } else { |
165 } |
165 if(document.getElementById) { |
166 else |
|
167 { |
|
168 if(document.getElementById) |
|
169 { |
166 var elem = document.getElementById(Elem); |
170 var elem = document.getElementById(Elem); |
167 } else if (document.all){ |
171 } |
|
172 else if (document.all) |
|
173 { |
168 var elem = document.all[Elem]; |
174 var elem = document.all[Elem]; |
169 } |
175 } |
170 if (op5) { |
176 if (op5) |
|
177 { |
171 xPos = elem.style.pixelHeight; |
178 xPos = elem.style.pixelHeight; |
172 } else { |
179 } |
|
180 else |
|
181 { |
173 xPos = elem.offsetHeight; |
182 xPos = elem.offsetHeight; |
174 } |
183 } |
175 return xPos; |
184 return xPos; |
176 } |
185 } |
177 } |
186 } |