begin process at 2012 02 11 04:00:37
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

Effets

 > ON BRASSE LES LETTRES, ET UN MESSAGE DU BIENVENUE S'AFFICHE...

ON BRASSE LES LETTRES, ET UN MESSAGE DU BIENVENUE S'AFFICHE...


 Information sur la source

Note :
9 / 10 - par 1 personne
9,00 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10
Catégorie :Effets Niveau :Débutant Date de création :14/01/2004 Vu :6 959

Auteur : Bitter1

Ecrire un message privé
Site perso
Commentaire sur cette source (2)
Ajouter un commentaire et/ou une note

 Description

Les lettres de l'alphabet ce brassent toute seule et finissent par afficher un message de bienvenue, ou un texte de votre choix...

Source

  • <body onload="Ch4ng3(0)">
  • <script language="Javascript1.2">
  • var mess4g = "BIENVENUE SUR CETTE PAGE !"
  • var Alpha3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ !";
  • function OnYva(n){
  • this.length = n;
  • return this;
  • }
  • function M4laNge(rade){
  • var l;
  • for (i=0; i<rade.length; i++){
  • l = Math.round(Math.random() * (rade.length - i - 1)) + i;
  • temp = rade[i];rade[i]=rade[l];rade[l]=temp;
  • }
  • return rade;
  • }
  • rade = new OnYva(mess4g.length);
  • for (var i=0; i<mess4g.length; i++){
  • rade[i] = i;
  • }
  • rade = M4laNge (rade);
  • for (var i=0; i<mess4g.length; i++){
  • document.write("<span id = \\"vb" + i + "\\" style = \\"color:RED; font-family: Times New Roman; font-size:x-large; visibility:visible;\\">" + mess4g.charAt(rade[i]) + "</span>");
  • }
  • function Polic3(l){
  • r = Math.round(Math.random() * Alpha3.length);
  • document.all["vb"+l].innerText = Alpha3.charAt(r);
  • if (Alpha3.charAt(r) == mess4g.charAt(l)) {
  • document.all["vb"+l].style.color = 'BLUE';
  • return;
  • }
  • setTimeout("Polic3("+l+")", 100);
  • }
  • function Ch4ng3(l){
  • if (!document.all) return;
  • if (l==mess4g.length) return;
  • mess4gchar = mess4g.charAt(l);
  • Polic3(l);
  • l++;
  • setTimeout("Ch4ng3("+l+")", 200);
  • }
  • </script>
  • <body bgcolor=#cccccc>
<body onload="Ch4ng3(0)">
<script language="Javascript1.2">
var mess4g = "BIENVENUE SUR CETTE PAGE !"  
var Alpha3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ !";
function OnYva(n){
	this.length = n;
	return this;
}
function M4laNge(rade){
	var l;
	for (i=0; i<rade.length; i++){
		l = Math.round(Math.random() * (rade.length - i - 1)) + i;
		temp = rade[i];rade[i]=rade[l];rade[l]=temp;
	} 
	return rade;
}
rade = new OnYva(mess4g.length);
for (var i=0; i<mess4g.length; i++){
	rade[i] = i;
}
rade = M4laNge (rade);
for (var i=0; i<mess4g.length; i++){



	
	document.write("<span id = \\"vb" + i + "\\" style = \\"color:RED; font-family: Times New Roman; font-size:x-large; visibility:visible;\\">" + mess4g.charAt(rade[i]) + "</span>");
}
function Polic3(l){
r = Math.round(Math.random() * Alpha3.length);
document.all["vb"+l].innerText = Alpha3.charAt(r);
if (Alpha3.charAt(r) == mess4g.charAt(l)) {
	document.all["vb"+l].style.color = 'BLUE'; 
	return;
}
setTimeout("Polic3("+l+")", 100);
}
function Ch4ng3(l){
	if (!document.all) return;
	if (l==mess4g.length) return;
	mess4gchar = mess4g.charAt(l);
	Polic3(l);
	l++;
	setTimeout("Ch4ng3("+l+")", 200);
}
</script>
<body bgcolor=#cccccc>

 Conclusion

Simple et sympas pour débuter.


 Sources du même auteur

DES MOTS QUI JONGLENT AVEC LE POINTEUR...
DES LETTRES EN VRAC QUI FINISSENT PAR FAIRE UN MESSAGE...
LIENS SOUS FORME DE MESSAGE SE PROMÈNE DE FAÇON ALÉATOIRE......
TEXTE DÉFILANT DANS PETIT TABLEAU PLUTÔT QUE DANS LA BARRE D...
TEXTE QUI DÉFILE SUR UN BOUTON...

 Sources de la même categorie

Source avec Zip Source avec une capture SHOWMAPAREA par phidelum
DHTML IE FILTRE DÉGRADÉ (OUTIL HTML POUR DÉVELOPPEUR) par internetdev
Source avec Zip ANIMATION DU TEXTE par brennal
Source avec Zip Source avec une capture EFFET RAYONS DU SOLEIL par tefa24600
TAILLE DE TEXTE EN FONCTION DE LA RÉSOLUTION par tefa24600

Commentaires et avis

Commentaire de francktfr le 29/01/2004 13:18:32

ca fonctionne mieux avec ca:
  document.write("&lt;span id = \"vb" + i + "\" style = \"color:RED; font-family: Times New Roman; font-size:x-large; visibility:visible;\"&gt;" + mess4g.charAt(rade[i]) + "&lt;/span&gt;");

Commentaire de yami_no_ookami le 12/02/2004 14:54:00

ca a l'air sympa si ca marchait mais ca marche pas verifie ton code tu as du oublier un bout.

 Ajouter un commentaire




Nos sponsors


Sondage...

CalendriCode

Février 2012
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
272829    

Consulter la suite du CalendriCode

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 0,530 sec (4)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales