
19/01/2004, 11:24
|
 | | | Fecha de Ingreso: noviembre-2003 Ubicación: Guatemala
Mensajes: 742
Antigüedad: 21 años, 3 meses Puntos: 4 | |
pues se puede pero esta complicado, te puede llevar mucho tiempo, aqui halan el tamaño actual de la ventana...
var containerwidth=ns6?parseInt(window.innerWidth)/5-3 : parseInt(document.body.clientWidth/5)
var containerheight=ns6?parseInt(window.innerHeight)/5-2 : parseInt(document.body.offsetHeight/5)
y en base a esta, crean los cuadros:
for (i=1;i<=5;i++)
temp[i].left=(i-1)*containerwidth
for (i=6;i<=10;i++){
temp[i].left=(i-6)*containerwidth
temp[i].top=containerheight
}
for (i=11;i<=15;i++){
temp[i].left=(i-11)*containerwidth
temp[i].top=2*containerheight
}
for (i=16;i<=20;i++){
temp[i].left=(i-16)*containerwidth
temp[i].top=3*containerheight
}
for (i=21;i<=25;i++){
temp[i].left=(i-21)*containerwidth
temp[i].top=4*containerheight
}
}
si ves, aqui le especifican left, top, height y width, que son las medidas que forman al cuadro, pero para un cirulo tendrias muchos mas left y muchos mas top
-------- <-- top
I I <-- left
--------
---- < top
- - <-- top
- - <--top
I I <-top
- - <-top
- -
---
__________________ '_' ... |