views:

3

answers:

0

Hello,

I'm using the jQuery library "cycle" to rotate a bunch of div's at the top of my page, within these div's i have a h1 tag, which is styled with sIFR.

see example here: 2011 Website

The problem is on webkit browsers, the h1 tags which aren't visible on page load aren't rendered, after doing a bit of research on this, it seems i need to somehow re-load the sIFR replacement calls each time the cycle plugin shows a slide. I'm not very good with javascript and having a few different attempts at inserting this:

sIFR.replaceElement(named({sSelector:"#header h1", sFlashSrc:"swf/avantegarde.swf", sColor:"#ffffff", sLinkColor:"#000000", sBgColor:"#FFFFFF", sHoverColor:"#CCCCCC", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0", sWmode:"transparent"}));

Into the cycle.all.js file, i'm no further on. Could anyone who has had a similar issue with the cycle plugin tell me where i need to insert it, or where to insert a function which contains my font changes?

Thanks in advance. Mark