顺滑的slide,单独图片动画效果
JavaScript Code
- <script type="text/javascript">
- /* wait for images to load */
- $(window).load( function() {
- $('#myslideshow1').smoothSlides({
- effectDuration: 3500
- /* options seperated by commas */
- });
- $('xmp').click(function(){
- var saveContent = $(this).html();
- $("body").append("<input type='text' id='temp' style=''>");
- $("#temp").val(saveContent).select();
- document.execCommand("copy");
- $("#temp").remove();
- $("body").append('<div class="message">Copied To Clipboard</div>');
- $(".message").slideDown();
- setTimeout(function(){
- $(".message").slideUp(function(){
- $(this).remove();
- });
- }, 1000)
- });
- });
- </script>
XML/HTML Code
- <section id="demo">
- <div class="center">
- <div class="smoothslides" id="myslideshow1">
- <img src="images/1.jpg" alt="Leaf"/>
- <img src="images/2.jpg" alt="Mountain"/>
- <img src="images/3.jpg" alt="Tree"/>
- <img src="images/4.jpg" alt="Sky"/>
- </div>
- </div>
- </section>
原文地址:http://www.freejs.net/article_jiaodiantu_580.html