Wie bekomme ich diesen Script auf unsere Page ? Welche Datei ist das und wo muss ich das einfügen ? Danke schonmal im Voraus...
externer Link
mfg
Frostwolf
betroffene Homepage: externer Link
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
| Geschlossen | ||




<script type="text/javascript" src="http://www.deineAdresse/include/includes/xajax_js/snow.js" charset="UTF-8"></script>
/*********************************** *********************************** ********************/
// SnowScript for IE, Mozilla and many more!
// © RoterFruchtZwerg 2003
// stumpf und schnell mal von uns ausgeliehen ;)
var imgNum = 0;
var snowImg = new Array();
snowImg[0] ="<span style=\"color: #AAAAAA; font-size: 8pt;\">*</span>";
snowImg[1] ="<span style=\"color: #AABBCC; font-size: 10pt;\">*</span>";
snowImg[0] ="<img src=\"http://deineAdresse/include/images/snow/java-schnee1.gif\" alt=\"*\"/>";
snowImg[1] ="<img src=\"http://deineAdresse/include/images/snow/java-schnee2.gif\" alt=\"*\" />";
var no = 15;
var dx, xp, yp;
var am, stx, sty;
var i, doc_width = 800, doc_height = 600;
doc_width = window.innerWidth ? window.innerWidth : document.body.clientWidth;
doc_height = window.innerHeight ? window.innerHeight : document.body.clientHeight;
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
for (i = 0; i < no; ++ i) {
imgNum = imgNum?0:1;
var snowsrc = snowImg[imgNum];
dx[i] = 0;
xp[i] = Math.random()*(doc_width-60);
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*10;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
document.write("<div id=\"dot"+ i +"\" style=\"position: absolute; z-index: "+ i +"; visibility: visible; top: 1px; left: 1px; width:12px;\">"+snowsrc+"</div>");
}
function snow() {
for (i = 0; i < no; ++ i) {
yp[i] += sty[i];
if (yp[i] > doc_height-20) {
xp[i] = Math.random()*(doc_width-am[i]-20);
yp[i] = 0;
stx[i] = 0.07 + Math.random()/10;
sty[i] = 2.7 + Math.random()*2;
doc_width = window.innerWidth ? window.innerWidth : document.body.clientWidth;
doc_height = window.innerHeight ? window.innerHeight : document.body.clientHeight;
}
dx[i] += stx[i];
document.getElementById("dot"+i).style.top = Math.round(yp[i])+"px";
document.getElementById("dot"+i).style.left = Math.round(xp[i] + am[i]*Math.sin(dx[i]))+"px";
}
setTimeout("snow()", 60);
}
snow();
// SnowScript for IE, Mozilla and many more!
// © RoterFruchtZwerg 2003
// stumpf und schnell mal von uns ausgeliehen ;)
/*********************************** *********************************** ********************/
| Geschlossen | ||
![]() |
Zurück zu Allgemein | |