代码如下,请问怎么把图片显示在IE中间,图片有大有小,不管图片的大小,都可以显示在IE中间谢谢!
解决方案 »
- jmpopups弹出窗口中的input值如何获取
- 如何获取网页滚动条滚动的值?
- td中放置图片,怎样写个javascript代码,使图片自适应td的高度和宽度呢?
- 显示菜单层的同时隐藏select,可鼠标移上子菜单时,select又出现了?事件不知道要如何触发?
- 关于对时间取月(getMonth),取年(getYear)的问题!!???在线等!!!
- 能否在当前页面设置窗口的高宽,控制菜单栏工具栏的显示。就像window.open,但是不用window.open
- 关于中文文件名图片的另存为问题
- 请问如何把<textarea name="detail">xxx</textarea>中的内容保存到本地??
- 请问如何在页面刷新后保留滚动条位置?
- 谁知道“正则表达式”是什么意思
- js文件中怎么调用asp的变量呀?
- 我想问下,如何实现弹出窗口不被类似TT及Firefox这样的浏览器所最大化?
<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>
最主要的还是在下面修改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
}
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
}