On Tue, 11 Sep 2007 12:00:57 +0330, InBasic wrote:

> why this code doesnt works?

> document.getElementById('MyGroupbox'').style.marginLeft =
> document.getElementById('downloadView').style.marginLeft;

Try:
var mLeft =
parseInt(document.getElementById('downloadView').style.marginLeft) ;

document.getElementById('MyGroupbox').style.marginLeft =
mLeft + "px";

Phil

-- 
Philip Chee <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
http://flashblock.mozdev.org/ http://xsidebar.mozdev.org
Guard us from the she-wolf and the wolf, and guard us from the thief,
oh Night, and so be good for us to pass.
[ ]Another nearly-full box of Smarties!!
* TagZilla 0.066.6

_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to