SEO, PHP and Javascript Web Dev

Search Engine Optimisation, Web Development and Network Administration Ramblings

-->
11 2006

Using Scriptaculous for a simple Image Morph

Creating a morphing image using the scriptaculous javascript libraries is really pretty straightforward. I was chewing over which libraries of special effects I should use first, browsing round mochikit and scriptaculous when I found this page and it cinched the deal - sorry mochikit, next time.

The method I have uses for this image morph is really incredibly simple.

So, thats it! I have not yet gone to the effort of making the script nice and self containing, but it works a treat and its pretty simple to get your head round.

One thing I noticed while creating this morph was that having a table cell which had no content and no set width or height is not standards compliant, and in fact the whole system broke with certain DOCTYPES. That of course has been fixed because not everybody likes to work in quirks mode, but just something to keep in mind as knowing that would have saved me a headache haha.

Download to get morphing!

As you can see from the script I used a php function to generate a javascript array from communitymx.com, jolly useful and easy to follow, so, props communitymx.com. And props of course to Scriptaculous. I have bundled the scriptaculous library that I used with the script, no idea if that is illegal or what so…enjoy while you can. Otherwise, it is very easy to download scriptaculous and use the libraries yourself.

Share this Post:
  • Reddit
  • Sphinn
  • del.icio.us
  • Digg
  • e-mail
  • Mixx
  • Google
  • StumbleUpon

Related posts:

  1. Using a Splash Page
  2. Ajax Dropdown Example
  3. Simple Recursive PHP Tree Menu Example
  4. Voting System for Increased Inbound Links Using PHP
  5. What do search engine spiders see?

No tags for this post.
« Using a Splash Page
Shuffling Data Between Server Drives »

One Response to “Using Scriptaculous for a simple Image Morph”

  1. I would have loved to download to check this out… but the download link seems to be trying to go to another page in the blog! I’ll fire up firebug and go investigate the js source on the demo page. Thanks for the great work!

Leave a Reply

-->
  • Photography