滚动选择菜单兼容PC 移动端

JavaScript Code
- <script type="text/javascript">
- function showList(){
- $("body").scrollmenu({
- type:'cross',
- // bscroll:true,
- // animateIn:'bounceIn',
- // animateOut:'bounceOut',
- click:function(ret){
- if(ret.hasHref){
- return
- }else{
- // switch (ret.index){
- // case 0:
- // alert(0);
- // break;
- // }
- alert(JSON.stringify(ret));
- }
- }
- });
- }
- function showList1(){
- $("body").scrollmenu({
- type:'',
- // bscroll:true,
- // animateIn:'bounceIn',
- // animateOut:'bounceOut',
- click:function(ret){
- if(ret.hasHref){
- return
- }else{
- // switch (ret.index){
- // case 0:
- // alert(0);
- // break;
- // }
- alert(JSON.stringify(ret));
- }
- }
- });
- }
- function showListbscroll(){
- $("body").scrollmenu({
- // type:'',
- bscroll:true,
- // animateIn:'bounceIn',
- // animateOut:'bounceOut',
- click:function(ret){
- if(ret.hasHref){
- return
- }else{
- // switch (ret.index){
- // case 0:
- // alert(0);
- // break;
- // }
- alert(JSON.stringify(ret));
- }
- }
- });
- }
- function showListnoborder(){
- $("body").scrollmenu({
- type:'cross',
- hasLineBorder:false,
- // bscroll:true,
- // animateIn:'bounceIn',
- // animateOut:'bounceOut',
- click:function(ret){
- if(ret.hasHref){
- return
- }else{
- // switch (ret.index){
- // case 0:
- // alert(0);
- // break;
- // }
- alert(JSON.stringify(ret));
- }
- }
- });
- }
- </script>
原文地址:http://www.freejs.net/article_jquerywenzi_673.html