Web Analytics Made Easy -
StatCounter Javascript Header Not Displaying in IE - CodingForum

Announcement

Collapse
No announcement yet.

Javascript Header Not Displaying in IE

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Javascript Header Not Displaying in IE

    Hi

    If somebody could take a look at this for me I'd be very greatful:



    The header works fine in Safari and Firefox, but simply doesn't display whatsoever in IE.

    Does anybody know why?

    Thanks a lot
    Last edited by thedudeabides; Aug 29, 2011, 12:00 PM.

  • #2
    the error is imagearray[...].0 is null or not an object on line 39

    in certain versions of IE I have always had to define the variable as a new array first, then build the array


    this "might" work ( sorry I'm not so great with arrays yet), if not you mgiht have to edit the slideshow source.

    Code:
    <script type="text/javascript">
    var mygallery=new Array()
    mygallery=new fadeSlideShow({
    	wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
    	dimensions: [680, 150], //width/height of gallery in pixels. Should reflect dimensions of largest image
    	imagearray: [
    		["images/revoslide2.png", "", "", ""],
    		["images/footballhome3.png", "", "", ""],
    		["images/golfhome2.png", ""],
    		["images/footballhome.png", "", "", ""],
    		["images/golfhome3.png", ""],
    	],
    	displaymode: {type:'auto', pause:3500, cycles:0, wraparound:false},
    	persist: false, //remember last viewed slide and recall within same session?
    	fadeduration: 500, //transition duration (milliseconds)
    	descreveal: "ondemand",
    	togglerid: ""
    })
    </script>
    - Firebug is a web developers best friend! - Learn it, Love it, use it!
    - Validate your code! - JQ/JS troubleshooting
    - Using jQuery with Other Libraries - Jslint for Jquery/other JS library users

    Comment


    • #3
      Originally posted by DanInMa View Post
      the error is imagearray[...].0 is null or not an object on line 39

      in certain versions of IE I have always had to define the variable as a new array first, then build the array


      this "might" work ( sorry I'm not so great with arrays yet), if not you mgiht have to edit the slideshow source.

      Code:
      <script type="text/javascript">
      var mygallery=new Array()
      mygallery=new fadeSlideShow({
      	wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
      	dimensions: [680, 150], //width/height of gallery in pixels. Should reflect dimensions of largest image
      	imagearray: [
      		["images/revoslide2.png", "", "", ""],
      		["images/footballhome3.png", "", "", ""],
      		["images/golfhome2.png", ""],
      		["images/footballhome.png", "", "", ""],
      		["images/golfhome3.png", ""],
      	],
      	displaymode: {type:'auto', pause:3500, cycles:0, wraparound:false},
      	persist: false, //remember last viewed slide and recall within same session?
      	fadeduration: 500, //transition duration (milliseconds)
      	descreveal: "ondemand",
      	togglerid: ""
      })
      </script>
      Thanks for the help. I have tried using the above, and it still doesn't work in Internet Explorer, unfortunately. It's important that I get this working in IE, so does anybody have anything else I could try?

      Much appreciated.

      Comment

      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