begin process at 2012 02 09 18:09:28
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

Effets

 > FAUSSE BANNIÈRE DE PUB

FAUSSE BANNIÈRE DE PUB


 Information sur la source

Note :
8,64 / 10 - par 11 personnes
8,64 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10
Catégorie :Effets Niveau :Débutant Date de création :22/10/2003 Vu :6 829

Auteur : francktfr

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

 Description

Cliquez pour voir la capture en taille normale
Chaque ligne du tableau apparait en grandissant et disparait graduellement.

Source

  • <HTML>
  • <HEAD>
  • <TITLE></TITLE>
  • </HEAD>
  • <BODY onload="InitColors(30)">
  • <DIV ID="Banner" STYLE="border: 1 solid black; width: 468; font: 8 Arial Black; text-align: center; height: 50; background: #FF9900; color: #003366; font-weight: bold; cursor: default"></DIV>
  • <SCRIPT>
  • var Texts = new Array()
  • Texts[0] = "Des vidéos"
  • Texts[1] = "que des vidéos"
  • Texts[2] = "rien que des vidéos ! ! !"
  • Texts[3] = "Http://www.videofolies.net"
  • var Colors = new Array()
  • var iSize = 0
  • var iColor = 0
  • var iText = 0
  • function ShowText(){
  • var tmp = 0
  • Banner.innerHTML = Texts[iText]
  • Banner.style.color = "#" + Colors[0]
  • iText == Texts.length-1 ? iText=0 : iText++
  • ChangeSize(1,30)
  • }
  • function ChangeSize(size, max){
  • if (size >= max){iColor = window.setTimeout("ChangeColor(0)",700); return(true)}
  • Banner.style.fontSize = "" + size + "px"
  • iSize = window.setTimeout("ChangeSize("+(size+2)+","+max+")",30)
  • }
  • function ChangeColor(i){
  • if (i == Colors.length-1)
  • {
  • window.clearTimeout(iColor)
  • setTimeout("ShowText()",200)
  • }
  • else
  • {
  • Banner.style.color = Colors[i]
  • iColor = window.setTimeout("ChangeColor("+(i+1)+")",10)
  • }
  • }
  • function InitColors(Steps){
  • var Start = Banner.style.color
  • var End = Banner.style.backgroundColor
  • Start = Start.substring(1,7)
  • End = End.substring(1,7)
  • var StartRed = parseInt(Start.substring(0, 2),16)
  • var StartGreen = parseInt(Start.substring(2, 4),16)
  • var StartBlue = parseInt(Start.substring(4, 6),16)
  • var EndRed = parseInt(End.substring(0, 2),16)
  • var EndGreen = parseInt(End.substring(2, 4),16)
  • var EndBlue = parseInt(End.substring(4, 6),16)
  • GradientPart(StartRed, StartGreen, StartBlue, EndRed, EndGreen, EndBlue, Steps)
  • ShowText()
  • }
  • // convertion decimal ver hexa
  • function Hexa(Dec){
  • var nb = Dec.toString(16)
  • if (nb.length < 2) {nb = "0" + nb}
  • return(nb)
  • }
  • function GradientPart(dr, dg, db, fr, fg, fb, Step) {
  • cr=dr; cg=dg; cb=db
  • sr=((fr-dr)/Step) // rouge
  • sg=((fg-dg)/Step) // vert
  • sb=((fb-db)/Step) // bleu
  • for (var x = 0; x <= Step; x++) {
  • Colors[x] = Hexa(Math.floor(cr)) + Hexa(Math.floor(cg)) + Hexa(Math.floor(cb))
  • cr += sr; cg += sg; cb += sb
  • }
  • }
  • </SCRIPT>
  • </BODY>
  • </HTML>
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY onload="InitColors(30)">


<DIV ID="Banner" STYLE="border: 1 solid black; width: 468; font: 8 Arial Black; text-align: center; height: 50; background: #FF9900; color: #003366; font-weight: bold; cursor: default"></DIV>


