// Indiquer l'URL de l'image du flocon : var urlflocon=" http://ekladata.com/S6-fa-LOck5086iCWQy1U00tlHU.gif" // Ecrire le nombre de flocons : var nombreflocons = 12; // Indiquer si la neige doit disparaître après x secondes (0=jamais) : var cacherflocons = 0; // Indiquer si la neige doit être vue sur la fenêtre ou toute la page avant de disparaître ("windowheight"=la fenêtre, "pageheight"=toute la page) var voirflocons = "windowheight"; /////////// FIN DE LA PARTIE CONFIGURATION ////////////////////////////////// var ie4up = (document.all) ? 1 : 0; var ns6up = (document.getElementById&&!document.all) ? 1 : 0; function testIEcompatible(){ return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body } var dx, xp, yp; // Variables de coordonnées et de position var am, stx, sty; // Variables d'amplitude var i, doc_width = 1024, doc_height = 768; // Taille de l'écran if (ns6up) { doc_width = self.innerWidth; doc_height = self.innerHeight; } else if (ie4up) { doc_width = testIEcompatible().clientWidth; doc_height = testIEcompatible().clientHeight; } dx = new Array(); xp = new Array(); yp = new Array(); am = new Array(); stx = new Array(); sty = new Array(); for (i = 0; i < nombreflocons; ++ i) { dx[i] = 0; // Variables de coordonnées xp[i] = Math.random()*(doc_width-50); // Variables de position yp[i] = Math.random()*doc_height; am[i] = Math.random()*20; // Variables d'amplitude stx[i] = 0.02 + Math.random()/10; // Variables de pas? sty[i] = 0.7 + Math.random(); // Variables de pas if (ie4up||ns6up) { if (i == 0) { document.write("