[Javascript] variable DIV

Troy III Ajnej trojani2000 at hotmail.com
Mon Feb 16 00:09:06 CST 2009


<script>
var container = document.getElementById('header-wrapper');
var colls = 614;
var leftcol = document.getElementById('left-sidebar');
 
function adjustVarWidthCol(){
      var width = (container.offsetWidth - colls);
      leftcol.style.width = width + 'px';
      }
      adjustVarWidthCol();
      onresize = adjustVarWidthCol;
</script>
 
 
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                      Troy III
                         progressive art enterprise
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 
 
> Date: Sun, 15 Feb 2009 10:19:46 +0100
> From: vkocher at wombat.ch
> To: javascript at lists.evolt.org
> Subject: Re: [Javascript] variable DIV
>
> @Hello Troy
> i have triey this way
> but it is not working - but maybe i have done something wrong.
> i have the change over there http://testgooglemap.blogspot.com/
> 
> i think a problem is [idName1] should be the wrapper around the other 3 
> Column but I think i don't have a wrapper around
> 
> and i am right i have to add this script and mark it as <Javascript>
>
> thanks for all the feedback and keep peacefull
> 
> vincent
 
_________________________________________________________________
Windows Live™: E-mail. Chat. Share. Get more ways to connect. 
http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t2_allup_howitworks_022009


More information about the Javascript mailing list