简体   繁体   中英

Why is my fadeslideshow not showing in IE8?

I'm hoping someone can help me with this fadeslideshow script. There are many topics from other forums with answers as to why this isn't working of other people but I've tried all their fixes and mine is still not working.

I have no trailing commas, my images on not on my local drive and I have located the proper js file and code. However through this all I have not been able to find out why it is not working in ONLY IE8. It works in ALL the other browsers except this one.

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script src="scripts/fadeslideshow.js">


/***********************************************
* Ultimate Fade In Slideshow v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>

<script type="text/javascript">

var mygallery=new fadeSlideShow({
   wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
   dimensions: [934, 369], //width/height of gallery in pixels. Should reflect dimensions of largest image
   imagearray: [
      ["images/banner-home1.jpg"],
      ["images/banner-home2.jpg"],
      ["images/banner-home3.jpg"],
      ["images/banner-home4.jpg"],
      ["images/banner-home5.jpg"]
],
   displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
   persist: false, //remember last viewed slide and recall within same session?
   fadeduration: 500, //transition duration (milliseconds)
   descreveal: "ondemand"
})
</script>

And this is what I'm calling in my HTML

    <div id="fadeshow1"></div>

If anyone can give me advice or ideas as to why this might be happening in IE8 I would appreciate it!

绿日是正确的。将jquery版本更改为较新版本。这将解决您的问题。以前我遇到过同样的问题。我通过更改版本来解决了。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM