In the past I’ve mentioned the Lightbox script that I use on the BMTG website and on this blog. This uses the Scriptaculous JavaScript library.
Last night I stumbled across an alternative to Scriptaculous, named mootools. This is a lot more compact and they even allow you to compile your own version at the point of download, allowing you to limit its content. It even compresses the code for you. Anyway, this is no good to me without a matching Lightbox script and, lo-and-behold, I found one named Slimbox – in fact it’s almost identical, but quicker and various improvements made.
I’ve now embedded both of these in a new version of the BMTG site that I’m working on, and it works like a dream with no modifications to my existing code (other than calling different scripts and stylesheets) required. Nice. It’s more compact and a lot quicker too.
One down side is that I was using Scriptaculous for one of the changes I was making to the site – namely hiding various page contents unless a button is pressed to reveal it. mootools has an equivalent function, but it’s not so easy to use (the downside of a more compact system I guess). Instead, I’ve done anyway with the flashy effects and used a simple bit of JavaScript instead.
By default the section that I want to hide has the following DIV surrounding it… <div id="cast_div" style="position:relative; display:none">
:
Content here
:
</div>
This will hide the content until a button (displayed above the content) is pressed.
So, to reveal the content you add the following..
onclick="document.getElementById('cast_div').style.display='block'"
To hide the content again…
onclick="document.getElementById('cast_div').style.display='none'"


Football
I’m not a football fan, I’ll admit. But then I’m not a huge sports fan generally (watching or taking part, the latter of which should be obvious).
However, I don’t get those that are.
Yes, and you now live in Nottingham, have done for a long time and have had and raised children here. Shouldn’t you be, say, a fan of Notts County or Nottingham Forest?
Don’t be silly.
So why aren’t you a Manchester City fan? Was United the better team at the random time that you decided to like football, by any chance?
And why that team because you were born there? Because it has Manchester in the name and is based there? But has a team and management that aren’t. Many of whom aren’t even from this country?
Basically, I can’t see the reason to cling to one particular team because you have some connection to that location – it means nothing any more. And that’s why I like FIFAs idea of restricting the number of foreign players in a team. Unfortunately, it’s unlikely to happen because of Europe anti-discriminatory laws.
What I’d really like to see, though, are teams that only consist of people from that area. So Manchester United – and City – would have to be teamed and managed by people from Manchester. Born and grew up in Manchester, not born in Brazil and shipped in at a later date. Surely this will then get back to how the sport was originally meant to be? Then you go to a match and be proud of a team that really represents the area.
It’ll never happen though and in the meantime we have the debacle of watching English premier league football teams managed and completely teamed by foreign players.
Share this:
Like this: