I’ve partially migrated the site to WordPress from Exponent. In the coming weeks, you’ll notice a few more changes happening, such as a new theme (the current one is a placeholder), new, more regularly updated content, and more exciting gadgets and gizmos.
Edit: I’ve finished putting together the new theme for the site. Let me know what you think!
Internet Explorer has for some time supported giving ‘focus’ to non-focussable elements such as divs. Firefox, by contrast, does not. Whilst this makes sense semantically, it’s often still very useful to use these triggers. For example, you can use onfocus to show a popup when a div is clicked, and close the popup when anything else is clicked on the page (in the onblur event).
There are many, many workarounds which provide this functionality, using such tricks as hidden input elements, global onclick handlers, and so on, but the simplest is simply this: give your div a tabIndex attribute. For example,
<div tabindex="-1" onfocus="document.getElementById('monkey').style.display='block'" onblur="document.getElementById('monkey').style.display='none'">Click to show another div.</div>
<div id="monkey" style="display:none;">Click elsewhere to hide this div.</div>
works perfectly in Firefox, Internet Explorer, and Chrome as shown in the example below:
Click to show another div.
Click elsewhere to hide this div.
The value of tabIndex can have significance, too:
- -1: The user can’t tab to the element, but it can be given focus programmatically (
element.focus()) or by being clicked on.
- 0: The user can tab to the element, and its order in the tabbing is automatically determined.
- >0: Give the element a priority, with ’1′ being the highest priority.
I originally discovered this technique on this CodingForums.com thread.
Supporting browsers:
- Firefox
- Internet Explorer
- Google Chrome
Non-supporting browsers:
Music is one of the most powerful ways to move people’s emotions. Whilst characters and action tell the story, it’s music that largely determines how people should react to the story. Action scenes accompanied by sharp, aggressive music seem faster; moments of tension are heightened by ominous and foreboding music; and happy reunions bring a tear to the eye when accompanied by majestic, sweeping tunes.
It’s important to make sure that your movie or game has the music that you want it to have, to convey the meaning that you want to. That’s why at Barryvan, writing music is more than just putting together notes. It’s about detailed analysis of your needs and desires for the music; it’s about constant feedback; ultimately, it’s about getting it right.
We offer music in a variety of styles, to suit all genres of movie and game. Traditional orchestral pieces, floor-thumping dance anthems, catchy rock tunes: we offer them all.
Licensing & Pricing
We offer a number of different licenses for our music. Music may be licensed exclusively to you, in which case it won’t be released elsewhere, won’t be used anywhere else, and is guaranteed unique to your project. Alternatively, for a lower price, you may choose to use music which is already, or will become, available to others for use. For non-profit ventures, we can offer music for free on a non-exclusive, all rights reserved basis. In other words, you can use the music, but we retain the copyright. To find out what license is best for you, simply contact us, and we’ll work it out. Our prices are very competitive, and you can arrange to buy tracks on a track-per-track basis, on a time basis, or on a project basis.
Composed: Monday, October 27, 2008 (
Download)
A glitchier, more off-the-beat track based around a C# pedal point. This one was fun to write, because I got to play with the various sound effect and drum kit libraries I have, and slice up some effect loops from my libraries, too.
Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.