This should do the trick, put it in an announcement. I don't know much about Javascript, but I suppose this is basic anyway? Sorry if I've sort of done it in the wrong layout or whatever. I already had some of it, just had to work out a little bit more. I know it works anyway.