"Guacira rancho"
contribuição de Denize Rezende
Credits:
° image: "Mensagem"
- pastel on paper by Guacira Sampaio Rocha
° background image: "Lunar" by Guacira
° mid: "fuyu [1]" (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 "<head> </head>"
coloque:
"<STYLE>BODY
{
BACKGROUND-ATTACHMENT: fixed; BACKGROUND-COLOR: #4c4849; BACKGROUND-POSITION:
0px 50%; BACKGROUND-REPEAT: repeat; COLOR: #4c4849; FONT-FAMILY:
Tahoma; FONT-SIZE: 9pt; FONT-STYLE: normal; FONT-VARIANT: normal;
FONT-WEIGHT: bold; MARGIN: 2em
}
IMG {
LEFT: 0px; POSITION: absolute; TOP: -1000px
}
</STYLE>
<BGSOUND balance=0 loop=infinite
src="defina
aqui o caminho do som" volume=0>
<META content=author name=phil richards>
<META content="MSHTML 5.00.3013.2600" name=GENERATOR><title>guacira
rancho</title></HEAD>
2) Logo
após coloque:
" <BODY
bgColor=#4c4849 scroll=no>
<DIV><BR></DIV>
<IMG src="aqui
a sua imagem" width="613"
height="422">
<SCRIPT>
//
// La polyandrie sérielle
// Pas l'ombre d'un doute c'est tiré de l'album photo de
mon ex, ÇA !
//
var nh = 5, nv = 5, n_pix = nh * nv, nb_ = 64
var wx = document.body.offsetWidth, wy = document.body.offsetHeight,
midx, midy, iL, iH
var ob = new Object()
var lezimages = document.all.tags("img"), nb_pic = lezimages.length,
sRc = new Array(nb_pic)
for (i=0;i<nb_pic;i++) sRc[i] = lezimages[i].src
//--------------------------------
function ziva() {
iL = lezimages[0].offsetWidth
iH = lezimages[0].offsetHeight
midx = Math.round((wx - iL) * 0.5)
midy = Math.round((wy - iH) * 0.5)
var ape, ese = 0, dx = iL / nh, dy = iH / nv, t = 0, r = dx, b =
dy, l = 0
while (ese < n_pix) {
//rect(top right bottom left)
ape = "<IMG src=" + sRc[Math.floor(Math.random() *
nb_pic)] + " style=\"z-index:-1;CLIP: rect(" + Math.round(t)
+ " " + Math.round(r) + " " + Math.round(b)
+ " " + Math.round(l) + ")\">"
document.body.insertAdjacentHTML("AfterBegin", ape)
ob[ese] = new abject(ese++, document.body.children(0))
t += dy
b += dy
if (b > iH) {
t = 0
b = dy
l += dx
r += dx
}
}
}
function abject(ion, o){
this.ject = ion
this.oo = o
this.obj = o.style
this.argu = Math.PI * 0.5 / nb_
this.rx = 2
this.ry = 2
this.drx = wx * Math.random() * 0.08 / nb_
if (Math.random()<0.5) this.drx = -this.drx
this.dry = wy * Math.random() * 0.08 / nb_
if (Math.random()<0.5) this.dry = -this.dry
this.done = 0
this.nb = -1
this.nbp = 1
this.trig = Math.floor(Math.random() * nb_)
this.trih = Math.floor(Math.random() * (nb_ - this.trig) + this.trig)
this.posx = new Array(nb_)
this.posy = new Array(nb_)
this.posx[0] = midx
this.posy[0] = midy
this.explo = expl0
this.replo = expl1
this.erplo = expl2
this.attendre = tendr3
this.explo()
}
function expl0() {
with (this) {
if(nbp<nb_) {
var nbq = nbp - 1
posx[nbp] = posx[nbq] + rx * Math.cos(3 * argu * nbp)
posy[nbp++] = posy[nbq] + ry * Math.cos(2 * argu * nbp)
rx += drx
ry += dry
explo()
} else replo()
}
}
function expl1() {
with (this) {
if(--nbp>=0) {
obj.pixelLeft = posx[nbp]
obj.pixelTop = posy[nbp]
if (nbp == trih) oo.src = sRc[Math.floor(Math.random() * nb_pic)]
if (nbp == trig){
this.nb = (this.nb + 1) % nb_pic
this.oo.src = sRc[this.nb]
}
setTimeout("ob[" + ject + "].replo()", 33)
} else {
done = 1
attendre()
}
}
}
function tendr3() {
var rb = 1, lf = this.ject
for (i = 1; i < n_pix; i++, lf = (1 + lf) % n_pix) rb *= ob[lf].done
if (rb == 0) setTimeout("ob[" + this.ject + "].attendre()",
33);
else setTimeout("ob[" + this.ject + "].nbp=0;ob["
+ this.ject + "].erplo()", 3333)
}
function expl2() {
with (this) {
if(nbp<nb_) {
obj.pixelLeft = posx[nbp]
obj.pixelTop = posy[nbp++]
setTimeout("ob[" + ject + "].erplo()", 33)
} else {
done = 0
replo()
}
}
}
setTimeout("ziva()",
3200)
</SCRIPT>"
3) Fechar
com as tags: " </BODY></HTML>
"
Atenção: não
esqueça de desprezar todas as aspas que não estejam
na cor branca.
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.