I have a script for "onmouseOver" that workd in IE. I can't get it to work in Netscape. I searched the JavaScript Forum and tried all the tricks mentioned, but get the same results. If possible, plese review included code snippet.
I tried it with hardcoding values where the ASP delimiters are, but it didn't change a thing.
thanks:
There are up to five thumbs that need swapping with the main image thus the function.
I tried it with hardcoding values where the ASP delimiters are, but it didn't change a thing.
thanks:
Code:
<SCRIPT language=javascript>
var newsrc1;
var newsrc;
function DoImage(srcID,fldr){
var temp1 = image1.src;
var temp = srcID.src;
//call function to swap sources
getString(temp1,temp,fldr)
image1.src = newsrc;
srcID.src = newsrc1;
}
function getString(src1,src,fldr){
//create new source for large photo
arysrc = src.split("_");
newsrc = "manager//images//" + fldr + "//" + arysrc[1];
//create path for thumb
arysrc1 = src1.split("/");
newsrc1 = "manager//images//" + fldr + "//thumbs//thm_" + arysrc1[6];
}
</SCRIPT>
[b]body[/b]
[i]original:[/i]
<img src='<%="manager/images/"&listno&"/thumbs/thm_image3.jpg"%>' hspace="1" vspace="1" onmouseover="DoImage(image3,'<%=listno%>');" id=image3
[i]modified with Tek-Tips Tips:[/i]
<A HREF="#" onmouseover="DoImage(image2,'<%=listno%>');"><INPUT type="image" src='<%="manager/images/"&listno&"/thumbs/thm_image2.jpg"%>' hspace="1" vspace="1" id=image2></A>
There are up to five thumbs that need swapping with the main image thus the function.