
Mots d'art & Scénarios Poésie, littérature, pensées, scripts d'art, oeuvres de Ginette Villeneuve |
| | Scripts à 4 images | |
| | Auteur | Message |
---|
Gi Rang: Administrateur
Nombre de messages : 14616 Localisation : Lévis secteur Charny, Québec, Canada Date d'inscription : 18/12/2004
 | Sujet: Scripts à 4 images Mar 14 Juin - 19:47 | |
| Sir Iles (Cyrille)et Gérard Ferrandez - Code:
-
<HTML><HEAD>
<STYLE></STYLE> </HEAD> <BODY background=cid:005901c3043a$2a1d8da0$0d8ffcc1@scenario scroll=no onload=zyva()><BGSOUND balance=0 src="cid:005a01c3043a$2a26b560$0d8ffcc1@scenario" volume=0 loop=999> <DIV id=pat style="Z-INDEX: 200; FILTER: glow(color=red, strenght=6); LEFT: 0px; FONT: bold 24px 'Tempus Sans ITC'; OVERFLOW: hidden; ; WIDTH: expression(body.clientWidth); COLOR: gold; POSITION: absolute; ; TOP: expression(body.clientHeight/2-pat.offsetHeight/2)" align=center>Patienter SVP, popups (50) en préparation...</DIV> <DIV id=accueil style="DISPLAY: none; Z-INDEX: 200; FILTER: glow(color=red, strenght=6); ; LEFT: expression(body.clientWidth*.1); FONT: bold 18px 'Tempus Sans ITC'; OVERFLOW: hidden; ; WIDTH: expression(body.clientWidth*.8); CURSOR: hand; COLOR: gold; POSITION: absolute; ; TOP: expression(body.clientHeight/2-accueil.offsetHeight/2)" onclick=sh() align=center><STRONG>Message ici</STRONG></DIV> <DIV style="Z-INDEX: 300; RIGHT: 0px; FILTER: glow(color=red, strenght=6); FONT: bold 14px 'Tempus Sans ITC'; COLOR: gold; BOTTOM: 0px; POSITION: absolute; TEXT-ALIGN: center" align=right>@+<BR>;-)))<BR>Message ici</DIV> <DIV id=IMGSRC style="DISPLAY: none"><IMG id=im src="cid:005501c3043a$2a1d8da0$0d8ffcc1@scenario"> <IMG src="cid:005601c3043a$2a1d8da0$0d8ffcc1@scenario"> <IMG src="cid:005701c3043a$2a1d8da0$0d8ffcc1@scenario"> <IMG src="cid:005801c3043a$2a1d8da0$0d8ffcc1@scenario"> </DIV> <script> // ================================================ // script: Gerard Ferrandez - Ge-1-doot - APR 2oo3 // news://news.leibowitz.org/nzn.fr.html // mailto: Gerard.Ferrandez@wanadoo.fr // ================================================ // Version multipopup, Sir ILe 04/03 //=========================================== object = new Array() var nx = screen.width var ny = screen.height var Dx = 0 var Dy = 0 var Nx = 10 var Ny = 5 var KD = 0 var k = 0 var Dx= 256 var Dy= 192 tempo=3.5 Pw=window var lebye
//====================== function CObj(N,x,y){
Sir = Pw.createPopup() Pw = Sir.document.parentWindow Sir.document.body.innerHTML="<img alt='Clic to hide ;-)' id=Doot style='cursor:hand;overflow:hidden;position:absolute'></span>" this.Sir= Sir this.img = this.Sir.document.body.all.Doot this.mX = 1 this.mY = 1 this.pX = 1E4 this.pY = 0 this.k = 1 this.id = 0 this.x = x this.y = y this.dx = x - (Nx / 2) this.dy = y - (Ny / 2) this.w = Dx / Nx this.h = Dy / Ny this.l = this.pX this.t = this.pY this.img.style.left = - x * (Dx / Nx) this.img.style.top = - y * (Dy / Ny) this.img.style.width = Dx this.img.style.height = Dy this.Sir.document.body.onclick=hi this.GE1 = function (){ with (this) { l = pX += mX *= k t = pY += mY *= k *= 1.00080 Sir.show((nx/2)-(Dx/2)+ l,(ny/2)-(Dy/2)+t,w,h) pat.style.display='none'; //changement d'image if(Math.abs(pX) > nx - w || Math.abs(pY) > ny - h){ img.src = IMGSRC.children[(id++) % IMGSRC.children.length].src mX = mY = 0 k = 1 pX = x * (Dx / Nx) pY = y * (Dy / Ny) if(++KD >= Nx * Ny)setTimeout("KD=0;for(var i in object)with(object[i]){mX = 1 / (.51 + dx) * Math.random(), mY = 1 / (.51 + dy) * Math.random()}",tempo*1E3) } } } }
function sh(){lebye=setInterval("for(var i in object)object[i].GE1()",32);accueil.style.display='none';pat.style.display=''; } function hi(){clearInterval(lebye);object[0].Sir.hide();pat.style.display='none';accueil.style.display='';}
function zyva(){ Dx = Math.floor(Dx/Nx)*Nx Dy = Math.floor(Dy/Ny)*Ny for(var y=0;y<Ny;y++) for(var x=0;x<Nx;x++) object[k] = new CObj(k++,x,y) accueil.style.display='';pat.style.display='none'; }
</script> </BODY></HTML>
Dernière édition par Gi le Sam 22 Aoû - 23:40, édité 1 fois | |
|  | | Gi Rang: Administrateur
Nombre de messages : 14616 Localisation : Lévis secteur Charny, Québec, Canada Date d'inscription : 18/12/2004
 | Sujet: Re: Scripts à 4 images Jeu 16 Juin - 20:14 | |
| Auteur : Evolve mais je ne suis pas certaine... - Code:
-
<HTML><HEAD> <STYLE>BODY { BORDER-RIGHT: #ab7d8a 4px ridge; BORDER-TOP: #ab7d8a 4px ridge; MARGIN-TOP: 25px; FONT-WEIGHT: bold; FONT-SIZE: 14pt; MARGIN-LEFT: 500px; BORDER-LEFT: #ab7d8a 4px ridge; COLOR: #131104; MARGIN-RIGHT: 30px; SCROLLBAR-ARROW-COLOR: #ffffff; SCROLLBAR-TRACK-COLOR: #ab7d8a; BORDER-BOTTOM: #ab7d8a 4px ridge; FONT-FAMILY: Papyrus; SCROLLBAR-BASE-COLOR: #ab7d8a; BACKGROUND-COLOR: #f0c6d0 } .cube { BORDER-RIGHT: #ab7d8a 1pt solid; BORDER-TOP: #ab7d8a 1pt solid; Z-INDEX: -1; FILTER: light(enabled=1); LEFT: -10000px; BORDER-LEFT: #ab7d8a 1pt solid; BORDER-BOTTOM: #ab7d8a 1pt solid; POSITION: absolute; TOP: 50px } </STYLE>
</HEAD> <BODY bgColor=#f0c6d0 background=cid:02e701c4e170$ef298940$098cc153@scenario onload=zyva()> <BGSOUND balance=0 src="cid:02e801c4e170$ef298940$098cc153@scenario " volume=0 loop=infinite> <SPAN id=plaatjes><IMG class=cube src="cid:02e101c4e170$ef298940$098cc153@mddieu"> <IMG class=cube src="cid:02e201c4e170$ef298940$098cc153@scenario"> <IMG class=cube src="cid:02e301c4e170$ef298940$098cc153@scenario "> <IMG class=cube src="cid:02e401c4e170$ef298940$098cc153@scenario "> <IMG class=cube src="cid:02e501c4e170$ef298940$098cc153@scenario "> <IMG class=cube src="cid:02e601c4e170$ef298940$098cc153@scenario "> <DIV style="BORDER-RIGHT: #ab7d8a 3px groove; PADDING-RIGHT: 10px; BORDER-TOP: #ab7d8a 3px groove; PADDING-LEFT: 10px; FONT-SIZE: 12pt; FILTER: Alpha(Opacity=40); PADDING-BOTTOM: 10px; OVERFLOW: auto; BORDER-LEFT: #ab7d8a 3px groove; WIDTH: 85.01%; COLOR: #000000; PADDING-TOP: 10px; BORDER-BOTTOM: #ab7d8a 3px groove; FONT-FAMILY: Papyrus; SCROLLBAR-BASE-COLOR: #f0c6d0; HEIGHT: 276px; BACKGROUND-COLOR: #f0c6d0; TEXT-ALIGN: center"> <DIV align=center><FONT size=4>Texte ici</FONT></DIV> </SPAN> <SCRIPT language=JavaScript> with (document.body) { nx=offsetWidth ny=offsetHeight scroll="yes" }
obj=0; Haut=280; Larg=224; pt=0; Nbi=0; z=0 w1=0; w2=0; l1=0; l2=0; h1=0; t1=0; z=0
function mov() { if(pt%2==0){ i1=obj[pt] i2=obj[(pt+2)%Nbi]
i1.style.width=w1 i1.style.left=l1+Larg i1.style.height=h1 if(!z){ z=1 i1.style.top=t1 i1.style.zIndex=2 }
i2.style.width=Larg i2.style.left=l1+Larg-1 i2.style.height=Haut i2.style.top=t1 i2.style.zIndex=1 }
else{ i2=obj[pt] i1=obj[(Nbi+pt-2)%Nbi]
i2.style.width=w2 i2.style.left=l1+w1 i2.style.height=h1 i2.style.top=t1 if(!z){ z=1 i2.style.zIndex=pt+1 i1.style.zIndex=pt } } w1+=-2 w2+=+2 lu1=w1*150/h1 lu2=w2*150/h1 i1.filters(0).Clear() i1.filters(0).addAmbient (255,255,255,lu1) i2.filters(0).Clear() i2.filters(0).addAmbient (255,255,255,lu2) if(w1<=0){ pt=(pt+1)%Nbi ;w1=w2;w2=0; i1.style.left=-1000 if(pt%2==0)i1.style.zIndex=-2 z=0 } }
function zyva() { obj=plaatjes.all.tags("IMG") Nbi=obj.length h1=Haut t1=50 w1=Larg l1=20 w2=0 l2=Larg+l1 setTimeout('setInterval("mov()",1)',64) } </SCRIPT> </BODY></HTML> | |
|  | | | Scripts à 4 images | |
|
Sujets similaires |  |
|
| Permission de ce forum: | Vous ne pouvez pas répondre aux sujets dans ce forum
| |
| |
| |
|