Autor |
Nachricht |
-
popo123
|
20.12.2006 um 15:12 (UTC) Titel: Schneefall auf einer seite?! |
|
|
Jetzt zur Weihnachtszeit hätte ich gerne auf meiner Startseite das Schneeflocken von oben nach unten fallen. Leider habe ich nur HTML-codes wo man noch eine URL einfügen muss usw.
Hat jemand vielleicht einen Code, den ich einfach einfügen kann und schon kommen die Schneeflocken???
Bitte antworten!
Danke.
MFG uHp |
|
↑
|
|
|
-
babbamamma
|
|
↑
|
|
|
-
popo123
|
20.12.2006 um 15:28 (UTC) Titel: |
|
|
Haste denn einen Code?? |
|
↑
|
|
|
-
babbamamma
|
20.12.2006 um 15:31 (UTC) Titel: |
|
|
Code: <script type='text/javascript'>
<!--
var no = 18; // Anzahl der Schneeflocken
var speed = 25; // Geschwindigkeit -> je kleiner die Zahl, desto schneller
var snowflake = "_files/images/snow.gif";
var dx, xp, yp; // coordinate and position variables
var am, stx, sty; // amplitude and step variables
var i, doc_width, doc_height;
doc_width = document.body.clientWidth;
doc_height = 1100;
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
for (i = 0; i < no; ++ i) {
dx[i] = 0; // set coordinate variables
xp[i] = Math.random()*(doc_width-50); // set position variables
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20; // set amplitude variables
stx[i] = 0.02 + Math.random()/10; // set step variables
sty[i] = 0.7 + Math.random(); // set step variables
if (i == 0) {
document.write("<div id=\"schneedot"+ i +"\" style=\"position: ");
document.write("absolute; z-index: "+ i +"; visibility: ");
document.write("visible; top: 15px; left: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
} else {
document.write("<div id=\"schneedot"+ i +"\" style=\"position: ");
document.write("absolute; z-index: "+ i +"; visibility: ");
document.write("visible; top: 15px; left: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
}
}
function snowIE() { // IE main animation function
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
}
dx[i] += stx[i];
document.getElementById("schneedot"+i).style.top = yp[i] + "px";
document.getElementById("schneedot"+i).style.left = (xp[i] + am[i]*Math.sin(dx[i])) + "px";
}
setTimeout("snowIE()", speed);
}
//-->
</script>
<br />
<div id="kostenlosejavascripts" align="center"><a href="Da muss die url der hochgeladenen schneeflocke hin!/" title="Schnee für die Homepage" target="_blank">Schnee für die Homepage</a></div>
<br />
<script type="text/javascript" src="http://www.kostenlose-javascripts.de/startScript.php?id=273"></script>
Jetzt brauchste nur noch ne Schneeflocke auf einem externen Server zwecks der URL ______________ "Besucht uns doch mal..."
[img:22e5b9a705]http://88.198.45.9/pic/babbamamma_free-picture_ban6.jpg[/img:22e5b9a705]
"Man sollte darüber nachdenken was man sagt, bevor man sagt was man denkt" |
|
↑
|
|
|
-
knuddelkaninchen
|
20.12.2006 um 17:52 (UTC) Titel: |
|
|
Hier der Code mit meinen Schneeflocken:
Code: <script type='text/javascript'>
<!--
var no = 25; // Anzahl der Schneeflocken
var speed = 23; // Geschwindigkeit -> je kleiner die Zahl, desto schneller
var snowflake = "http://www.jswelt.de/gfxu/snow.gif";
var dx, xp, yp; // coordinate and position variables
var am, stx, sty; // amplitude and step variables
var i, doc_width, doc_height;
doc_width = document.body.clientWidth;
doc_height = 1100;
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
for (i = 0; i < no; ++ i) {
dx[i] = 0; // set coordinate variables
xp[i] = Math.random()*(doc_width-50); // set position variables
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20; // set amplitude variables
stx[i] = 0.02 + Math.random()/10; // set step variables
sty[i] = 0.7 + Math.random(); // set step variables
if (i == 0) {
document.write("<div id=\"schneedot"+ i +"\" style=\"position: ");
document.write("absolute; z-index: "+ i +"; visibility: ");
document.write("visible; top: 15px; left: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
} else {
document.write("<div id=\"schneedot"+ i +"\" style=\"position: ");
document.write("absolute; z-index: "+ i +"; visibility: ");
document.write("visible; top: 15px; left: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
}
}
function snowIE() { // IE main animation function
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
}
dx[i] += stx[i];
document.getElementById("schneedot"+i).style.top = yp[i] + "px";
document.getElementById("schneedot"+i).style.left = (xp[i] + am[i]*Math.sin(dx[i])) + "px";
}
setTimeout("snowIE()", speed);
}
//-->
</script>
<br />
<div id="kostenlosejavascripts" align="center"><a href="http://www.kostenlose-javascripts.de/" title="Schnee für die Homepage" target="_blank">Schnee für die Homepage</a></div>
<br />
<script type="text/javascript" src="http://www.kostenlose-javascripts.de/startScript.php?id=273"></script> |
|
↑
|
|
|
-
popo123
|
22.12.2006 um 21:11 (UTC) Titel: |
|
|
thx
ich visit your side |
|
↑
|
|
|
-
motorocker89
|
22.12.2006 um 21:19 (UTC) Titel: |
|
|
hi,
füge einfach den zuvor genannten code bei: Design einstellen -> Text über dem Design, ein und klicke abschließend auf Design einstellen. ______________ *** Signatur entfernt *** |
|
↑
|
|
|
-
coolplace
Wohnort: USB = United States of Bücken
|
23.12.2006 um 06:41 (UTC) Titel: |
|
|
knuddelkaninchen hat Folgendes geschrieben: Hier der Code mit meinen Schneeflocken...
Hast Du das ja jetzt hinbekommen mit den Flocken |
|
↑
|
|
|
-
jonas14
|
|
↑
|
|
|
|