使用下拉菜单和实时预览更改 cufon 字体
我制作了一些脚本,可以从选择的选项中更改 cufon 字体,我希望它成为 cufon 字体的某种“实时预览”。因此,当用户从下拉菜单中选择一种字体时,我希望他们看到它的样子。目前,我这样做了,但遇到了一些问题,并且不知道如何解决。您可以在这里测试我的脚本 http://jsfiddle.net/djevrek/JVrpb/13/
另外,该脚本有谷歌字体预览,它可以工作,我也想让 cufon 成为可能。
i make some script that will change cufon fonts from select options, and i would like it to be some kind of "live preview" for cufon fonts. So, when user select one font from dropdown menu, i would like to they see how it looks like. Currently, i did this, but have some problem, and don't know how to fix it. You can test my script here http://jsfiddle.net/djevrek/JVrpb/13/
Also, that script have google fonts preview, which works, and i want to make it possible for cufon too.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我正在为这个 b/c 添加书签,我真的很喜欢它的发展方向。使用 .live 和 Change 作为事件怎么样?
http://api.jquery.com/live/
如果这不起作用,那么我已经使用了livequery 插件在类似情况下
http://docs.jquery.com/Plugins/livequery
I am bookmarking this b/c I really like where it is going. What about using .live with change as the event?
http://api.jquery.com/live/
if that doesn't work then i have used the livequery plugin in similar situations
http://docs.jquery.com/Plugins/livequery