Hi below is the javascript code that iam using to display an image in webpage.
<a href="/LogoSnapShot/LogoSnapShot_nonjs.html" target="_new" onclick="return OpenLogoSnapShot();">
<script language="JavaScript">
function altimg(sourceimg) {
var img_with_logo=sourceimg.src;
sourceimg.src=img_with_logo.substring(0,img_with_logo.search("BUYL")+4)+".jpg";
sourceimg.onerror=null;
}
</script>
<img id=prodImg name=ProdImage1 id=ProdImage1 src="http://ocs.landsend.com/OCS/corpsales/images/prod/17/67/176819DTKBUYL.jpg" onError="altimg(this);" width=250 height=250 alt="" border="0">
</a>
'-' symbol is being displayed beside the image in chrome but it is fine in IE. Can anyone help me with it?