Mam string i chce sprawdzić czy zawiera "startk" i document.write działa super wypisuje mi null, ale już z Ifem nie jest tak kolorowo.
Męczę sięz tym już chyba z 20 minut więc proszę o pomoc.
Kod
function startb(jak){
test=start.src.match('startk')
if (jak == 'do'){
If(test == 'null'){
document.start.src = 'img/starto.png';
}
}
else
{
If(test == 'null'){
document.start.src = 'img/startn.png';
}
}
}
test=start.src.match('startk')
if (jak == 'do'){
If(test == 'null'){
document.start.src = 'img/starto.png';
}
}
else
{
If(test == 'null'){
document.start.src = 'img/startn.png';
}
}
}