begin process at 2012 02 11 02:57:38
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

Divers

 > ENCHAINEMENT DE BANNIERE FAÇON PUBLICITÉ

ENCHAINEMENT DE BANNIERE FAÇON PUBLICITÉ


 Information sur la source

Note :
6,5 / 10 - par 4 personnes
6,50 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10
Catégorie :Divers Niveau :Débutant Date de création :27/11/2003 Vu :13 235

Auteur : semetic

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

 Description

En fait c'est un vb script et pas javascript , mais c'est plus efficace puisqu'il permet de diversifier les transitions entre les images.
Impérativement, vous devez mettre des images de meme dimensions est dans la meme position pour le fonctionnement, ainsi qu'une image transparente ou avec couleur total la meme comme l'arriere plan, dans notre cas "blanc.gif", elle doit etre appélée juste avant la derniere fonction "sub".

Source

  • <html>
  • <head>
  • <meta name="generator" content="Namo WebEditor v4.0">
  • </head>
  • <body onLoad="doTrans();" bgcolor="white">
  • <p align="center">
  • <img id="hi" src="bienvenue.gif"
  • STYLE="filter:blendTrans(Duration=3);VISIBILITY:hidden;position:absolute" width="250" height="35">
  • <img id="hi1" src="merci.gif"
  • STYLE="filter:revealTrans(Duration=3.0,transition=6);VISIBILITY:hidden;
  • position:absolute" width="250" height="35">
  • <img id="hi2" src="good.gif"
  • STYLE="filter:revealTrans(Duration=3.0,transition=14);VISIBILITY:hidden;
  • position:absolute" width="250" height="35">
  • <img id="hi3" src="blanc.gif"
  • STYLE="filter:blendTrans(Duration=3);VISIBILITY:hidden;
  • position:absolute" width="250" height="35"></p>
  • </center>
  • <SCRIPT LANGUAGE="VBScript">
  • <!--
  • Sub doTrans()
  • call hi.filters.item(0).Apply()
  • hi.style.visibility=""
  • call hi.filters.item(0).Play()
  • action=setTimeout ("doTrans1()",5000)
  • End Sub
  • Sub doTrans1()
  • call hi1.filters.item(0).Apply()
  • hi1.style.visibility=""
  • call hi1.filters.item(0).Play()
  • action=setTimeout ("doTrans2()",5000)
  • End Sub
  • Sub doTrans2()
  • call hi2.filters.item(0).Apply()
  • hi2.style.visibility=""
  • call hi2.filters.item(0).Play()
  • action=setTimeout ("doTrans3()",5000)
  • End Sub
  • Sub doTrans3()
  • call hi3.filters.item(0).Apply()
  • hi3.style.visibility=""
  • call hi3.filters.item(0).Play()
  • action=setTimeout ("doTrans4()",3000)
  • End Sub
  • Sub doTrans4()
  • hi1.style.visibility="hidden"
  • hi2.style.visibility="hidden"
  • hi3.style.visibility="hidden"
  • hi.style.visibility="hidden"
  • call doTrans
  • End Sub
  • //-->
  • </SCRIPT>
  • </body>
  • </html>
<html>
<head>
<meta name="generator" content="Namo WebEditor v4.0">
</head>
<body  onLoad="doTrans();" bgcolor="white">
<p align="center">
<img id="hi"  src="bienvenue.gif" 
	  STYLE="filter:blendTrans(Duration=3);VISIBILITY:hidden;position:absolute" width="250" height="35">
<img id="hi1" src="merci.gif" 
	  STYLE="filter:revealTrans(Duration=3.0,transition=6);VISIBILITY:hidden;
	   position:absolute" width="250" height="35">
<img id="hi2" src="good.gif"
          STYLE="filter:revealTrans(Duration=3.0,transition=14);VISIBILITY:hidden;
           position:absolute" width="250" height="35">
<img id="hi3" src="blanc.gif" 
STYLE="filter:blendTrans(Duration=3);VISIBILITY:hidden;
           position:absolute" width="250" height="35"></p>
</center>

 <SCRIPT LANGUAGE="VBScript">
<!--
Sub doTrans()
	call hi.filters.item(0).Apply()
	hi.style.visibility=""
	call hi.filters.item(0).Play()
       action=setTimeout ("doTrans1()",5000)
End Sub

Sub doTrans1()
	call hi1.filters.item(0).Apply()
	hi1.style.visibility=""
	call hi1.filters.item(0).Play()
        action=setTimeout ("doTrans2()",5000)
End Sub

Sub doTrans2()
	call hi2.filters.item(0).Apply()
	hi2.style.visibility=""
	call hi2.filters.item(0).Play()
        action=setTimeout ("doTrans3()",5000)
End Sub

Sub doTrans3()
	call hi3.filters.item(0).Apply()
	hi3.style.visibility=""
	call hi3.filters.item(0).Play()
        action=setTimeout ("doTrans4()",3000)  
End Sub

Sub doTrans4()	
      	hi1.style.visibility="hidden"      
	hi2.style.visibility="hidden"
	hi3.style.visibility="hidden"      
	hi.style.visibility="hidden" 
    	call doTrans	          
End Sub
//-->
</SCRIPT>
</body>
</html>

 Conclusion

sidoummoudz@yahoo.fr


 Sources du même auteur

COMPTEUR À REBOURS SECONDES, MINUTES ET HEURES DHTML(JAVASCR...
CHANGEMENT DU STYLE DES ZONES DE TEXTE PENDANT LA FOCALISATI...
UN SEUL ALERT POUR TOUTES LES ERREURS DE VALIDATION D'UN FOR...
UN SEUL ALERT POUR TOUTES LES ERREURS DE VALIDATION D'UN FOR...
ENCHAINEMENT DE MESSAGES EN BOUCLE FASCINANT

 Sources de la même categorie

COLONNES ADAPTABLES EN HAUTEUR par dronoide
Source avec Zip VECTEURS ET MATRICES: OUTILS GRAPHIQUES UTILES par william voirol
Source avec Zip Source avec une capture HTML5 PLAYER par kazma
Source avec Zip Source avec une capture SCROLLBAR PERSONNALISABLE par kazma
Source avec Zip INFO BULLE par RudiRatlos

Commentaires et avis

Commentaire de Mistinguette de Bxl le 22/02/2007 14:50:52

Génial ! C'est exactement ce que je souhaitais faire et que je n'arrivais pas à faire depuis des siècles !

Grand merci !

Juste un truc : est-il possible de mettre un autre type de transition que celle utilisée ?

Commentaire de Mistinguette de Bxl le 22/02/2007 15:02:51

C'était une bête question, j'ai trouvé toute seule.

Désolée.

Merci beaucoup,

Mistinguette

Commentaire de arenaymar le 05/12/2008 00:17:28

bonjour,
comment cela fonctionne t il exactement
merci

Commentaire de bemol89 le 20/05/2010 19:54:25

bonjour, je sais que ce message a 2 ans, c'est exactement le script que je cherche mais il ne marche pas sous mozilla firefox, comment je peut faire pour qu'il marche, merci.(ps, débutante en script)

 Ajouter un commentaire




Nos sponsors


Sondage...

CalendriCode

Février 2012
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
272829    

Consulter la suite du CalendriCode

Photothèque

 
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 : 3,011 sec (3)

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