[Javascript] variable DIV

vkocher at wombat.ch vkocher at wombat.ch
Mon Feb 16 03:21:24 CST 2009


@Troy III Ajnej

YES! It works perfect.
Thanks a lot

it is basicly also to find out the hight not only the Width? ;-)

vincent


Troy III Ajnej wrote:
> <script>
> var container = document.getElementById('header-wrapper');
> var colls = 620;
> var leftcol = document.getElementById('left-sidebar-wrapper');
>  
> 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
> _______________________________________________
> Javascript mailing list
> Javascript at lists.evolt.org
> http://lists.evolt.org/mailman/listinfo/javascript
>
>
>
>
>   



More information about the Javascript mailing list