Jump to content

Swap Image doesn't work


x3graphics

Recommended Posts

Ok so I am having a little of a problem with DW Swap Image script. In Firefox it works just fine, but in IE when you click on the thumbnail that should swap the larger image it goes blank and then I have to right click on the larger image and click "Show Image". Here is the code I am using, I am not great at Javascript so I was hoping someone could help me out.
Function:
[quote]function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}[/quote]

Code on thumbnail:
[quote]<a href="javascript:void();"><img onclick="MM_swapImage('photo4','','http://www.woodz.com/2006/riders/fullimg/dylan_davis_1.jpg',1)" src="http://www.woodz.com/2006/riders/thumbs/dylan_davis_1.jpg" alt="" border="0"></a>[/quote]

If anyone can tell me whats going on that would be great.
Thank you
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.