我想改變滑動圖像對下拉菜單選擇的影響? 任何輸入?在jquery中滑動圖像效果
<html>
<head>
<title>jQuery Slideshow with Cycle plugin</title>
<script type="text/javascript" src="jquery-1.4.min.js"></script>
<script type="text/javascript" src="jquery.cycle.all.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.content').cycle({
fx: 'fade',
speed: 1000,
timeout: 2000
});
$("#current").click(function(){
$("select[id$='current'] :selected").html();
$('#content').cycle({
fx: $(this).html(),
speed: 1000,
timeout: 2000
});
});
});
</script>
<style>
body {
overlay: 0.7;
background: #CCCCCC;
}
#content img {
padding: 4px;
border: 1px solid #DDDDDD;
background: #FFFFFF;
width: 400px;
height: 300px;
}
#options {
padding: 4px;
}
.effect {
padding: 2px;
font-weight: bold;
cursor: pointer;
}
</style>
</head>
<body>
<div align="center">
<div class="content">
<img src="hills.jpg" />
<img src="lilies.jpg" />
<img src="sunset.jpg" />
<img src="winter.jpg" />
</div>
<select id="current">
<option value="fade">Fade</option>
<option value="fadeZoom">FadeZoom</option>
<option value="cover">Cover</option>
<option value="toss">Toss</option>
<option value="blindY">BlindY</option>
</select>
</div>
</body>
</html>
你想之前有人能回答你的問題 –
我加入,我需要在HTML上面的下拉menu..But它似乎並沒有被工作影響...... – rubyist