stitchMedlem sedan aug. 200215 inlägg kan någon vänlig själ förklara varför jag får felmeddelandet "nybild is undefined" här:
function visabild(nybild) {
setTimeout("document['zoombild'].src='img/' + nybild",3000);
}
men inte här:
function visabild(nybild) {
setTimeout("document['zoombild'].src='img/bild02.jpg'",3000);
}
någon??
colioneMedlem sedan juni 20014 421 inlägg function visabild(nybild) {
setTimeout("document['zoombild'].src='img/' + nybild[b] + [/b]",3000);
}
Peter SMedlem sedan dec. 20025 483 inlägg Du får nog skapa en global variabel som du tilldelar värdet från nybild:
var temp=null;
function visabild(nybild){
temp=nybild;
setTimeout("document['zoombild'].src='img/'+temp",3000);
}
:)