Wiki.Novemberborn, sIFR 3 Documentation & FAQ

parseSelector

In addition to modifying the parseSelector javascript in the sifr.js source, you can also adapt it to use jQuery.

Steps to replace parseSelector with jQuery:

1 - Make sure you include the jQuery javascript file.

2 - Remove all of the parseSelector code at the top of sifr.js

3 - Add the following line:

 var parseSelector = $;

It needs to be added before this line:

 if(!nodes && parseSelector) nodes = parseSelector(kwargs.selector);

That's it. Now all of the selectors available to you in jQuery can work for sIFR3. Not to mention, the performance seems to be improved.


Updated on November 24, 2007 20:26 by Anonymous Coward (86.22.93.225)

| See revision | Back in time (12 older revisions)


Navigation

sIFR 3 Documentation & FAQ

sIFR lets you use your favorite font on your websites by cleverly working with Flash, JavaScript and CSS. Here you'll find it's documentation and the FAQ. Leave a link to your implementation in the Examples!

Please donate

If you like sIFR, please consider making a donation so Mark can spend more time on it. Thank you.

Inside this wiki

Other destinations

Licensing

This wiki is licensed under the GNU Free Documentation License.

Miscellaneous

TextDrive

RubyOnRails