Suche im Forum:
Suchen


Autor Nachricht
Beitrag07.02.2007 um 11:04 (UTC)    
Titel: Konfetti anstatt schneeflocken!

Hallo, da ja bald Fasnacht (Fasching) ist (juhuuu Mr. Green ), möchte ich das auf meiner HP anstatt Schneeflocken odewr andere Sachen Konfettis Herunterrieseln... Wenn irgendjemand einen HTML-Code kennt mit dem man dies machen kann, wäre ich froh wenn er/sie ihn hier postet.
Faschingfröhlichfreudige Grüsse
Patricia
Beitrag07.02.2007 um 13:05 (UTC)    
Titel:

hi - diesen code mußt du bei - text über dem design einstellen:
Code:
<!-- präsentiert von kostenlose-javascripts.de -->
<script type='text/javascript'>
<!--
Amount=20; //Anzahl der Konfettis
 
colors=new Array(5)
colors[0]="red";
colors[1]="green";
colors[2]="yellow";
colors[3]="magenta";
colors[4]="blue";
 
Ypos=new Array();
Xpos=new Array();
Speed=new Array();
Step=new Array();
Cstep=new Array();
ns=(document.layers)?1:0;
if (ns){
for (i = 0; i < Amount; i++){
var P=Math.floor(Math.random()*5);
rndCol=colors[P];
document.write("<layer name='sn"+i+"' left='0' top='0'><font size='24' color'" + rndCol + "'>.</font></layer>");
}
}
else{
document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i = 0; i < Amount; i++){
var P=Math.floor(Math.random()*colors.length);
rndCol=colors[P];
document.write('<span style="position:absolute;top:0px;left:0px;color:' + rndCol + ';font-size:72px;font-family: \'Times New Roman\', Times, serif;" id="si'+i+'">.</span>');
}
document.write('</div></div>');
}
WinHeight=(document.layers)?window.innerHeight:window.document.body.clientHeight;
WinWidth=(document.layers)?window.innerWidth:window.document.body.clientWidth;
for (i=0; i < Amount; i++){
 Ypos[i] = Math.round(Math.random()*WinHeight);
 Xpos[i] = Math.round(Math.random()*WinWidth);
 Speed[i]= Math.random()*3+2;
 Cstep[i]=0;
 Step[i]=Math.random()*0.1+0.05;
}
function fall(){
var WinHeight=(document.layers)?window.innerHeight:window.document.body.clientHeight;
var WinWidth=(document.layers)?window.innerWidth:window.document.body.clientWidth;
var hscrll=(document.layers)?window.pageYOffset:document.body.scrollTop;
var wscrll=(document.layers)?window.pageXOffset:document.body.scrollLeft;
for (i=0; i < Amount; i++){
sy = Speed[i]*Math.sin(90*Math.PI/180);
sx = Speed[i]*Math.cos(Cstep[i]);
Ypos[i]+=sy;
Xpos[i]+=sx;
if (Ypos[i] > WinHeight){
Ypos[i]=-60;
Xpos[i]=Math.round(Math.random()*WinWidth);
Speed[i]=Math.random()*5+2;
}
if (ns){
document.layers['sn'+i].left=Xpos[i];
document.layers['sn'+i].top=Ypos[i]+hscrll;
}
else{
document.getElementById('si'+i).style.left=Xpos[i]+"px";
document.getElementById('si'+i).style.top=Ypos[i]+hscrll+"px";
}
Cstep[i]+=Step[i];
}
setTimeout('fall()',40);
}
//-->
</script>
<br />
<div id="kostenlosejavascripts" align="center"><a href="http://www.hermanus.info/en/accommodation/category/guesthouses.html" title="Hermanus Guest House" target="_blank">Hermanus Guest House</a></div>
<br />
<script type="text/javascript" src="http://www.kostenlose-javascripts.de/startScript.php?id=310"></script>
<!-- präsentiert von kostenlose-javascripts.de -->

helau Michael
______________
Ciao Michael
Wenn man keine Ahnung hat, einfach mal fragen!


No Support via PN, E-Mail or Messenger - only here : FORUM
Beiträge der letzten Zeit anzeigen:   


Powered by phpBB © 2001, 2005 phpBB Group
Deutsche Übersetzung von phpBB.de