Hi-
I've got the following code and it works when i call it from a button (code included) but when i put it in a function to call from 'onload' it doesn't work, any ideas?
Thanks!
<script language="javascript" src="Tween.js">
function loadSwish(){
t1 = new Tween(document.getElementById('titleMenu').style,'top',Tween.elasticEaseOut,-100,27,2,'px');
t1.start();
}
</script>
<body onload="loadSwish()">
<input type="button" value="start()" onclick="
t1 = new Tween(document.getElementById('titleMenu').style,'top',Tween.elasticEaseOut,-100,27,2,'px');
t1.start();">