Hi guys.
I am using the code below, but i know that it is going about it in a very long winded manner. Basically, the below code is repeated six times. I've included it twice so that you can see what changes between the instances. Basically it refers to elements b1, fl1 and s1 in the first instance, b2, fl2 and s2 in the second etc. I really cant get this to work in a for loop. Could someone please put me out of my misery.
etc...
Thanks in advance,
Phil
PS: This is for intranet use and everyone is using IE5.5 or 6.
I am using the code below, but i know that it is going about it in a very long winded manner. Basically, the below code is repeated six times. I've included it twice so that you can see what changes between the instances. Basically it refers to elements b1, fl1 and s1 in the first instance, b2, fl2 and s2 in the second etc. I really cant get this to work in a for loop. Could someone please put me out of my misery.
Code:
// fl1
fl1.style.display='none';
document.main.b1.style.top=parseInt(document.main.s1.style.top);
document.main.b1.style.left=parseInt(document.main.s1.style.left)+129;
fl1.style.left=parseInt(document.main.s1.style.left)+2;
fl1.style.top=parseInt(document.main.s1.style.top)+19
document.main.b1.src="button1.gif";
// fl2
fl2.style.display='none';
document.main.b2.style.top=parseInt(document.main.s2.style.top);
document.main.b2.style.left=parseInt(document.main.s2.style.left)+129;
fl2.style.left=parseInt(document.main.s2.style.left)+2;
fl2.style.top=parseInt(document.main.s2.style.top)+19
document.main.b2.src="button1.gif";
Thanks in advance,
Phil
PS: This is for intranet use and everyone is using IE5.5 or 6.