Hi Leute,
mein script sieht so aus:
<script language="JavaScript">
<!--
//variabelen
var getal;
var info = new Array(130);
//toeval function voor de plaatjes
function overzet(){
getal=Math.random();
getal*=6;
getal=Math.ceil(getal);
}
function control(beeld){
document.images[beeld].scr = "plaatjes/" + info[beeld] + ".gif";
}
//function voor het generieren van de tabelle
function tabgen(){
var mitprot=0;
document.writeln("<div align=center>");
document.writeln("<table border=1 cellspacing=0 cellpadding=0 border=0 >");
for(z=1;z<=10;z++)
{
document.writeln("<tr>");
for(x=1;x<=13;x++)
{
overzet();
info[mitprot] = getal;
document.writeln("<td><img onMouseOver=control(name); name=" + mitprot + " src=plaatjes/" + getal + ".png />");
mitprot = mitprot + 1;
}
}
document.writeln("</tr></table></div>");
}
tabgen();
// -->
</script>
Leider ist mir totoal Schleiherhaft warum er in der Function "control" nicht das Bild wechselt! hhmm Hat jemand nen Tipp!
Gruss,
Andreas