我正在使用一个简单的图像滑块脚本。它在大多数浏览器中都能完美运行。
当我在 IE6 中使用默认图像对其进行测试时,它工作正常:为要加载的图像提供的默认路径是这样的一些 url somesitename.com/image.jpg
;这适用于 IE 6 和其他现代浏览器。
但是当我添加我someimages.jpg
的图像时,它不会在 IE6 中加载图像,而在其他浏览器中它可以正常工作。
是不是我的 javascript 先支持一些 URL 路径,然后再支持图像路径?
下面的代码是我正在编辑图像路径的部分......
<script type="text/javascript">
var mygallery=new simpleGallery({
wrapperid: "simplegallery1", //ID of main gallery container,
dimensions: [300,250], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
imagearray: [
["images/img-2.jpg", "#", "_new", "There's nothing like a nice swim in the Summer."],
["images/img-1.jpg", "#", "", ""],
["images/r-.jpg", "", "", "Eat your fruits, it's good for you!"],
["images/inside-image1.jpg", "", "", ""]
],
autoplay: [true, 2500, 5], //[auto_play_boolean, delay_btw_slide_millisec, cycles_before_stopping_int]
persist: false, //remember last viewed slide and recall within same session?
fadeduration: 500, //transition duration (milliseconds)
oninit:function(){ //event that fires when gallery has initialized/ ready to run
//Keyword "this": references current gallery instance (ie: try this.navigate("play/pause"))
},
onslide:function(curslide, i){ //event that fires after each slide is shown
//Keyword "this": references current gallery instance
//curslide: returns DOM reference to current slide's DIV (ie: try alert(curslide.innerHTML)
//i: integer reflecting current image within collection being shown (0=1st image, 1=2nd etc)
}
})
</script>