How to make javascript for font sizes fully language dependent?

Posted by toonoid on Stack Overflow See other posts from Stack Overflow or by toonoid
Published on 2010-06-16T13:08:57Z Indexed on 2010/06/16 13:12 UTC
Read the original article Hit count: 236

Hello All

I have a multilanguage webiste English and Arabic. The javascript for the fontsizes is included in the theme not in the .css.

Both language have different fontsize 16 and 12. When switching from English to Arabic the English letters such as ( dates and stuff like that ) are shown way too big. And when switching from English to Arabic the arabic letters are too small. I would really like to make this javascrip fully language dependent so that the English letters being shown in the Arabic version keeps the same fontsize as in English version and vice versa for arabic.

//--> function setstyle(tag){ var elements = document.getElementsByTagName(tag); for (var i = 0; i

The following script is the current javascript included in the theme. I would really appreciate it if somebody out there could help me with this problem. My knowledge of javascript is to be honest zero.

Thanks

TOONOID

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about language