So on lots of sites I like to use CSS3 PIE to make IE 7-9 do border-radius decoration for rounded images etc.
For a new site I'm using the Carousel plugin on Twitter Bootstrap, and I'd like to get the carousel indicators rendered nicely for IE users.
My carousel works fine normally, cycling through correctly etc, but when I apply the PIE behaviour to the carousel indicators for old IE browsers (using the JavaScript version of PIE ) it stops the indicators from cycling correctly on slide. Obvious solution is to remove CSS3 PIE for the carousel indicators (leaving them ugly for users of old IE), but ideally I'd like to get it working.
Head Code snippet:
<!--[if (IE 7)|(IE 8)]>
<script type="text/javascript" src="//cdn.jsdelivr.net/css3pie/2.0b1/PIE_IE678.js"></script>
<![endif]-->
<!--[if IE 9]>
<script type="text/javascript" src="//cdn.jsdelivr.net/css3pie/2.0b1/PIE_IE9.js"></script>
<![endif]-->
Body Code snippet:
<div id="myCarousel" class="carousel slide">
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="item active">
<img src="http://twitter.github.io/bootstrap/assets/img/examples/slide-01.jpg" alt=""/>
</div>
<div class="item">
<img src="http://twitter.github.io/bootstrap/assets/img/examples/slide-02.jpg" alt=""/>
</div>
<div class="item">
<img src="http://twitter.github.io/bootstrap/assets/img/examples/slide-03.jpg" alt=""/>
</div>
</div>
<a class="left carousel-control" href="#myCarousel" data-slide="prev">‹</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">›</a>
</div>
And then PIE:
<script type="text/javascript">
$(function() {
if (window.PIE) {
$('.carousel-indicators li').each(function() {
PIE.attach(this);
});
}
});
</script>
I'd guess the problem lies in the way that we've got active and inactive indicators, and that they keep changing on slide... but I'm not really sure how to fix it.
Full code is at http://www.edwardb.co.uk/test/ and you'll obviously need to use an old version of IE.