wes wrote:
Noob here...
How do I get started creating a animated onclick event? I wanted to
click on a link (href) and animates to fill the entire screen. I've
seen sample code that opens a new windows that animates from the top
corner outward, but that's not quite what I wanted.
<script type="text/javascript">
function growMe()
{
var x = document.getElementById('xx');
var s = parseInt(x.style.fontSize, 10);
if ( s < 2000 ){
x.style.fontSize = (s*1.1)+'\u0025';
setTimeout('growMe()', 100);
return false;
}
x.innerHTML = '\u0042\u0069g \u004c\u0069nk\u0021';
}
</script>
<a href="#" id="xx" style="font-size: 100%;"
onclick="return growMe();">click me</a>
;-)
--
Zif