我是JQuery的新手并尝试使用JQuery Cycle函数循环图像。但是代码不起作用。任何帮助是极大的赞赏。
<!DOCTYPE html>
<html lang ="en">
<head>
<meta charset="UTF-8">
<title>Login</title>
<style type="text/css">
.slideshow{padding: 70px;background-color: red;}
</style>
<script type="text/javascript" src="C:/xampp1/htdocs/New Service Development Project/jquery-2.1.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.slideshow').cycle({
fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
});
});
</script>
</head>
<body>
<div class ="slideshow">
<img src= "C:/xampp1/htdocs/New Service Development Project/images/i1.jpg">
<img src= "C:/xampp1/htdocs/New Service Development Project/images/i2.jpg">
</div>
</body>
</html>