Morning all, CSS/JS question for ya if i may. I use the following to increase the font size of the next DIV in a sequence:
var objNextDiv = eval('document.all.div'+intNextID); objNextDiv.style.fontSize = parseInt(objNextDiv.style.fontSize) + 1; The DIV has been assigned a CSS class as follows: .clsDivItem { font-size:11px; font-family:Verdana,Arial; } and... <div class="clsDivItem" id="div1" onMouseOver="doThis(this)">div 1</div> Problem is, i don't seem to be able to read the fontSize via JavaScript without specificly setting the fontSize before I reference it. I have had to do this: function initPage() { document.all.div1.style.fontSize = "11px"; document.all.div2.style.fontSize = "11px"; document.all.div3.style.fontSize = "11px"; document.all.div4.style.fontSize = "11px"; document.all.div5.style.fontSize = "11px"; } and... <body onLoad="initPage()"> Any ideas why I can't read the fontSize even though I have specified it in the class and assigned the classname to the element? Any help appreciated. Cheers, .ben p.s. am developing in IE6 only for the mo. ____ • The WDVL Discussion List from WDVL.COM • ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED] To change subscription settings to the wdvltalk digest version: http://wdvl.internet.com/WDVL/Forum/#sub ________________ http://www.wdvl.com _______________________ You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]