- <html>
- <head>
- <title>animation</title>
- </head>
- <body>
- <div align="center" id="bienvenue">
- </div>
- <script>
- <!--
- i=0;
- taille=0;
- hauteur = (navigator.appName != "Microsoft Internet Explorer")? window.innerHeight : document.body.offsetHeight;
- marge = hauteur/3;
- document.getElementsByTagName('div')[0].style.marginTop = marge;
- textanim = new Array("Bienvenue","sur","mon","site","perso !");
- function animation() {
- document.getElementsByTagName('div')[0].style.fontSize = ""+taille+"px";
- document.getElementById('bienvenue').innerHTML = textanim[i];
- if (taille < 150) {
- taille++;
- }
- else {
- i++;
- taille=0;
- }
- if (i < textanim.length) {
- setTimeout('animation()',20)
- }
- }
- setTimeout('animation()',20);
- //-->
- </script>
- </body>
- </html>
<html>
<head>
<title>animation</title>
</head>
<body>
<div align="center" id="bienvenue">
</div>
<script>
<!--
i=0;
taille=0;
hauteur = (navigator.appName != "Microsoft Internet Explorer")? window.innerHeight : document.body.offsetHeight;
marge = hauteur/3;
document.getElementsByTagName('div')[0].style.marginTop = marge;
textanim = new Array("Bienvenue","sur","mon","site","perso !");
function animation() {
document.getElementsByTagName('div')[0].style.fontSize = ""+taille+"px";
document.getElementById('bienvenue').innerHTML = textanim[i];
if (taille < 150) {
taille++;
}
else {
i++;
taille=0;
}
if (i < textanim.length) {
setTimeout('animation()',20)
}
}
setTimeout('animation()',20);
//-->
</script>
</body>
</html>