[Project_owners] Auto Adjust groupbox

Philip Chee philip.chee at gmail.com
Tue Sep 11 04:07:18 PDT 2007


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 <philip at aleytys.pc.my>, <philip.chee at gmail.com>
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



More information about the Project_owners mailing list