Javascript – Problems with sIFR not displaying the correct text

javascriptjquerysifr

I'm trying to use sIFR (with the jQuery sIFR plugin) on my website, but have run into problems right from the start. I was able to create the swf with my chosen font, but when I run the script, I just get the default "Rendered with sIFR3" message instead of the text of my element.

Any ideas?


As Novemberborn himself pointed out, I did upgrade sIFR to version 3, whereas the jQuery plugin only supports v2. I've tried reverting back to the packaged version of sIFR (v2.0.5):

My HTML:

<h1 class="img">Why should I do ELBC?</h1>

jQuery:

$(":header.img")
    .sifr({
        path : 'lib/sifr/2',
        font : 'test',
        width: 900,
        height: 60
    })
;

The lib/sifr/2/test.swf file is just the packaged .fla file compiled.

It looks like it's actually doing something this time: the correct text is showing up, but it's tiny. Like, 4pt size.

Best Answer

The jQuery plugin uses sIFR 2, however you seem to be using an (old) sIFR 3 movie.