Classic Spaceship Demo - introducing returnHome and homing features - Ease In -
returnHome is set to false by default, this keeps the lavalamp where you last clicked. The absolute home position (in relation to the parent UL) and size is set up via homeLeft, homeTop, homeWidth and homeHeight. Clicking the link below the menu will tell the lavalamp to move back to the home position, but does not change the selectedLava class.
returnDelay is set to 1000 milliseconds ( 1 second ): the returnDelay starts counting down after the last move animation is completed. (returnDelay + speed) The timing is not 100% accurate on this method, especially after mouseout on the parent UL.
the click function just returns false: links will not activate when clicked (watch your address bar for verification) setOnClick is set to false, so clicking will not set new element as default return.
returnHome is true, telling lavalamp to return to the home position, even if a menu item is clicked. homeLeft, homeTop, homeWidth and homeHeight settings create the appropriate starting point, which is a shape larger than the parent UL for effect (overflow:hidden on UL is necessary CSS for this effect).
demonstrating new multi-layer menu support and 'noLava' class de-selector - a major request! To use: add a class of 'noLava' to the LI elements for LavaLamp to ignore; sub-LI elements will be respected. Please view the HTML for this method to use properly.
Lavalamp 1.3.3 features a newly modified algorithm to attempt to automatically place the LavaLamp on the appropriate link, and it has recently been modified to work with relative links (without preceding hostname or forward slashes). View the Auto Homing demo here