Foros del Web » Programando para Internet » Javascript »

Chequen este Script

Estas en el tema de Chequen este Script en el foro de Javascript en Foros del Web. Lo encontre y pos me gusto y pos espero les guste <a href='ir.asp?http://core.hispanet.com' target='_blank'>http://core.hispanet.com...</a> aqui esta como se ve aqui se los dejo completito &lt;BODY ...
  #1 (permalink)  
Antiguo 13/09/2002, 16:59
Avatar de CORE
Usuario no validado
 
Fecha de Ingreso: abril-2002
Ubicación: Merida
Mensajes: 2.165
Antigüedad: 22 años, 1 mes
Puntos: 3
Chequen este Script

Lo encontre y pos me gusto y pos espero les guste <a href='ir.asp?http://core.hispanet.com' target='_blank'>http://core.hispanet.com...</a> aqui esta como se ve

aqui se los dejo completito

&lt;BODY bgcolor = &quot;#FFFFFF&quot; onmousemove=&quot;coor()&quot; text=&quot;#000000&quot; link=&quot;#333333&quot; vlink=&quot;#333333&quot; alink=&quot;#666666&quot; onMouseDown=&quot;window.location.href('3d3.htm'); &quot;&gt;
&lt;p&gt;&lt;font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;7&quot;&gt;&lt;b&gt;&lt;font color=&quot;#000000&quot; size=&quot;10&quot;&gt;Te
gusta este ? &lt;/font&gt;&lt;/b&gt;&lt;/font&gt;&lt;br&gt;
&lt;/p&gt;
&lt;DIV ID = &quot;div1&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;logo2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div2&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;logo2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div3&quot; style=&quot;position:absolute; width:96; height:96; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;logo2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div4&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;logo2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div5&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;logo2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div6&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;logo2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div7&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;logo2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div8&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;logo2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div9&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;logo2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div10&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;logo2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div11&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;logo2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div12&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;logo2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div13&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;logo2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div14&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;logo2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div15&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;logo2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div16&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;logo2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div17&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;logo2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div18&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;logo2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div19&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;logo2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div20&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;logo2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div21&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;logo2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div22&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;logo2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div23&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;logo2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div24&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;logo2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div25&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;tran1.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div26&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;tran2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div27&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;tran3.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div28&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;tran1.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div29&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;tran2.gif&quot; &gt;&lt;/DIV&gt;
&lt;DIV ID = &quot;div30&quot; style=&quot;position:absolute; width:64; height:64; left: 300; top: 200&quot;&gt;&lt;IMG SRC = &quot;tran3.gif&quot; &gt;&lt;/DIV&gt;
&lt;/BODY&gt;

&lt;script language=&quot;JavaScript&quot;&gt;
function coor() {
var xpos = window.event .x;
var ypos = window.event.y;
window.status = &quot;X=&quot; + xpos + &quot; Y=&quot; +ypos;
}
&lt;/script&gt;



&lt;SCRIPT LANGUAGE = JavaScript&gt;

var vx = new Array();
var vy = new Array();
var vz = new Array();
vx[1] = 0;vy[1] = 1;vz[1] = 1;
vx[2] = 0;vy[2] = 0;vz[2] = 1;
vx[3] = 0;vy[3] = 1;vz[3] = 0;
vx[4] = 0;vy[4] = -1;vz[4] = -1;
vx[5] = 0;vy[5] = -1;vz[5] = 0;
vx[6] = 0;vy[6] = 0;vz[6] = -1;
vx[7] = 0;vy[7] = 1;vz[7] = -1;
vx[8] = 0;vy[8] = -1;vz[8] = 1;
vx[9] = 0.8;vy[9] = 0.8;vz[9] = 0.8;
vx[10] = 1;vy[10] = 0;vz[10] = 1;
vx[11] = 1;vy[11] = 1;vz[11] = 0;
vx[12] = 0.8;vy[12] = -0.8;vz[12] = -0.8;
vx[13] = 1;vy[13] = -1;vz[13] = 0;
vx[14] = 1;vy[14] = 0;vz[14] = -1;
vx[15] = 0.8;vy[15] = 0.8;vz[15] = -0.8;
vx[16] = 0.8;vy[16] = -0.8;vz[16] = 0.8;
vx[17] = -0.8;vy[17] = 0.8;vz[17] = 0.8;
vx[18] = -1;vy[18] = 0;vz[18] = 1;
vx[19] = -1;vy[19] = 1;vz[19] = 0;
vx[20] = -0.8;vy[20] = -0.8;vz[20] = -0.8;
vx[21] = -1;vy[21] = -1;vz[21] = 0;
vx[22] = -1;vy[22] = 0;vz[22] = -1;
vx[23] = -0.8;vy[23] = 0.8;vz[23] = -0.8;
vx[24] = -0.8;vy[24] = -0.8;vz[24] = 0.8;
vx[25] = 0;vy[25] = 2;vz[25] = 0;
vx[26] = 0;vy[26] = 3;vz[26] = 0;
vx[27] = 0;vy[27] = 4;vz[27] = 0;
vx[28] = 0;vy[28] = -2;vz[28] = 0;
vx[29] = 0;vy[29] = -3;vz[29] = 0;
vx[30] = 0;vy[30] = -4;vz[30] = 0;


