代码如下,请问怎么把图片显示在IE中间,图片有大有小,不管图片的大小,都可以显示在IE中间谢谢!

解决方案 »

  1.   

    <center>
    <script type="text/javascript">
    //new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause, optionalRandomOrder)
    new fadeshow(fadeimages, 140, 225, 1, 3000, 1, "R")
    </script>
    </center>
      

  2.   

    谢谢答复.那样不行的.
    最主要的还是在下面修改fadeshow.prototype.populateslide=function(picobj, picindex){
    var slideHTML=""
    if (this.theimages[picindex][1]!="") //if associated link exists for image
    slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
    slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
    if (this.theimages[picindex][1]!="") //if associated link exists for image
    slideHTML+='</a>'
    picobj.innerHTML=slideHTML
    }
      

  3.   

    正确做法如下:fadeshow.prototype.populateslide=function(picobj, picindex){
    var slideHTML=""
    if (this.theimages[picindex][1]!="") //if associated link exists for image
    slideHTML='<table style="width:100%;height:100%;"><tr><td align="center" valign="middle"><a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
    slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
    if (this.theimages[picindex][1]!="") //if associated link exists for image
    slideHTML+='</a></td></tr></table>'
    picobj.innerHTML=slideHTML
    }