Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] setting 'height' attribute of <TD> tag?
- From: javascript@xxxxxxxxxx (Andrew Dunn)
- Subject: [Javascript] setting 'height' attribute of <TD> tag?
- Date: Thu, 28 Jun 2001 23:11:34 +1000
Hi,
I believe you can set the height of an image, in IE anyhow.
document.getElementById("img1").height = "50"
-----Original Message-----
From: javascript-admin@xxxxxxxxxx [mailto:javascript-admin@xxxxxxxxxx]On
Behalf Of Peter-Paul Koch
Sent: Thursday, 28 June 2001 7:32 PM
To: javascript@xxxxxxxxxx
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@xxxxxxxxxx
http://www.LaTech.edu/mailman/listinfo/javascript
- References:
- [Javascript] setting 'height' attribute of <TD> tag?
- From: Peter-Paul Koch
- [Javascript] setting 'height' attribute of <TD> tag?
- Prev by Date: [Javascript] Remote Scripting
- Next by Date: [Javascript] Remote Scripting
- Previous by thread: [Javascript] setting 'height' attribute of <TD> tag?
- Next by thread: [Javascript] setting 'height' attribute of <TD> tag?
- Index(es):