参照:Easy Slider 1.7 - Numeric Navigation jQuery Slider
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Language" content="ja" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="imagetoolbar" content="no" /> <title>easySlider.js v1.7 | 設置サンプル</title> <link rel="stylesheet" type="text/css" href="/content/lib/global.css" media="all" /> <!-- JS --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script type="text/javascript" src="/content/lib/jquery/easySlider1.7.js"></script> <script type="text/javascript"> $(function(){ $("#slider").easySlider({ controlsShow:false, speed:800, auto:true, continuous:true }); }); </script> <!-- CSS --> <style type="text/css"> .demo { margin:0 20px; background:transparent url(/content/img/ajax/mac.png) no-repeat 0 0; width:128px; height:128px; position:relative; } #slider { position:absolute; width:100px; height:61px; top:6px; left:15px; overflow:hidden;} #slider ul, #slider li { margin:0; padding:0; list-style:none; width:100px; height:61px; overflow:hidden; } </style> <link rel="stylesheet" type="text/css" href="/common/css/example.css"></head> <body id='example3' class='example'><div class="ads" style="margin:32px auto;text-align:center;"></div><h1 class='h'><a href='/'>PHP & JavaScript Room</a> :: 設置サンプル</h1> <h3 class='h'>実行結果</h3> <h1>設置サンプル|Easy Slider 1.7</h1> <p>参照:<a href='http://cssglobe.com/post/5780/easy-slider-17-numeric-navigation-jquery-slider'>Easy Slider 1.7 - Numeric Navigation jQuery Slider</a></p> <!-- CODE --> <h2>画像内でスライドショー</h2> <div class="demo"> <div id="slider"> <ul> <li><a href="http://phpjavascriptroom.com/"><img src="/content/img/ajax/ss1.png" alt="PHP & JavaScript Room" /></a></li> <li><a href="http://twitter.com/cocoism"><img src="/content/img/ajax/ss2.png" alt="cocoism (cocoism) on Twitter" /></a></li> <li><a href="http://twilog.org/cocoism"><img src="/content/img/ajax/ss3.png" alt="cocoism(@cocoism) - Twilog" /></a></li> <li><a href="http://www.flickr.com/photos/22559849@N06/"><img src="/content/img/ajax/ss4.png" alt="php_javascript_room, on Flickr" /></a></li> <li><a href="http://cocoismtweets.blogspot.com/"><img src="/content/img/ajax/ss5.png" alt="cocoism's daily tweets" /></a></li> </ul> </div> </div> <!-- / CODE --> </body> </html>