Hi there!!
First post and of course as 99% of post is a "help need" one
Here is the thing:
I want to give the visitors of my site the ability of changing the size of the font inside a TD, a particular TD.
i manage my self to customize a JS that let me increase or decrease the font, but for doing this I have to remove the css of this TD
is there a way to load again this css?
some thing like this
+ text ----js that increase text in the TD
- text -----js that decrease text in the TD
normal text ---- load custom span on TD so the text get formated
T.I.A.
how do I ?
Hi billbody,
<html><head> <script type="text/javascript"> function changefont(way){ var newsize; var thebox=document.getElementById('change'); var sizenow=parseInt(thebox.style.fontSize); if(way=="+"){ newsize=sizenow +2; }else{ newsize=sizenow - 2; } thebox.style.fontSize=newsize+'pt'; } </script> </head> <body> <table><tr><td id="change" style="font-size:12pt">this text should change</td></tr></table> <a href="#" onclick="javascript:changefont('+');"> + font size</a> <a href="#" onclick="javascript:changefont('-');"> - font size</a> </body> </html>Make sure you specify the font-size style inline.
Hope that helps.
how do I ?
Tony Thanks for your FAST reply
but I still can't figure it out...
I mean you give me a script to change the font size of a table...
ok.
But how do I give that font a specific format from a css?
look in here www.vilo-rugby.com.ar/SUPERIOR/partido.php
This is my site... as you can see "original" just reload the page so the format is similiar to the first time you enter.
I want "original" to load the .littletxtoscuro from my css
Is it posible?
T.I.A.