In the asp code you can give each image a different name by adding a
counter.
ct = 1
Do While Not rsProd.EOF
...
Response.write "</td><input type='image' name='subAddCart" & Ct & "'
border='0' src='../i/buy.gif' width='42'
height='16'onMouseOut=MM_swapImgRestore()
onMouseOver=MM_swapImage('subAddCart" & speCt &
"','','../i/buy2.gif',1)></td>"
...
rsProd.MoveNext
Ct = Ct + 1
Loop
Sam Lewitan
SLewitan@E...
http://www.EBCmedia.com
where EveryBodyCounts
(xxx)xxx-xxxx
-----Original Message-----
Subject: asp - repeat region - swap images
From: "Ken Lee" <tormented1_au@h...>
Date: Tue, 26 Jun 2001 11:42:52 +1000
X-Message-Number: 1
I have an image on an asp page that will do the swap image event when
onMouseOver. The problem is when I use the repeat region on the table where
the image is place, the swap image event stops working.
I think the problem is that when the repeat region used, the image's name
does not change and it's confusing the javascript. I was wondering if anyone
has a solution or failing that, is there a javascript that can let me can
the name of the image?
Thanks!!
Ken