Une
animation de texte type machine à écrire
Editez ici la suite de votre page
ici,
Télécharger
le script ici ( 946 Octets )
Copiez et collez ce script juste après la
balise <body> :
<P><SCRIPT
language=javascript type=text/javascript><!--
var layers =
document.layers
var style = document.all
var both = layers || style
function Texte(obj, str) {
if (layers) with (document[obj])
{document.open();document.write(str);document.close();}
if (style) eval(obj+'.innerHTML=
str');
}
var dispStr = new
Array("<b>Visitez <a href=http://votre_site.com>mon site
personnel...</a></b> <br> Famille IRENEE Patrick
<br> <a href=vous@votre_FAI.fr>Contactez-moi par
mail</a> - ok <br> Ou <a>par
téléphonne</a> - ok <p> m e r c i . . .
.");
var overMe=0;
function ecrire(str, idx, idObj,
clr1, clr2, delay) {
var tmp0 = tmp1 = '';
var skip = 0;
if (both && idx <=
str.length) {
if (str.charAt(idx) == '<') {
while (str.charAt(idx) != '>') idx++; idx++; }
if (str.charAt(idx) == '&'
&& str.charAt(idx+1) != ' ') { while (str.charAt(idx) != ';')
idx++; idx++; }
tmp0 = str.slice(0,idx);tmp1 =
str.charAt(idx++);
Texte(idObj, "<span
style=''><font
color='"+clr1+"'>"+tmp0+"</font><font
color='"+clr2+"'>"+tmp1+"</font></span>");
setTimeout("ecrire('"+str+"',
"+idx+", '"+idObj+"', '"+clr1+"', '"+clr2+"',
"+delay+")",delay);
}
}
// --></SCRIPT><DIV
class=ttl1 id=ttl0><A HREF="javascript:ecrire(dispStr[0], 0,
'ttl0', 'blue', 'lightblue', 50)">Lisez
moi</A>
</DIV></P>
© Copyright
GendNet 2000 Tout droit de reproduction strictement réservé
aux membres de l'association ®