sifr jquery slide conflict show

本秂侑毒 提交于 2019-12-11 14:44:57

问题


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?

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

Thanks!


回答1:


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(

     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
              }); });


来源:https://stackoverflow.com/questions/4787650/sifr-jquery-slide-conflict-show

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!