I was thinking of ways to brag about a sports team I like on my myspace profile. Is there any site that provides code that updates itself automatically?
HTML code can’t update itself automatically. If you really felt like it, you could write some Javascript to fetch the scores from somewhere and dynamically write them per-request.
The website that you scrape them from might not appreciate it, though.
Actually, the XMLHTTPRequestObject would be the way to go (Microsoft has some pages documenting the feature here.
Of course, you’d have to parse the page to find where the scores you want to pull are, but most teams have their own webpages and publish their scores on the front page.
However, the code will break any time the page is modified…