I don't know what you're asking... I don't see anything wrong except a lack of quotes and semi-colons... The quotes don't matter to most browsers (it's a bad coding habit, but it at least works), and the semi-colons will only produce warnings at best given the context.
That should work. What's it do wrong, if anything?