Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   HTML (http://www.velocityreviews.com/forums/f31-html.html)
-   -   How to increase fontsize javascript (http://www.velocityreviews.com/forums/t674160-how-to-increase-fontsize-javascript.html)

JL 03-03-2009 08:53 PM

How to increase fontsize javascript
 
HI,

when i write :

document.getElementById('nom_bateau').style.fontSi ze ='100px';

OK but when i write :

document.getElementById('nom_bateau').style.fontSi ze ='taille&"px"';

not works.

Tanks for help.

JL

JL 03-03-2009 09:24 PM

Re: How to increase fontsize javascript
 
Ben C a écrit :
> On 2009-03-03, JL <jlpcassy@free.fr> wrote:
>> HI,
>>
>> when i write :
>>
>> document.getElementById('nom_bateau').style.fontSi ze ='100px';
>>
>> OK but when i write :
>>
>> document.getElementById('nom_bateau').style.fontSi ze ='taille&"px"';
>>
>> not works.
>>
>> Tanks for help.

>
> What made you think it would work?
>
> style.fontSize = taille + "px";
>
> is more the sort of thing you want.



Tanks for your answer. Its oK.
JL


All times are GMT. The time now is 12:55 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.