Ask questions and get good answers on jQuery

I'm using http://pupunzi.com/#mb.components/mb.scrollable/scrollable.html

I would like to show text rather than number in the menu, is that possible? On this line I'm trying to use the text rather than only number, it is a menu, I really need a text (name it) and number is not useful here.

var p1=$("<span class='page'> "+n+" A MARCA <\/span>").bind(

the above code not work properly, how I do that?

My piece of code:

    mbPageIndex: function(){
        var mbScrollable= $(this).get(0);
        var controls=$(mbScrollable.options.controls);
        var pages=controls.find(".pageIndex");
        if (pages){
            var n=0;
            for(var i=1;i<=mbScrollable.totalPages;i++){
                n++;
                if (n==1) {
                    var p1=$("<span class='page'> "+n+" A MARCA <\/span>").bind("click",function(){
                        mbScrollable.autoScrollActive=false;
                        $(mbScrollable).goToPage($(this).html(),false)
                    });
                    pages.append(p1);
                }
                if (n==2) {
                    var p2=$("<span class='page'> COLE&Ccedil;&Atilde;O "+n+" <\/span>").bind("click",function(){
                        mbScrollable.autoScrollActive=false;
                        $(mbScrollable).goToPage($(this).html(),false)
                    });
                    pages.append(p2);
                }
                if (n==3) {
                    var p3=$("<span class='page'> ATELI&Ecirc; "+n+" <\/span>").bind("click",function(){
                        mbScrollable.autoScrollActive=false;
                        $(mbScrollable).goToPage($(this).html(),false)
                    });
                    pages.append(p3);
                }
            }
        }
    },

to be continue..

asked Apr 24 '11 at 20:25

deepcell's gravatar image

deepcell
111


Hi, the component has a method to make a direct link to a specific index:

$("#[your scrollable ID]").goToPage([page index])

You should remove the "pageIndex" element from your page and repace it with your menu voices. For each voice add an onclick event that fires the above method pointing to the correct index.

Ex:

<span class="page" onclick="$('#MyScrollableID').goToPage(1)">my text</span>

Bye, Matteo

answered Apr 25 '11 at 05:59

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129

Vcheap wow gold Montessori materials Vacuum pump iron oxide Brochure Printing Mechanical seal children playground bridal dress metal sunglasses Band Sealer outdoor sculpture baby powder china sunglasses patent application jewelry accessories polarized sunglasses safety valve envelope printing Amusement equipment back office outsourcing baseball jerseys power station valve diesel generator envelope making machine pigment violet 19 evening dress cysteamine hcl ccm hockey Chicago White Sox jerseys cast iron valve ballistic plate air mass meter Modern Lamp Sunglasses MP3 Player moncler jackets Knife Gate Valve glass paperweight wow gold for sale bentonite mother of the bride Bedroom furniture wall stickers livingroom furniture red sole shoes Replica Vacheron Constantin Watches yankees hats lithium batteries versace purses Marc Jacobs handbags skin packaging machine solar home system trunnion mounted ball valve Phase Control Thyristor surge protective device bag making machine wholesale bags Seamless Tube Jet hand dryer Inflatable slider Travel Adapter Simple wedding dresses Gold evening dress lace front wigs strapping machine Vivienne Westwood remote control toy Lead acid battery fur coat Plastic Toys pharmaceutical machinery led watches led flashlight ribbon mixer nz shox massage shawls cheap coach purses windows 7 service pack 1 football shirts tops fashion robes chic Short sexy Veste à tailleur chaussures en ligne Soirées Sac en jean montre bracelet autoboss V30 Surge protective device cheap nhl jerseys led flashlight 通風工程 nike shox rivalry Maglia della Juve shanghai massage Juicy Couture Outlet pu machine Valve seat Paralyseurs électriques air classic oscilloscope

answered Jul 30 '11 at 04:24

wowgold's gravatar image

wowgold
(suspended)

熔断器 尖锐湿疣 荣臣驾校 英格索兰 空压机 隔膜泵 上海注册公司 机械制造 影像测量仪 美容论坛 铣床 水处理 减速电机 触摸屏维修 丝杆升降机 转轮除湿机 喷码机 bmc 防水堵漏工程公司 圣诞树 稻城亚丁 北京人流 割包皮 油泵 泥浆泵 水晶礼品 阳痿 自动门 接插件 上海市住房保障和房屋管理局 自润滑轴承 焚烧炉 水晶钥匙扣 房车厂家 MF3 无缝钢管价格 干粉砂浆设备 前列腺 针型阀 球化炉 牛津布 卷闸门 不孕不育有哪些原因 怎么治疗女性不孕 液晶模块 工具磨床 北京翻译 治疗少精的方法 网络传真 クレジットカード 現金化 口コミ 约翰霍普金斯大学 锯床 上海工业设计 中央空调 led补光灯 不锈钢回收 管道泵 单级双吸离心泵 离心油泵 北京保健按摩 上海家庭保洁 競馬 上海格力空调维修 融資 办公桌 鼻咽癌中药 肺癌化疗 肝癌晚期 癌症早期症状 中医治疗甲状腺癌 中医治疗胰腺癌 干洗机 UPS电源报价 上海物流 净化塔 前列腺炎怎么治疗 治疗慢性前列腺炎的中药 前列腺肥大的症状 治疗前列腺癌特效药 衣原体感染能根治吗 硬度测试仪 钢材供应商 磁力表座 北京男性医院 治疗前列腺增生最佳时间 早泄症状 包皮手术多少钱 北京治疗尖锐湿疣的医院 UV胶辊 梅毒 高速搅拌机 货架 资产管理 凸轮 电机壳 无抵押个人贷款 快速贷款 贷款公司 小额无抵押借款 上海汽车抵押贷款公司

answered Jul 30 '11 at 04:26

wowgold's gravatar image

wowgold
(suspended)

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×1

Asked: Apr 24 '11 at 20:25

Seen: 307 times

Last updated: Jan 08 at 19:33

Related questions

jQuery main site - Matteo Bicocchi