Friday 29 February 2008

googleDrive

A little project i've been working on is now live!

googleDrive is a little google maps mash up that allows you to drive a little car around on the maps.

http://www.phatfusion.net/googledrive

I'm also planning a doing another version called googleRacer that will allow you to race on predefined circuits against the clock, for example the paris ringroad. I'm also thinking of doing this one with the sat view images instead.

comments and suggestions welcome.

Tuesday 12 February 2008

opening links with imageMenu

To open links that are used in imageMenu, simply remove the onClick option:

var myMenu = new ImageMenu($$('#imageMenu a'),{
openWidth:310,
border:2
});

I've used the onClick option in my example code to demo some of the other features of the menu.

Thursday 7 February 2008

imageMenu update

The image menu script has been updated to fix a small bug. You probably won't notice it.

anyway its now at version 2.2

Tuesday 5 February 2008

auto open MultiBox onDomReady

I've had this request a few times now, so i thought i'll post the code.

It's very simple. Just call the open function and pass the element in:

var box = {};
window.addEvent('domready', function(){
box = new MultiBox('mb', {descClassName: 'multiBoxDesc'});
box.open($('mb1'));
});

Monday 4 February 2008

MultiBox - compatibility with mootools 1.2beta

Here is what you need to do to make the MultiBox script compatibile with mootools 1.2 beta 2.
I'm not releasing these updates in a script as i want to rewrite it when 1.2 gets released, so i can use all the nice new features.

Replace the following:

  • Fx.Styles with Fx.Morph
  • transition: Fx.Transitions.sineInOut with transition: Fx.Transitions.Sine.easeInOut
  • Class.empty with new Class()
  • this.containerEffects.stop() with this.containerEffects.cancel()