var si = new Array(31);
var sj = new Array(31);
si[1] = 100;
sj[1] = 100;
si[2] = 100;
sj[2] = 100;
si[3] = 100;
sj[3] = 100;
si[4] = 100;
sj[4] = 100;
si[5] = 100;
sj[5] = 100;
si[6] = 100;
sj[6] = 100;
si[7] = 100;
sj[7] = 100;
si[8] = 100;
sj[8] = 100;
si[9] = 100;
sj[9] = 100;
si[10] = 100;
sj[10] = 100;
si[11] = 100;
sj[11] = 100;
si[12] = 100;
sj[12] = 100;
si[13] = 100;
sj[13] = 100;
si[14] = 100;
sj[14] = 100;
si[15] = 100;
sj[15] = 100;
si[16] = 100;
sj[16] = 100;
si[17] = 100;
sj[17] = 100;
si[18] = 100;
sj[18] = 100;
si[19] = 100;
sj[19] = 100;
si[20] = 100;
sj[20] = 100;
si[21] = 100;
sj[21] = 100;
si[22] = 100;
sj[22] = 100;
si[23] = 100;
sj[23] = 100;
si[24] = 100;
sj[24] = 100;
si[25] = 100;
sj[25] = 100;
si[26] = 100;
sj[26] = 100;
si[27] = 100;
sj[27] = 100;
si[28] = 100;
sj[28] = 100;
si[29] = 100;
sj[29] = 100;
si[30] = 100;
sj[30] = 100;

var m = new Array(31);
var n = new Array(31);

var c;
var s;
var d;
var xm;
var ym;


var ag = (3.14159 / 500);
var g = 15;
var h = 250;

var taille = new Array();
taille[1] = 0;
taille[2] = 0;
taille[3] = 0;
taille[4] = 0;
taille[5] = 0;
taille[6] = 0;
taille[7] = 0;
taille[8] = 0;
taille[9] = 0;
taille[10] = 0;
taille[11] = 0;
taille[12] = 0;
taille[13] = 0;
taille[14] = 0;
taille[15] = 0;
taille[16] = 0;
taille[17] = 0;
taille[18] = 0;
taille[19] = 0;
taille[20] = 0;
taille[21] = 0;
taille[22] = 0;
taille[23] = 0;
taille[24] = 0;
taille[25] = 0;
taille[26] = 0;
taille[27] = 0;
taille[28] = 0;
taille[29] = 0;
taille[30] = 0;

animation = setTimeout(&quot;anima()&quot;,0);