<SCRIPT>
var Texts = new Array()
Texts[0] = "Des vidéos"
Texts[1] = "que des vidéos"
Texts[2] = "rien que des vidéos ! ! !"
Texts[3] = "Http://www.videofolies.net"
var Colors = new Array()
var iSize = 0
var iColor = 0
var iText = 0
function ShowText(){
	var tmp = 0
	Banner.innerHTML = Texts[iText]
	Banner.style.color = "#" + Colors[0]
	iText == Texts.length-1 ? iText=0 : iText++
	ChangeSize(1,30)
}
function ChangeSize(size, max){
	if (size >= max){iColor = window.setTimeout("ChangeColor(0)",700); return(true)}
	Banner.style.fontSize = "" + size + "px"
	iSize = window.setTimeout("ChangeSize("+(size+2)+","+max+")",30)
}
function ChangeColor(i){
	if (i == Colors.length-1)
		{
			window.clearTimeout(iColor)
			setTimeout("ShowText()",200)
		}
		else
		{
			Banner.style.color = Colors[i]
			iColor = window.setTimeout("ChangeColor("+(i+1)+")",10)
		}
}
function InitColors(Steps){
	var Start = Banner.style.color
	var End = Banner.style.backgroundColor
	Start = Start.substring(1,7)
	End = End.substring(1,7)
	var StartRed = parseInt(Start.substring(0, 2),16)
	var StartGreen = parseInt(Start.substring(2, 4),16)
	var StartBlue = parseInt(Start.substring(4, 6),16)
	var EndRed = parseInt(End.substring(0, 2),16)
	var EndGreen = parseInt(End.substring(2, 4),16)
	var EndBlue = parseInt(End.substring(4, 6),16)
	GradientPart(StartRed, StartGreen, StartBlue, EndRed, EndGreen, EndBlue, Steps)
	ShowText()
}
//	convertion decimal ver hexa
function Hexa(Dec){
	var nb = Dec.toString(16)
	if (nb.length < 2) {nb = "0" + nb}
	return(nb)
}
function GradientPart(dr, dg, db, fr, fg, fb, Step) {			
	cr=dr; cg=dg; cb=db
	sr=((fr-dr)/Step)	// rouge
	sg=((fg-dg)/Step)	// vert
	sb=((fb-db)/Step)	// bleu
    for (var x = 0; x <= Step; x++) {
		Colors[x] = Hexa(Math.floor(cr)) + Hexa(Math.floor(cg)) + Hexa(Math.floor(cb))
		cr += sr; cg += sg; cb += sb
		}
}
</SCRIPT>

</BODY>
</HTML>



 Sources du même auteur

Source avec une capture CHOIX DE DATES ET DE PERIODE
HORLOGE DIGITALE , SI SI
Source avec une capture TEXT COLORISÉ AVEC LE POURCENTAGE
Source avec une capture MENU AVEC EFFET DE DÉGRADÉ
ANNONCE LETTRE PAR LETTRE

 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 Gorrk le 22/10/2003 19:21:57

C pas mal : simple, joli, efficace, et hop 9/10 !

Commentaire de bob3000 le 23/10/2003 05:36:29

pas mal, bravo!

Commentaire de jjdagadir le 23/10/2003 15:18:07

C EST MEME TRES BIEN ET FACILEMENT PARAMETRABLE - BRAVO
KENAVO

Commentaire de jeungob le 07/01/2005 20:48:06

c trop cool super je met 9

Commentaire de laubro le 04/10/2005 14:41:17

Suis daccord, simple, efficace, facilement parametrable, même pour gérer le texte en ligne au travers de php...
BRAVO : 9/10 Sans problème

Commentaire de cheznounours le 23/12/2007 01:58:01

superbe

je dit bravo simple et jolie effet bravo!!!

 Ajouter un commentaire




Nos sponsors


Sondage...

Comparez les prix

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

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