代码之家  ›  专栏  ›  技术社区  ›  harriyott Erik Funkenbusch

sIFR在nyroModal灯箱中的应用

  •  0
  • harriyott Erik Funkenbusch  · 技术社区  · 16 年前

    我在nyroModal灯箱中弹出的页面中使用了sIFR,但是当页面显示时,sIFR对象不会显示。我需要做什么才能让他们表现出来?

    1 回复  |  直到 16 年前
        1
  •  1
  •   Nyro Nyro    16 年前

    我们的想法是使用nyroModal的endShowContent回调来筛选文本。

    $.fn.nyroModal.settings.endShowContent = function(elts, settings) {
        $('YOUR SELECTOR', elts.content).media(function(el, options) {
            // What you need to do
        });
    };
    

    希望这会有帮助。 http://code.google.com/p/nyromodal/