获取图库下一个元素的href链接

时间:2014-05-22 06:47:08

标签: jquery magnific-popup

我需要获取newt / before元素的href来执行此操作:

  

< -a href =“$ url-of-next-or-before-element”   title =“$ title-of-next-or-before-element”>< -button title =“%title%”   type =“button”class =“mfp-arrow mfp-arrow-%dir%”> < - /按钮>< - / A>

原始代码是:

$.magnificPopup.registerModule('gallery', {

    options: {
        enabled: false,
        arrowMarkup: '<-button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></-button>',
        preload: [0,2],
        navigateByImgClick: true,
        arrows: true,

        tPrev: 'Previous (Left arrow key)',
        tNext: 'Next (Right arrow key)',
        tCounter: '%curr% of %total%' },

我该怎么做?

https://github.com/dimsemenov/Magnific-Popup/issues/455

0 个答案:

没有答案