MySQL interesse |
|
Beste mensen, heb een spel gescript in php.
Nu zit het zo:
<td width="50" height="25" class="tdbg" id="<?=$i;?>" onClick="keno(<?=$i;?>)" onmousedown="changebg(event, '#000044')" onmouseover="this.style.cursor='pointer'"><center><?=$i;?></center></td>
<td width="50" height="25" class="tdbg" id="<?=$i;?>" onClick="keno(<?=$i;?>)" onmousedown="changebg(event, '#000044')" onmouseover="this.style.cursor='pointer'"><center><?=$i;?></center></td>
Dit is 1 cell, er zijn intotaal 80 cellen. Met de getallen 1 tm 80.
Functie achtergrond kleur:
function changebg(e,highlightcolor){
var value9 = document.kenotable.value9.value;
if(value9 != '0'){ return false; }
source=ie? event.srcElement : e.target
if (source.tagName=="TABLE")
return
while(source.tagName!=highlightbehavior && source.tagName!="HTML")
source=ns6? source.parentNode : source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}
function changebg(e,highlightcolor){ var value9 = document.kenotable.value9.value; if(value9 != '0'){ return false; } source=ie? event.srcElement : e.target if (source.tagName=="TABLE") return while(source.tagName!=highlightbehavior && source.tagName!="HTML") source=ns6? source.parentNode : source.parentElement if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore") source.style.backgroundColor=highlightcolor }
Als ik op een cell klik verandert de background color niet...
Volledige code: http://www.plaatscode.be/141975/
Wat doe ik fout? AUB iemand?
|