Latest post from my blog

  • Fixing an IE 7 bug in mm_menu.js navigation

    We’re proud (even stubborn) hand-coders, so we don’t often get the opportunity to delve into the JavaScript libraries deployed by using applications such as Dreamweaver.

    Recently, however, we were contacted with an IE7 bug: a navigation system that was using the mm_menu.js library appeared to be only showing the first word of each option.

    At 800 lines of dense JavaScript, this was not going to be fun to debug. Fortune, however, smiled upon us in the form of an invidual named Hiroto, who posted the following on the Cre8asite Forums:

    function writeMenus(container) {
        .... some code here ....
        menu.menuItemHeight = menu.menuItemHeight || defaultHeight;
        var itemProps = ‘’; <= CHANGE THIS LINE TO => var itemProps = ‘white-space:nowrap;’;
        if( menu.fontFamily != ‘’ ) itemProps += ‘font-family:’ + menu.fontFmaily+’;’;
         .... some code here ....
    }

    You should find this spot around line 163 of mm_menu.js. The change worked a charm. Thanks Hiroto!

    Date Posted
    Posted on February 29, 2008 at 11:05am
    Tags
    with tags Tips
    Permalink
    Comments
    0 Comments

A little while back

On my iPod:

Album cover art

Patrick & Eugene: Postcard from Summerisle

I know, I know - I'm late to the bandwagon, but these guys are fantastic. You'll most likely recognise track 1 ("The birds and the Bees") from the VW Rabbit ad, and it sets the stage perfectly.

More music

On my Bookshelf:

Album cover art

J.R.R. Tolkien: The Children of Hurin

I haven't managed to crack the covers on this yet, but it certainly promises to be a fantastic read. Although I struggled somewhat with The Silmarillion, I'm a massive fan of Tolkien's dream of a uniquely English Mythology.

More books

Twitter Twotter:

damn you insomnia.
January 6 @ 1:54am
@photojunkie 8D
January 5 @ 8:00pm
@photojunkie oooh - the mormon calendar - heard good things about that one!
January 5 @ 7:23pm
Urgh. Landlady hasn't been picking up her mail…three hydro bills sitting in the mailbox now.
January 5 @ 7:12pm
@benlucier coffee? mmmm coffee
January 5 @ 5:46pm
Past twotter