The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Upon clicking, the CSS associated with the new ID is applied, so that works. The problem is that the things in the last two functions are not being applied. It seems like I would have to somehow poke the JS to tell it that the id has been changed and to apply those things. How do I do this? Cheers,

Right, thanks, I've fixed it. Using it here: http://raffles.awardspace.com/G/ just for fun and to learn some more JS. Unfortunately it's not working seamlessly in IE (when putting it back on the left), can't figure out why.

Mike, why the class and not the id? I chose that because getElementById makes it so easy, whereas there's no such (default) thing as getElementsByClassName.

EDIT: Just realised I can still use getElementById and then use setAttribute('class')... hopefully this is the best thing to do.