"Borboleta a Voar"
contribuição de Denize Rezende
Credits:
° image gif: "Borboleta"
- (exercise on computer art software) by Guacira Sampaio Rocha
° mid: "albinoniadagio" (found for free, in the net)
° script author: Phil
Richards
° prepared, commented and posted (as it
is in this page) by: Denize Rezende
1) Dentro
das tags "<body> </body>"
coloque:
"<BODY
bgColor=#4c4849 onload=zyva()>
<BGSOUND balance=0 src="defina
aqui o caminho do som"
volume=0>
<DIV id=txt
style="COLOR: #ffc040; FILTER: dropshadow(offx=2, offy=2, color=#000000,enabled=1);
FONT-FAMILY: Verdana; FONT-SIZE: 8pt; FONT-WEIGHT: bold; WIDTH:
100%">
<DIV></DIV>
<DIV></DIV>
<DIV></DIV></DIV><IMG id=img src="coloque
aqui o caminho da imagem"
style="LEFT: -2000px; POSITION: absolute; TOP: -2000px; Z-INDEX:
-1">
<SCRIPT>
with (document.body) {
xm=offsetWidth
ym=offsetHeight
scroll="no"
style.cursor="crosshair"
}
//---------ch'tits réglages-------
Nxi=1
Nyi=40
acc=0.01
//-----------------------------------
Dxi=0;Dyi=0;Li=0;Hi=0;Nxy=Nxi*Nyi
IDTime=0;obj=0;xs=0;ys=0;n=0
solitude=0
pas=0
//------------------------------------
function mov() {
solitude++
pas+=acc
for(i=0;i<Nxy;i++){
arg = ((i*pas)+solitude) * Math.PI /25
obj[i+1].style.top=dcy+(Math.sin(arg)*arg)
obj[i+1].style.left=dcx+(Math.cos(arg)*(2*arg))
}
}
function zyva() {
Dxi=img.width
Dyi=img.height
Li=Dxi/Nxi
Hi=Dyi/Nyi
x=0;y=0;n=0
dcx=Math.round((xm-Dxi)/2)
dcy=Math.round((ym-Dyi)/2)
for(i=1;i<=Nxi;i++) {
for(j=1;j<=Nyi;j++) {
rx=-1+Math.random()*4
ry=-1+Math.random()*2
y1=y+dcy;x1=x+dcx
tope=((n % Nyi)*Hi)
lefte=(Math.floor(n/Nyi)*Li)
code="<img src='"+img.src+"' style='position:absolute;CLIP:
rect("+tope+" auto auto "+lefte+");z-index:
-1;top=-2000'>"
document.body.insertAdjacentHTML("beforeEnd",code)
y+=Hi;n++
}
x+=Li;y=0
}
obj=document.all.tags("img")
IDTime=setInterval("mov()",1)
setTimeout("txt.style.visibility='hidden'",40000)
}
</SCRIPT>
</BODY>"
2) Fechar
com a tag: " </HTML>
"
Atenção: não
esqueça de desprezar todas as aspas que não estejam
na cor azul.
Esse script pode perfeitamente
ser copiado dentro da aba Origem de seu Outlook Express, e ser enviado,
com fundo musical, como mensagem aos seus amigos.