Ver Mensaje Individual
  #9 (permalink)  
Antiguo 28/12/2009, 13:42
bebo
 
Fecha de Ingreso: octubre-2009
Mensajes: 97
Antigüedad: 14 años, 6 meses
Puntos: 4
Respuesta: WEB para navidad

Aqui te dejo otro código para copos de nieve. Es muy simple:
Código Javascript:
Ver original
  1. <html>
  2. <title>Copos de nieve</title>
  3. <body bgcolor="#000000">
  4. <script>
  5. //Edita éstas variables a tu gusto.
  6. var numero_de_copos=50;
  7. var color_del_copo="blue";
  8. var caracter_del_copo="º";
  9. //--------------------------
  10. function int(q){q=q.toString();return new Number(q.split(".")[0])}
  11. for(i=1;i<=numero_de_copos;i++){
  12. document.write('<marquee behavior="scroll" direction="down" style="position: absolute; left: '+int(Math.random()*999)+'px; top: '+int(Math.random()*60)+'px; width: 16px; height: '+int(Math.random()*700)+'px;" scrollamount="'+int(Math.random()*9)+'"><span style="color:'+color_del_copo+'">'+caracter_del_copo+'</span></marquee>')
  13. }
  14. </script>
  15. </body>
  16. </html>

¡Feliz navidad!