gebezis
04-17-2005, 12:24 PM
I have this function:
function quiz(f){
if(f==1){
if(e==1 && val1==false){
MM_swapImage(\'result\',\'\',\'media/res1.gif\',1);
e++;
val1=true;
}
else if(e==2 && val1==false){
MM_swapImage(\'result\',\'\',\'media/res2.gif\',1);
e++;
val1=true;
}
}
vars declared before the function and it is started by the onClick function of buttons.
The page gives error masage : Object expected
What is my mistake?
P.S. There is an image field named "result" and the function MM_swapImage works itself, so the error must be somewhere outside it.
function quiz(f){
if(f==1){
if(e==1 && val1==false){
MM_swapImage(\'result\',\'\',\'media/res1.gif\',1);
e++;
val1=true;
}
else if(e==2 && val1==false){
MM_swapImage(\'result\',\'\',\'media/res2.gif\',1);
e++;
val1=true;
}
}
vars declared before the function and it is started by the onClick function of buttons.
The page gives error masage : Object expected
What is my mistake?
P.S. There is an image field named "result" and the function MM_swapImage works itself, so the error must be somewhere outside it.