js代码
<script type='text/javascript' src='js/jquery-1.4.2.min.js'></script> <script type='text/javascript' src='js/jquery.nivo.slider.pack.js'></script> <script type="text/javascript"> $(document).ready(function(){ $('#slider').nivoSlider({ effect:'random', slices:15, animSpeed:500, pauseTime:3000, directionNav:true, controlNav:true, keyboardNav:true }); }); </script>