Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in /data/web/jeremie.com/render/jer.php on line 5

Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'www-data'@'localhost' (using password: NO) in /data/web/jeremie.com/render/jer.php on line 6

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /data/web/jeremie.com/render/jer.php on line 6

Warning: mysql_query() [function.mysql-query]: Access denied for user 'www-data'@'localhost' (using password: NO) in /data/web/jeremie.com/render/jer.php on line 9

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /data/web/jeremie.com/render/jer.php on line 9

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /data/web/jeremie.com/render/jer.php on line 9

A simple function to morph certian style attributes of a HTML element.

Samples:

You can morph certian attributes of almost any HTML element, and even morph elements within other elements.

 

Documentation

This is a very simple function you can call using Javascript.

Get the file library

Download version .91 Jan 17 1998

Insert it into your page

<SCRIPT SRC="morph.js"></SCRIPT>

Take any element on your page, make sure it has an ID, and define one or all of the following CSS Style attributes: top, left, height, width, background, color, border-color.  Note, with the colors, they MUST be defined using rgb() like "background: rgb(200,200,200);"!

Create a Javascript and call the function:

morph(document.all.myelement,timing,steps,style,done);

Please feel free to modify the code, it is commented to help you lea how it works, and especially, PLEASE feel free to email me jer@jeremie.com with your comments/questions/suggestions/bugs/code enhancements, whatever!