the below JS works fine in FF but not IE.
[CODE]var dynimages=new Array()
dynimages[1]=[“001.jpg”, “”]
dynimages[2]=[“002.jpg”, “”]
dynimages[3]=[“003.jpg”, “”]
var preloadimg=”yes”
var optlinktarget=””
var imgborderwidth=0
preloads = new Array();
if (preloadimg==”yes”){
for (x=1; x<dynimages.length; x++){
preloads[x] = new Image();
preloads[x].src = dynimages[x][0]
}
}
function returnimgcode(theimg){
var imghtml=””
if (theimg[1]!=””)
imghtml='<a href=”‘+theimg[1]+'” target=”‘+optlinktarget+'”>’
imghtml+='<img src=”‘+theimg[0]+'” width=”100%” border=”‘+imgborderwidth+'”>’
if (theimg[1]!=””)
imghtml+='</a>’
return imghtml
}
function modifyimage(loadarea, imgindex){
if (document.getElementById){
var imgobj=document.getElementById(loadarea)
if (imgobj.filters && window.createPopup){
imgobj.style.filter=filterstring
imgobj.filters[0].Apply()
}
imgobj.innerHTML=returnimgcode(dynimages[imgindex])
imgobj.filters[0].Play()
return false}}
whats holding me back
if you need to see how it works on my site here is the URL.
[url]http://foxarch.com/portfolio/Restaurants/00056_DairyQueen/index.htm