SyntaxFix
Write A Post
Hire A Developer
Questions
Consider changing your markup to this:
<span id="someId">onlineff</span>
Then you can use this script:
var x = document.getElementById('someId'); x.style.color = '#00FF00';
see it here: http://jsfiddle.net/2ANmM/