11 messages in com.googlegroups.google-desktop-developerRe: equivalent for this.property in GD
FromSent OnAttachments
Arnab18 May 2008 12:17 
Benjamin [API Guru]18 May 2008 12:25 
Teo18 May 2008 12:27 
Arnab Roy18 May 2008 12:39 
Benjamin [API Guru]18 May 2008 12:43 
Teo18 May 2008 12:46 
Arnab Roy18 May 2008 14:26 
Benjamin [API Guru]18 May 2008 14:34 
Arnab Roy19 May 2008 02:09 
Syam19 May 2008 09:21 
Arnab Roy19 May 2008 13:09 
Subject:Re: equivalent for this.property in GD
From:Teo (teom@gmail.com)
Date:05/18/2008 12:46:19 PM
List:com.googlegroups.google-desktop-developer

I thought the 'underline' property exists only for the <a> element?

On Sun, May 18, 2008 at 10:44 PM, Benjamin [API Guru] < code@gmail.com> wrote:

You could move your code into a new function

function myhover(ele) { ele.italic = true; ele.underline = true; }

and then use onmouseover="myhover(event.srcElement);"

Benjamin

On May 18, 9:39 pm, "Arnab Roy" <36ar@gmail.com> wrote:

BBBut, this is quite strange. try this:

div2.appendElement("<label name='a' size='11' cursor='hand' enabled='true' height='17' onmouseover='a.italic=true;a.underline=true;' ">a</label>");

or this too:

div2.appendElement("<label size='11' cursor='hand' enabled='true' height='17'

onmouseover='event.srcElement.italic=true;event.srcElement.underline=true;'>a</label>");

Only the first property i.e. italic is changed in both the examples. "underline" has no effect. how to change more than one property?

2008/5/19 Teo <teom@gmail.com>:

You can also do it by writing 'event.srcElement' instead of 'this'.

On Sun, May 18, 2008 at 10:18 PM, Arnab <36ar@gmail.com> wrote:

hi, i was trying to change text colour on mouseover of a dynamically created label. so i used:

div1.appendElement("<label size='11' cursor='hand' enabled='true' height='17' onmouseover='this.color=\"#000000\"'>here</label>")

but its not working. but i have seen gadgets, in which elements change some property on an event. how are they done?