PDA

View Full Version : Simple Gallery and IE7, IE8



barja
03-14-2010, 12:31 PM
1) Script Title:
Simple Gallery [SOLVED]
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex4/simplegallery.htm
3) Describe problem: IE7 and IE 8:
Agent użytkownika: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Sygnatura czasowa: Sun, 7 Mar 2010 15:11:17 UTC


Wiadomość: 'imagearray[...].0' jest pusty lub nie jest obiektem
Wiersz: 34
Znak: 3
Kod: 0
Identyfikator URI: http://paulinamilewicz.pl/js/simplegallery.js

Excuse me, I do not know English well. Gallery displays fine in all other browsers. Site address:http://paulinamilewicz.pl/.

jscheuer1
03-14-2010, 04:43 PM
There could be other problems, but there can be no comma (red) here:


<script type="text/javascript">

var mygallery=new simpleGallery({
wrapperid: "simplegallery1", //ID of main gallery container,
dimensions: [700, 501], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
imagearray: [
["images/img/1.jpg"],
["images/img/2.jpg"],
["images/img/3.jpg"],
["images/img/4.jpg"],
["images/img/5.jpg"],
["images/img/6.jpg"],
["images/img/7.jpg"],
["images/img/8.jpg"],
["images/img/9.jpg"],
["images/img/10.jpg"],
["images/img/11.jpg"],

],
autoplay: [true, 2500, 2], //[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>

barja
03-14-2010, 04:56 PM
There could be other problems, but there can be no comma (red) here:


<script type="text/javascript">

var mygallery=new simpleGallery({
wrapperid: "simplegallery1", //ID of main gallery container,
dimensions: [700, 501], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
imagearray: [
["images/img/1.jpg"],
["images/img/2.jpg"],
["images/img/3.jpg"],
["images/img/4.jpg"],
["images/img/5.jpg"],
["images/img/6.jpg"],
["images/img/7.jpg"],
["images/img/8.jpg"],
["images/img/9.jpg"],
["images/img/10.jpg"],
["images/img/11.jpg"],

],
autoplay: [true, 2500, 2], //[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>

Yes, it is just that! The time now is OK. Thank you very much.