[Javascript] setting 'height' attribute of <TD> tag?
Andrew Dunn
adunn at mail.interworx.com.au
Thu Jun 28 08:11:34 CDT 2001
Hi,
I believe you can set the height of an image, in IE anyhow.
document.getElementById("img1").height = "50"
-----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
Behalf Of Peter-Paul Koch
Sent: Thursday, 28 June 2001 7:32 PM
To: javascript at LaTech.edu
Subject: Re: [Javascript] setting 'height' attribute of <TD> tag?
>how do I get the 'height' attribute of a <TD
>heigh="100"> tag??
>
>also, is it possible to change the attribute value??
>
>(i need a solution for both NS4+ and IE4+)
Netscape 4: forget it.
Other browsers:
document.getElementById('ID_of_TD').offsetHeight (IE5/NN6)
document.all['ID_of_TD].offsetHeight (IE4)
You have to give the TD a unique ID.
>my other idea was to put a spacer.gif image in an
>empty table cell, and then change the height attribute
>of the image, but the o'reilly book says it's "read"
>only attribute.
Correct.
ppk
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list