close #24, Kalender hinzugefügt
This commit is contained in:
@@ -48,14 +48,8 @@ function randommaker(range) {
|
||||
}
|
||||
|
||||
function initsnow() {
|
||||
if (ie5 || opera) {
|
||||
marginbottom = document.body.clientHeight;
|
||||
marginright = document.body.clientWidth;
|
||||
}
|
||||
else if (ns6) {
|
||||
marginbottom = window.innerHeight;
|
||||
marginright = window.innerWidth;
|
||||
}
|
||||
marginright = window.innerWidth;
|
||||
marginbottom = window.innerHeight;
|
||||
var snowsizerange=snowmaxsize-snowminsize;
|
||||
for (i=0;i<=snowmax;i++) {
|
||||
crds[i] = 0;
|
||||
@@ -64,7 +58,7 @@ function initsnow() {
|
||||
snow[i]=document.getElementById("s"+i);
|
||||
snow[i].style.fontFamily=snowtype[randommaker(snowtype.length)];
|
||||
snow[i].size=randommaker(snowsizerange)+snowminsize;
|
||||
snow[i].style.fontSize=snow[i].size;
|
||||
snow[i].style.fontSize=snow[i].size+"px";
|
||||
snow[i].style.color=snowcolor[randommaker(snowcolor.length)];
|
||||
snow[i].sink=sinkspeed*snow[i].size/5;
|
||||
if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size);}
|
||||
@@ -79,6 +73,9 @@ function initsnow() {
|
||||
}
|
||||
|
||||
function movesnow() {
|
||||
marginright = window.innerWidth;
|
||||
marginbottom = window.innerHeight
|
||||
$("#kstart").html(marginbottom);
|
||||
for (i=0;i<=snowmax;i++) {
|
||||
crds[i] += x_mv[i];
|
||||
snow[i].posy+=snow[i].sink;
|
||||
@@ -97,5 +94,5 @@ function movesnow() {
|
||||
}
|
||||
|
||||
for (i=0;i<=snowmax;i++) {
|
||||
document.write("<span id='s"+i+"' style='position:absolute;top:-"+snowmaxsize+"px;'>"+snowletter+"</span>");
|
||||
document.write("<span id='s"+i+"' style='position:fixed;top:-"+snowmaxsize+"px;'>"+snowletter+"</span>");
|
||||
}
|
||||
Reference in New Issue
Block a user