It's a cross-site Scripting (XSS) attack. Start reading up on them. There are some great screencasts/videos around about this sort of thing too.
The main point is not to be negligent now. Your site has a weakness, which must be found and fixed. Don't blame it on your hosting company either; most likely, it's your own mistake for choosing a bad blog engine, or not keeping a good blog engine up to date with the latest security patches or releases.
Also: you seem to only be aware of "viruses". Cracking a server is nothing to do with viruses. The issue is a vulnerability. Old versions of wordpress do have them --- recently a very bad one, which you should definitely upgrade to patch. You might want to look into automatic security updates for your OS, programs which will email you a list of current vulnerabilities in your servers, and/or subscribe to CVE sites that warn you of all the latest software problems.
At the very least, if you're admining a linux server/site, subscribe to some linux admin sites, which post decent articles that teach you new skills and warn of new issues. XSS has been around a long time now.