I'm trying to write a javascript program that will change the opacity of text within a DIV Tag(to make text fade) . I could do it by dynamically changing the colour of the text in steps, but it would be easier to just change the opacity.
I know there is a command that goes something like

but I'm not sure how it should fit in a script.
Does anybody know or have a link I can check out?
Thanks In advance, Garry