Prosecutor Linda Baker told the court that following a complaint to police, other offensive tweets by Robert Riley came to light.
Among them were messages about the missing Malaysian plane, the Korean ferry disaster and champion tennis player Serena Williams.
More top news
The world record attempt will raise money for the foundation set up in memory of the Olympic gold medallist, who died in May 2013.
In today's Newsweek, Carl talks about what the 'No' vote in the Scottish Referendum could mean for Wales and the impact of legal highs.
England manager talent spotting at Swansea City v Southampton at the Liberty Stadium