Published in: Other
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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" /> <title>Jquerty localScroll Template</title> <style type="text/css" media="screen"> #slide_wrapper{ width: 400px; height: 300px; overflow: hidden; } #slide_box{ width: 2000px; height: 300px; } .section{ float: left; width: 400px; height: 300px; margin: 0 20px 0 0 0; } #section01{ background: #ecf; } #section02{ background: #acf; } #section03{ background: #cfc; } #section04{ background: #ffc; } #section05{ background: #fda; } </style> <script src="common/js/jquery.min.js" type="text/javascript" charset="utf-8"></script> <script src="common/js/jquery.scrollTo-min.js" type="text/javascript" charset="utf-8"></script> <script src="common/js/jquery.localscroll-min.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript" charset="utf-8"> $(document).ready(function() { $('#scroll_navi').localScroll({ target: '#slide_wrapper', axis: 'xy' }); }); </script> </head> <body> <div id="slide_wrapper"><!-- Static Box contain Sliding Box. set overflow:hidden--> <div id="slide_box"><!-- Sliding Box, it's Long or Large and contain some sections --> <div id="section01" class="section"> section01 </div> <div id="section02" class="section"> section02 </div> <div id="section03" class="section"> section03 </div> <div id="section04" class="section"> section04 </div> <div id="section05" class="section"> section05 </div> </div> </div> <ul id="scroll_navi"> <li id="scroll_navi01"><a href="#section01">section01</a></li> <li id="scroll_navi02"><a href="#section02">section02</a></li> <li id="scroll_navi03"><a href="#section03">section03</a></li> <li id="scroll_navi04"><a href="#section04">section04</a></li> <li id="scroll_navi05"><a href="#section05">section05</a></li> </ul> </body> </html>
You need to login to post a comment.
