Verfasst: 11.06.2008 21:16
Dann zeig mal den aktuellen Einbau... Als Link zur Seite (wo du das eingebaut hast)
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Code: Alles auswählen
posx = 0;
posy = 0;
z = 0;
welle = 3;
wellen = -3;
z1 = -12;
function zeichneflagge(xpos, ypos, farbe, teil, index)
{
document.write("<div id='"+teil+index+"' style='position:absolute;top:"+ypos+"px;left:"+xpos+"px;font-family:webdings;font-size:12;color:"+farbe+"'>/</div>");
}
document.write("<div style='position:absolute'>");
for(z = 0; z < 14; z++)
{
zeichneflagge(posx + z*4, posy,"black","schwarz", z);
zeichneflagge(posx + z*4 - 6, posy+12,"red","rot", z);
zeichneflagge(posx + z*4 - 12, posy+24,"gold","gold", z);
}
document.write("<div id='wmtext' style='position:absolute;top:42px;left:0px;font-family:serif;font-size:12;color:black'></div>");
document.write("</div>");
function mauspos(e)
{
if (!e) {
posx = event.x;
posy = event.y - 30;
} else {
posx = e.pageX;
posy = e.pageY - 30;
}
}
function fahne()
{
for(z = 0; z < 14; z++)
{
schwarz = document.getElementById('schwarz'+z);
rot = document.getElementById('rot'+z);
gold = document.getElementById('gold'+z);
schwarz.style.top = ( posy + document.body.scrollTop + welle * Math.sin(z1 + z/wellen) ) + "px";
rot.style.top = ( posy + document.body.scrollTop + 12 + welle * Math.sin(z1 + z/wellen) ) + "px";
gold.style.top = ( posy + document.body.scrollTop + 24 + welle * Math.sin(z1 + z/wellen) ) + "px";
schwarz.style.left = ( posx + document.body.scrollLeft + z*4 ) + "px";
rot.style.left = ( posx + document.body.scrollLeft + z*4 - 6 ) + "px";
gold.style.left = ( posx + document.body.scrollLeft + z*4 - 12 ) + "px";
}
text = document.getElementById('wmtext');
text.style.left = ( posx + document.body.scrollLeft ) + "px";
text.style.top = ( posy + document.body.scrollTop + 42 ) + "px";
if(z1++ > 11)
z1 = -12;
setTimeout("fahne()", 40);
}
Code: Alles auswählen
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<title>Flying Rabbit</title>
<link rel="shortcut icon" href="bilder/favicon.ico">
<link rel="stylesheet" type="text/css" media="screen" href="design.css" />
<script src="scripte.js" type="text/javascript"></script>
</head>
<body>
</body>
</html>
Code: Alles auswählen
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<title>Flying Rabbit</title>
<link rel="shortcut icon" href="bilder/favicon.ico">
<link rel="stylesheet" type="text/css" media="screen" href="design.css" />
<script src="scripte.js" type="text/javascript"></script>
</head>
<body onload="????">
</body>
</html>
Ist das richtig?
Wen ja was muss ich den anstatt der ???? eintragen?