View Single Post
Old 05-11-2009, 10:29 PM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,210
Thanks: 59
Thanked 3,996 Times in 3,965 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
Ummm...you are declaring this function to take *THREE* PAIRS of image names and image file names:
Code:
function roll(img_name1, img_src1, img_name2, img_src2,img_name3, img_src3)
{
    document[img_name1].src = img_src1;
    document[img_name2].src = img_src2;
    document[img_name3].src = img_src3;
}
But then when you *call* that function you only pass *TWO* pairs:
Code:
<a
onmouseover="roll(
    'sub1', 'http://images.bloomberg.com/r06/homepage/europe_home_tab.gif',
    'sub2', 'http://images.bloomberg.com/r06/homepage/HP_UKX.png')"
...
So why are you surprised that nothing happens in the third image???

Try again, this time passing THREE pairs.

But I don't understand why you WANT to change 3 images. Your first paragraph only talks about changing two images.
Old Pedant is offline   Reply With Quote