sifr jQuery幻灯片冲突显示 [英] sifr jquery slide conflict show

查看:104
本文介绍了sifr jQuery幻灯片冲突显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用malsup的jquery cycle插件进行包含文本的幻灯片放映.我希望sifr替换文本.它在第一张幻灯片上执行此操作,但在后续幻灯片上不执行此操作.知道要怎么做才能将sifr应用于显示在每张幻灯片上的文本吗?

I'm using jquery cycle plugin by malsup for a slide show that includes text. I want sifr to replace the text. It does so on the first slide, but not the subsequent ones. Any idea what might be done so that sifr is applied to the text on each slide as it is displayed?

这是我的示例页面(我将sfir文本设置为蓝色和绿色,因此我立即知道它可以工作-确实可以在FF 3.6中使用,但在Mac上无法使用Safari 5.0.3或Chrome 8 ... http://ianmartinphotography.com/test-site/testimonials/index-07.html

Here's my sample page (I've made the sfir text blue and green so I know immediately it it works--it does work in FF 3.6, but not Safari 5.0.3 or Chrome 8 on my Mac... http://ianmartinphotography.com/test-site/testimonials/index-07.html

谢谢!

推荐答案

好的-所以我刚刚在第二次调用中添加了sIFR.replace代码-这次只是非常短暂的延迟,以便嵌套段落被加载,然后sIFR .replace被调用.这是jQuery代码:

Okay--so I just added in a second call sIFR.replace code--this time with a very brief delay so that the nest paragraph loads and then sIFR.replace is called. Here's the jquery code:

$('#next').click(

$('#next').click(

     function() {

             to = setTimeout(function ()    
              {sIFR.replace(helvetica, 
              {selector: 'p', 
              css: '.sIFR-root { background-color: #e6e6e6; color: #0000FF; font-size: 13px; text-align: justify; text-indent: 30px;   }'}); }, 
              100); // call sIFR code after this many milliseconds
              }); });

这篇关于sifr jQuery幻灯片冲突显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