js图片自动切换问题 50
<scriptsrc="{dede:global.cfg_templets_skin/}/style/jquery-1.4.4.min.js"></script><scr...
<script src="{dede:global.cfg_templets_skin/}/style/jquery-1.4.4.min.js"></script>
<script src="{dede:global.cfg_templets_skin/}/style/slides.min.jquery.js"></script>
<script>
$(function(){
$('#maincontent').slides({
preload: true,
preloadImage: '{dede:global.cfg_templets_skin/}/images/loading.gif',
play: 2000,
pause: 1500,
hoverPause: true,
animationComplete: function(current){
if (window.console && console.log) {
console.log(current);
};
}
});
});
</script>
html代码
<div id="maincontent">
<div class="element pict">
<a href="{dede:global.cfg_basehost/}" target="_blank">
<img src="{dede:global.cfg_templets_skin/}/images/h1.jpg" >
</a>
</div>
<div class="element pict">
<a href="{dede:global.cfg_basehost/}">
<img src="{dede:global.cfg_templets_skin/}/images/h2.jpg" >
</a>
</div>
<div class="element pict">
<a href="{dede:global.cfg_basehost/}" target="_blank">
<img src="{dede:global.cfg_templets_skin/}/images/h3.jpg" >
</a>
</div>
<div class="element pict">
<a href="{dede:global.cfg_basehost/}">
<img src="{dede:global.cfg_templets_skin/}/images/h1.jpg" >
</a>
</div>
<div class="element pict">
<a href="{dede:global.cfg_basehost/}" target="_blank">
<img src="{dede:global.cfg_templets_skin/}/images/h2.jpg">
</a>
</div>
<div class="element navi left"><img src="{dede:global.cfg_templets_skin/}/images/left.png" alt="left"></div>
<div class="element navi right"><img src="{dede:global.cfg_templets_skin/}/images/right.png" alt="right"></div>
</div> 展开
<script src="{dede:global.cfg_templets_skin/}/style/slides.min.jquery.js"></script>
<script>
$(function(){
$('#maincontent').slides({
preload: true,
preloadImage: '{dede:global.cfg_templets_skin/}/images/loading.gif',
play: 2000,
pause: 1500,
hoverPause: true,
animationComplete: function(current){
if (window.console && console.log) {
console.log(current);
};
}
});
});
</script>
html代码
<div id="maincontent">
<div class="element pict">
<a href="{dede:global.cfg_basehost/}" target="_blank">
<img src="{dede:global.cfg_templets_skin/}/images/h1.jpg" >
</a>
</div>
<div class="element pict">
<a href="{dede:global.cfg_basehost/}">
<img src="{dede:global.cfg_templets_skin/}/images/h2.jpg" >
</a>
</div>
<div class="element pict">
<a href="{dede:global.cfg_basehost/}" target="_blank">
<img src="{dede:global.cfg_templets_skin/}/images/h3.jpg" >
</a>
</div>
<div class="element pict">
<a href="{dede:global.cfg_basehost/}">
<img src="{dede:global.cfg_templets_skin/}/images/h1.jpg" >
</a>
</div>
<div class="element pict">
<a href="{dede:global.cfg_basehost/}" target="_blank">
<img src="{dede:global.cfg_templets_skin/}/images/h2.jpg">
</a>
</div>
<div class="element navi left"><img src="{dede:global.cfg_templets_skin/}/images/left.png" alt="left"></div>
<div class="element navi right"><img src="{dede:global.cfg_templets_skin/}/images/right.png" alt="right"></div>
</div> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询