Hello,
I am getting the above error on
http://aconomy.b-shop.co.uk/
This is the code from the page. It works in mozilla but not in ie. Can anyone help.
Cheers
var counter1 = 0;
function anim1(destination,linkto, newimage,maxadds)
{
i = document.getElementById(destination);
i.src = img1[counter1].src;
j = document.getElementById(linkto);
j.href = img1[counter1].href;
counter1++;
if(counter1 == 4)
{
counter1 = 0; //sets the counter value to 0
}
}
var start;
var img1 = new Array(4);
img1[0] = new Image();
img1[0].src = 'http://aconomy.b-shop.co.uk/images/aconomy.b-shop.co.uk/advert1.jpg';
img1[0].href = 'http://www.google.com';
img1[1] = new Image();
img1[1].src = 'http://aconomy.b-shop.co.uk/images/aconomy.b-shop.co.uk/advert2.jpg';
img1[1].href = 'http://www.yahoo.com';
img1[2] = new Image();
img1[2].src = 'http://aconomy.b-shop.co.uk/images/aconomy.b-shop.co.uk/advert3.jpg';
img1[2].href = 'http://www.msn.co.uk';
img1[3] = new Image();
img1[3].src = 'http://aconomy.b-shop.co.uk/images/aconomy.b-shop.co.uk/advert4.jpg';
img1[3].href = 'http://www.excite.com';
then this calls the function
start = setInterval("anim1('group1img','group1link','1','4 ')", 2000);
group1img is the id tag of the image
group1link is the id tag of the link.