I am using Slider in my webApp but it crashes in IE7, so i want to stop slider in IE7. Here is the ASPX code
<div id="divIE7">
<section class="masterbanner cycle-slideshow" data-cycle-fx="tileSlide" data-cycle-slides="> div.slideShowItem" data-cycle-auto-height="calc" data-cycle-log="false" data-cycle-pause-on-hover="true" data-cycle-manual-speed="0">
<asp:Literal runat="server" ID="lSlideShow" />
<div class="cycle-pager"></div>
</section>
</div>
i have to check if its IE7, then my ASPX should
<div id="divNotIE7">
<section class="masterbanner cycle-slideshow" data-cycle-fx="tileSlide" data-cycle-auto-height="calc" data-cycle-log="false" data-cycle-pause-on-hover="true" data-cycle-manual-speed="0">
<asp:Literal runat="server" ID="lSlideShowIE7" />
<div class="cycle-pager"></div>
</section>
</div>
i try this script but the problem is still there.
$(document).ready(function () {
var divIE7 = document.getElementById('divIE7');
var divOther = document.getElementById('divNotIE7');
if (CheckBrowserIE7()) {
//$('divNotIE7').not('#content').remove();
divIE7.style.display = 'none';
divOther.style.display = 'block';;
}
else {
divIE7.style.display = 'block';
divOther.style.display = 'none';
//$('divIE7').not('#content').remove();
}
});