如何解决jQuery幻灯片显示能够在IE8上运行
我正在尝试在能够在Internet Explorer 8上运行的jquery上写幻灯片。
Here I attached sample to download。
它可以正常运行,但是我想根据一个月的日期从另一个图像开始。
例如,当它是8月23日时,幻灯片放映必须从23号图像开始。
IE9或更高版本没有问题,但是在IE8中,我找不到任何解决方案。
不幸的是,在蒙古,几乎所有计算机中的一半仍具有IE8。
请帮我!!!
任何建议将不胜感激!
还要采样:
<!DOCTYPE html>
<html>
<head>
<title>JQuery Cycle Plugin - Basic Demo</title>
<style type="text/css">
.slideshow { height: 265px; width: 120px; margin: 0px}
.slideshow img { padding: 0px; border: 0px solid #ccc; background-color: #eee; }
body {
margin-top: 0px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
padding: 0;
overflow: hidden; /* Hide scrollbars */
-ms-overflow-style: none; /* IE and Edge */
}
</style>
<!-- include jQuery library -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<!-- include Cycle plugin -->
<script type="text/javascript" src="http://malsup.github.com/jquery.cycle.all.js"></script>
<script type="text/javascript">
var slideIndex = 1,delay = 14,delayHandle = 0;
var slides = $('.slideshow');
var imgCount = 3;
var today = new Date();
slideIndex = parseInt(today.getDate());
slideIndex = slideIndex % imgCount;
$(document).ready(function() {
$('.slideshow').cycle({
fx: 'fade',speed: 100,timeout: 5000
});
});
</script>
</head>
<body>
<div class="slideshow">
<a href="http://www.orion.mn/ach-ur.html" class="customfont_menu" target="_blank">
<img src="reclampanel_slideshow/pic1.jpg" /></a>
<a href="http://www.orion.mn/ach-ur.html" class="customfont_menu" target="_blank">
<img src="reclampanel_slideshow/pic2.jpg" /></a>
<a href="http://www.orion.mn/ach-ur.html" class="customfont_menu" target="_blank">
<img src="reclampanel_slideshow/pic3.jpg" /></a>
</div>
</body>
</html>
关于, 奥吉尔
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。