OK Das ist jetzt ne Harte Nuss:
...
...
function parabel()
{
p=1;
x=250
while ( x!=550 )
{
x=x-400;
y=x*x;
document.getElementById("punkt").innerHTML = "<div id='"+p+"'></div>";
document.getElementById(p).style.top = 400 - (parseInt);
x=x+400;
document.getElementById(p).style.left = parseInt(x);
document.getElementById(p).innerHTML = "+";
p++;
x=x+1;
};
}
...
...
<style type="text/css">
#punkt
{
position:fixed ;
left:-100 ;
top:-100 ;
}
</style>
...
...
<body onload="start()">
<div id="punkt"></div>
</body>
...
...
Der zeigt keine Parabel :'-( Was hab ich falsch gemacht?
...
...
function parabel()
{
p=1;
x=250
while ( x!=550 )
{
x=x-400;
y=x*x;
document.getElementById("punkt").innerHTML = "<div id='"+p+"'></div>";
document.getElementById(p).style.top = 400 - (parseInt);
x=x+400;
document.getElementById(p).style.left = parseInt(x);
document.getElementById(p).innerHTML = "+";
p++;
x=x+1;
};
}
...
...
<style type="text/css">
#punkt
{
position:fixed ;
left:-100 ;
top:-100 ;
}
</style>
...
...
<body onload="start()">
<div id="punkt"></div>
</body>
...
...
Der zeigt keine Parabel :'-( Was hab ich falsch gemacht?