-1
我是JQuery的新手,嘗試使用JQuery Cycle函數來循環圖像。但代碼不起作用。任何幫助是極大的讚賞。無法使用JQuery循環圖像
<!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>
你的Jquery循環插件文件在哪裏? – 2014-11-06 05:19:59
使腳本引用爲相關路徑。 – 2014-11-06 05:20:04