css connected to javascript dropdown

liunx

Guest
Hello<br />
I am working on a javascript for a drop down navagation to an html bible that uses the thai language. I would like to use a css to control the formatting of the text in the drop down. Thai fonts are very small (about 28pt is the same size as 12pt in english) This is my first javascript and I have not yet found information on how to control the size of the text or if you can link a css command to the text in a javascript. Am I dreaming up an idea or is thsi possible but I just don't yet understand how to do this?<br />
<br />
Thanks for your help!<br />
Loyal<!--content-->if you have the text in an element with an id:<br />
<div id="aname"><br />
<br />
then you can reference the styles this way for IE4:<br />
<br />
document.all['aname'].style.fontSize<br />
<br />
For IE5+ and Netscrap 6:<br />
<br />
document.getElementById('aname').style.fontSize<br />
<br />
In Netscrap 4.x<br />
<br />
The element must be an absolutely positioned div or layer to be referenced, and it will not let you modify the font size directly you have to rewrite the layer to do a change in CSS class. Even then it will not work in all version.<!--content-->
 
Back
Top