WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Using JS to change font sizes at runtime, Guillermo, December 10, 2004
     Re:Using JS to change font sizes at runtime, Erik Arvidsson, December 16, 2004

Subject: Using JS to change font sizes at runtime From: Guillermo Date: December 10, 2004

Hi, I have a DIV with some text in it, and I'd like to have two links to resize the text using JS. I was thinking about using two functions -Bigger() and Smaller()- that would change font sizes when the links are clicked.

The Div has and ID of "ArticleText", and the font definitions are on an external CSS file:

#ArticleText { font: 12px Arial;  color: #424242;}

The "font" property is what I want to change at runtime. Any ideas?




Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX