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.
<script type="text/javascript">
<!--
<{$xoops_js}>
//-->
function setstyle(tag){
var elements = document.getElementsByTagName(tag);
for (var i = 0; i < elements.length; i++) {
var element = elements[i]
element.style.fontWeight = 'bold';
element.style.fontSize = '[en]12[/en][ar]16[/ar]px';
if(element.className == "nochange"){
element.style.direction = "ltr";
}else{
element.style.direction = "[en]ltr[/en][ar]rtl[/ar]";
}
}
}
</script>
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