function anima()
{

for(var i = 1; i &lt;= 30; i++ )
{
if ((g-vz[I]) &gt; 0)
{
si[i] = (vx[i] * h / ((g - vz[i])))*4 + (window.document.body.offsetWidth / 2);
sj[i] = (vy[i] * h / ((g - vz[i])))*4 + (window.document.body.offsetHeight / 2);
}
m[i] = vz[i];
n[i] = m[i];
}


d = 10;
c = Math.cos(d * ag);
s = Math.sin(d * ag);
turnu()
d = 3;
c = Math.cos(d * ag);
s = Math.sin(d * ag);
turnv()



document.all.div1.style.pixelLeft = (si[1] - taille[1]);document.all.div1.style.pixelTop = (sj[1] - taille[1]);
document.all.div2.style.pixelLeft = (si[2] - taille[2]);document.all.div2.style.pixelTop = (sj[2] - taille[2]);
document.all.div3.style.pixelLeft = (si[3] - taille[3]);document.all.div3.style.pixelTop = (sj[3] - taille[3]);
document.all.div4.style.pixelLeft = (si[4] - taille[4]);document.all.div4.style.pixelTop = (sj[4] - taille[4]);
document.all.div5.style.pixelLeft = (si[5] - taille[5]);document.all.div5.style.pixelTop = (sj[5] - taille[5]);
document.all.div6.style.pixelLeft = (si[6] - taille[6]);document.all.div6.style.pixelTop = (sj[6] - taille[6]);
document.all.div7.style.pixelLeft = (si[7] - taille[7]);document.all.div7.style.pixelTop = (sj[7] - taille[7]);
document.all.div8.style.pixelLeft = (si[8] - taille[8]);document.all.div8.style.pixelTop = (sj[8] - taille[8]);
document.all.div9.style.pixelLeft = (si[9] - taille[9]);document.all.div9.style.pixelTop = (sj[9] - taille[9]);
document.all.div10.style.pixelLeft = (si[10] - taille[10]);document.all.div10.style.pixelTop = (sj[10] - taille[10]);
document.all.div11.style.pixelLeft = (si[11] - taille[11]);document.all.div11.style.pixelTop = (sj[11] - taille[11]);
document.all.div12.style.pixelLeft = (si[12] - taille[12]);document.all.div12.style.pixelTop = (sj[12] - taille[12]);
document.all.div13.style.pixelLeft = (si[13] - taille[13]);document.all.div13.style.pixelTop = (sj[13] - taille[13]);
document.all.div14.style.pixelLeft = (si[14] - taille[14]);document.all.div14.style.pixelTop = (sj[14] - taille[14]);
document.all.div15.style.pixelLeft = (si[15] - taille[15]);document.all.div15.style.pixelTop = (sj[15] - taille[15]);
document.all.div16.style.pixelLeft = (si[16] - taille[16]);document.all.div16.style.pixelTop = (sj[16] - taille[16]);
document.all.div17.style.pixelLeft = (si[17] - taille[17]);document.all.div17.style.pixelTop = (sj[17] - taille[17]);
document.all.div18.style.pixelLeft = (si[18] - taille[18]);document.all.div18.style.pixelTop = (sj[18] - taille[18]);
document.all.div19.style.pixelLeft = (si[19] - taille[19]);document.all.div19.style.pixelTop = (sj[19] - taille[19]);
document.all.div20.style.pixelLeft = (si[20] - taille[20]);document.all.div20.style.pixelTop = (sj[20] - taille[20]);
document.all.div21.style.pixelLeft = (si[21] - taille[21]);document.all.div21.style.pixelTop = (sj[21] - taille[21]);
document.all.div22.style.pixelLeft = (si[22] - taille[22]);document.all.div22.style.pixelTop = (sj[22] - taille[22]);
document.all.div23.style.pixelLeft = (si[23] - taille[23]);document.all.div23.style.pixelTop = (sj[23] - taille[23]);
document.all.div24.style.pixelLeft = (si[24] - taille[24]);document.all.div24.style.pixelTop = (sj[24] - taille[24]);
document.all.div25.style.pixelLeft = (si[25] - taille[25]);document.all.div25.style.pixelTop = (sj[25] - taille[25]);
document.all.div26.style.pixelLeft = (si[26] - taille[26]);document.all.div26.style.pixelTop = (sj[26] - taille[26]);
document.all.div27.style.pixelLeft = (si[27] - taille[27]);document.all.div27.style.pixelTop = (sj[27] - taille[27]);
document.all.div28.style.pixelLeft = (si[28] - taille[28]);document.all.div28.style.pixelTop = (sj[28] - taille[28]);
document.all.div29.style.pixelLeft = (si[29] - taille[29]);document.all.div29.style.pixelTop = (sj[29] - taille[29]);
document.all.div30.style.pixelLeft = (si[30] - taille[30]);document.all.div30.style.pixelTop = (sj[30] - taille[30]);

animation = setTimeout(&quot;anima()&quot;,0);
}

function turnu()
{
for(var i = 1; i &lt;= 30;i++)
{
xx = vx[i];
zz = vz[i];
vx[i] = (xx * c) - (zz * s);
vz[i] = (zz * c) + (xx * s);
}
}

function turnv()
{
for(var i = 1; i &lt;= 30;i++)
{
yy = vy[i];
zz = vz[i];
vy[i] = (yy * c) + (zz * s);
vz = (zz * c) - (yy * s);
}
}

&lt;/SCRIPT&gt;
  #2 (permalink)  
Antiguo 10/11/2002, 10:20
 
Fecha de Ingreso: noviembre-2002
Ubicación: Monterrey
Mensajes: 9
Antigüedad: 21 años, 5 meses
Puntos: 0
Que es eso?

Vi tu Script y no tengo ni la mas remota idea de lo que hablas.

Solo por curiosidad, Cual es la pagina donde viene? Que hace ese Script?
  #3 (permalink)  
Antiguo 10/11/2002, 13:41
Colaborador
 
Fecha de Ingreso: julio-2002
Ubicación: Buenos Aires
Mensajes: 699
Antigüedad: 21 años, 9 meses
Puntos: 1
lo mismo que Beta Silva:



-no entiendo absolutamente nada.
-que es lo que hace este script
-de donde lo sacaste
-etc
  #4 (permalink)  
Antiguo 11/11/2002, 01:42
Avatar de CsC_3  
Fecha de Ingreso: noviembre-2002
Mensajes: 589
Antigüedad: 21 años, 5 meses
Puntos: 0
mejor pon la web donde esta, para verlo
__________________
"No hay emoticon que describa lo que siento en estos momentos!!!"
  #5 (permalink)  
Antiguo 11/11/2002, 01:59
Avatar de Virgil
Colaborador
 
Fecha de Ingreso: agosto-2002
Ubicación: Guadalajara
Mensajes: 872
Antigüedad: 21 años, 8 meses
Puntos: 3
Lo mismo:

que hace? de donde salió?
__________________
Un Saludo,

Virgil


"Un viaje de mil leguas comienza con el primer paso"
Lao Tse
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 08:43.