Hi guys, here’s a script that I put together (as in cut-and-paste) that will display the latest FIFA World Cup 2006 results as well as other information such as matches and also standings as a floating bar on your website.
For demo: You’re viewing it now!
(it’s the annoying window on the bottom left hand corner).
Directions: (updated!)
- Download this text file and copy and paste the code to the <HEAD> section of your page.
- Add the code in this text file to the <BODY> section of your page.
-
Add this link to show the results anywhere on your site (after users click on the close).
<a href="" onClick="openbar(); return false">Show results</a>
Note: The More » link won’t really work (unless you plan to view it in the tiny little iFrame.
This script should work on most major browsers.
Well, that’s all to it. Just a few credits:
1. Floating TopBar script from Dynamic Drive made it possible to load the script on this site.
2. Google World Cup Module provides the information in the pop-up box. Click here to learn how to add Google World Cup results to your Google personalised homepage.
UPDATE: There was some issues with the encoding previously that causes the script not to work properly if you copied and paste it from the textarea. Thus, now I’ve attached them into text documents that’ll retain the encoding and should now work. I’ve tested this script on a Bloggers.com site and it does works. For a demo, point your browser to: http://benet-test.blogspot.com
Sorry for any inconvenience caused.
Cheers~!
If you want to post this up on your blog system or any site which doesn’t seem to allow you to change your HEAD section (for whatever reasons), you might be able to add it by combining Section 1 and 2 (remember to keep to the order of Section 1 first then Section 2) into your BODY section.
I just tested this on a very simple HTML document and it seems to work… so, hopefully it’ll work for you as well…
Cheers~!