I have been trying all afternoon to get the jQuery Sifr Plugin (http://jquery.thewikies.com/sifr/) to work, without success. The plugin's site has limited documentation and for something so apparently easy, I'm sure I must be nearly there. I also found some info at http://www.eona.com/sifr/ but I think it's for an older version of the plugin.
我整个下午都在努力让jQuery Sifr插件(http://jquery.thewikies.com/sifr/)工作,但没有成功。该插件的网站文档有限,而且显而易见的事情,我相信我必须在那里。我还在http://www.eona.com/sifr/上找到了一些信息,但我认为这是旧版本的插件。
I have made my own font files using the online Sifr Generator (http://www.sifrgenerator.com/) and also on my own using Flash CS4 and neither seem to work.
我使用在线Sifr Generator(http://www.sifrgenerator.com/)制作了我自己的字体文件,并且我自己也使用Flash CS4,但似乎都不起作用。
Here's my code:
这是我的代码:
$(document).ready(function(){
$.sifr({
path: 'http://**.com/js/',
save: true
});
$('.pageInfo h1').sifr({
font: 'soho',
debug: true
});
});
Now, the "save: true" is not in the docs for this plugin but I did find it elsewhere on the plugin's site, the funny thing is, that without it, nothing happens but with it included, all I get is the default "Rendered with sIFR3" message instead of the text of my element.
现在,“save:true”不在这个插件的文档中,但我确实在插件的网站上找到了它,有趣的是,没有它,没有任何反应,但包括它,我得到的只是默认的“使用sIFR3“消息而不是我的元素的文本呈现。
The plugin's site also says "It supports sIFR version 2 and version 3 fonts.", what does this mean? Could my font files be in the newer v3 type?
该插件的网站还说“它支持sIFR版本2和版本3字体。”,这是什么意思?我的字体文件可以是较新的v3类型吗?
I would really appreciate any and all help.
我真的很感激任何和所有的帮助。
Thank you in advance
先谢谢你
4 个解决方案
#1
1
Here I Am!
我在这里!
Sorry for delay. :)
不好意思推迟了。 :)
You must specify at least build and version.
您必须至少指定构建和版本。
Here's a sample:
这是一个示例:
$.sifr({
build: 436,
version: 3,
path: 'http://**.com/js/',
save: true
});
#2
1
I had the same issue using the jQuery plugin (which uses sIFR 3 now), for me it was that the pre-published swf's were < version 436 - specifically fonts from sifrvault. Likely your font needs to be re-published, grab the ttf and use OpensIFRr.
我有同样的问题使用jQuery插件(现在使用sIFR 3),对我来说,预先发布的swf是 <版本436 - 特别是来自sifrvault的字体。可能你的字体需要重新发布,抓住ttf并使用opensifrr。< p>
-Jay
#3
0
Have you tried skipping the font option and passing a direct reference to the swf (including the .swf file extension) to the path option? I experimented with that plugin just a few weeks ago I think that may have been necessary to get things started.
您是否尝试过跳过字体选项并将swf(包括.swf文件扩展名)的直接引用传递给路径选项?几个星期前,我尝试使用该插件,我认为这可能是开始工作所必需的。
YMMV, but my experience was that many odd little bugs crept in w/ the plugin and it's was far less frustrating (plus just as easy and performant) to run a normal sifr.replaceElement inside your document(ready) code using the official sIFR 2.0.7 release from http://wiki.novemberborn.net/sifr/.
YMMV,但我的经验是,插件中有许多奇怪的小错误,并且使用官方的sIFR 2.0在文档(就绪)代码中运行正常的sifr.replaceElement并不那么令人沮丧(加上同样简单和高效) .7从http://wiki.novemberborn.net/sifr/发布。
#4
0
I don't believe the jQuery plugin is compatible with sIFR 3 (which I would recommend you use anyway).
我不相信jQuery插件与sIFR 3兼容(我建议你使用它)。
#1
1
Here I Am!
我在这里!
Sorry for delay. :)
不好意思推迟了。 :)
You must specify at least build and version.
您必须至少指定构建和版本。
Here's a sample:
这是一个示例:
$.sifr({
build: 436,
version: 3,
path: 'http://**.com/js/',
save: true
});
#2
1
I had the same issue using the jQuery plugin (which uses sIFR 3 now), for me it was that the pre-published swf's were < version 436 - specifically fonts from sifrvault. Likely your font needs to be re-published, grab the ttf and use OpensIFRr.
我有同样的问题使用jQuery插件(现在使用sIFR 3),对我来说,预先发布的swf是 <版本436 - 特别是来自sifrvault的字体。可能你的字体需要重新发布,抓住ttf并使用opensifrr。< p>
-Jay
#3
0
Have you tried skipping the font option and passing a direct reference to the swf (including the .swf file extension) to the path option? I experimented with that plugin just a few weeks ago I think that may have been necessary to get things started.
您是否尝试过跳过字体选项并将swf(包括.swf文件扩展名)的直接引用传递给路径选项?几个星期前,我尝试使用该插件,我认为这可能是开始工作所必需的。
YMMV, but my experience was that many odd little bugs crept in w/ the plugin and it's was far less frustrating (plus just as easy and performant) to run a normal sifr.replaceElement inside your document(ready) code using the official sIFR 2.0.7 release from http://wiki.novemberborn.net/sifr/.
YMMV,但我的经验是,插件中有许多奇怪的小错误,并且使用官方的sIFR 2.0在文档(就绪)代码中运行正常的sifr.replaceElement并不那么令人沮丧(加上同样简单和高效) .7从http://wiki.novemberborn.net/sifr/发布。
#4
0
I don't believe the jQuery plugin is compatible with sIFR 3 (which I would recommend you use anyway).
我不相信jQuery插件与sIFR 3兼容(我建议你使用它)。