需引入文件
1 2 3 4 | <script src="js/jquery.min.js" type="text/javascript"></script><script src="js/jquery.scrollTo.js" type="text/javascript"></script> <script src="js/jquery.ascensor.js" type="text/javascript"></script><script src="js/myscript.js" type="text/javascript"></script> |
html内容
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | <div id="house"> <div> <!-- Etage1--> <div id="ContentName"> </div> <!-- Content of the floor 1--> </div> <div> <!-- Etage2--> <div id="ContentName"> </div> <!-- Content of the floor 2--> </div> <div> <!-- Etage3--> <div id="ContentName"> </div> <!-- Content of the floor 3--> </div> <div> <!-- Etage4--> <div id="ContentName"> </div> <!-- Content of the floor 4--> </div> <div> <!-- Etage5--> <div id="ContentName"> </div> <!-- Content of the floor 5--> </div></div> |
调用方式
1 2 3 4 5 6 7 8 9 10 11 12 13 | $('#house').ascensor();$('#house').ascensor({ AscensorName: 'house', //you can choose the name that will define id and class (default:'maison') WindowsFocus: true, //if you start on the first content(default:true) WindowsOn: '0', //if you can to start to the 0,1,2,3 etc.. content Direction: 'y', //What will be the direction of the ascensor NavigationDirection: 'xy', //what will be his navigation direction(par défaut:'xy')}); |
特别申明:
本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com