Re: Event binding/this problem
Mone <[email protected]>
| Newsgroups | gmane.comp.web.dom.wdf |
|---|---|
| Message-ID | <[email protected]> |
It's late but perhaps i found a solution:
function rollout()
{
var node = this;
temp= function() { node.className=node.className.replace(" over",
"");};
node.timeout = setTimeout(temp,500);
}
node.onmouseout = rollout;
Seb Frost ha scritto:
>function rollout()
>{
> var temp= function() { this.className=this.className.replace(" over",
>"");};
>
> setTimeout(temp,500);
>}
>
>node.onmouseout = rollout;
>
>
>gives me "this.className is null or not an object".
>
>
>
>
>I've tried about a million variations on the above and can't get anything to
>do what I want, I know it's some problem with passing the this reference
>around, but don't know how to fix it.
>
>Please help!
>
>
>
>
>Unsubscribe
>[email protected]
>
>List info
>http://www.quirksmode.org/dom/list.html
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>
>
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/9rHolB/TM
--------------------------------------------------------------------~->
Unsubscribe
[email protected]
List info
http://www.quirksmode.org/dom/list.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/wdf-dom/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/