シンプルな画像スライダー スクリプトを使用しています。ほとんどのブラウザで完全に機能します。
デフォルトの画像を使用して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>