Codeinwp / Ideal-Image-Slider-JS

Quite simply the ideal Image Slider in vanilla JS.
http://idealimageslider.com
GNU General Public License v3.0
1.57k stars 160 forks source link

Caption works in Chrome, not IE 10 #63

Open wadiv opened 9 years ago

wadiv commented 9 years ago

The external captions work in Chrome, but not IE10. Stepping through the code the slide does not appear to have the data-caption attribute when iis-caption.js looks for it

aidens commented 8 years ago

any updates to this ? thanks

MarcHartwig13 commented 8 years ago

To fix this issue add your caption HTML into an ALT tag on the imgs. It seems that in IE10 the "data-caption" property doesn't get processed/read.

Also, in my case, when I added the HTML inside an ALT tag the ALT tags were displaying before the ideal-image slider initialized, to take care of that I added inline css onto my IMG: "style='width:0; height:0;'" (I'm using twig so I was able to do this for all the imgs except the first) Ideal image slider should strip the inline styling once it initializes.