[Greasemonkey] newbie DOM question

Tod Beardsley todb at planb-security.net
Fri Feb 3 11:25:52 EST 2006


On 2/3/06, Zoolcar9 (LouCypher) <zoolcar9 at gmail.com> wrote:

> Use 'size' attribute instead, not 'width'

In my GM script, none of these appear to work:

Img.size = '50%';
Img.setAttribute('size','50%');
Img.setAttribute('height','50%'); // Though a fixed height works fine.

The only ways I can relatively resize appears to be via innerHTML or
Img.setAttribute('width','50%');.

--
Tod Beardsley | ICQ: 335082155 | www.planb-security.net
Due to Google's privacy policy <http://tinyurl.com/5xbtl>, please
do not IM/e-mail me anything you don't want to be read in court.


More information about the Greasemonkey mailing list