I'm having difficulty in correcting the syntax error for image swap. I would appreciate if you can help me out as below?
function swap(i, s)
{
var d = document.images;
d ? d[i].src=s : null;
}
I'm having difficulty in correcting the syntax error for image swap. I would appreciate if you can help me out as below?
function swap(i, s)
{
var d = document.images;
d ? d[i].src=s : null;
}
I think you want something like this