sIFR 没有显示在我的页面上?
我正在尝试使用 sIFR,但在显示它时遇到问题。 我的页面上有一个 h1 标签,后面
<script type="text/javascript">
if(typeof sIFR == "function"){
sIFR.replaceElement("h1", "flash/revolution.swf", "#000000", null, null, null, 0, 0, 0, 0);
}
</script>
附有两个 sIFR 样式表以及 sIFR js 文件。 所以我的 h1 标签就消失了。 所以我认为 js 文件正在隐藏,但没有用 .swf 文件中的字体替换字体。 我很确定我的 swf 文件正在工作,因为我让它在不同的页面上工作,但我似乎无法使其工作。 我需要在提供的 css 文件中指定任何内容吗?
非常感谢您提供有关如何实现这项工作的任何提示!
I am trying to use sIFR and am having problems making it show. I have an h1 tag on my page, followed by
<script type="text/javascript">
if(typeof sIFR == "function"){
sIFR.replaceElement("h1", "flash/revolution.swf", "#000000", null, null, null, 0, 0, 0, 0);
}
</script>
I have both sIFR style sheets attached, as well as the sIFR js file. So what happens is that my h1 tag just disappears. So I think the js file is working in hiding, but not replacing the font with the font in the .swf file. I am pretty sure that my swf file is working since I had it working on a different page, but I can't seem to make this work. Do I need to specify anything in the provided css file?
Thanks a lot for any tips on where to look to make this work!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
想法很简单,但是页面可以访问“flash/revolution.swf”吗? 我犯了一个简单的错误,创建了干净的 URL,却忘记将其设为“/flash/revolution.swf”。
Simple idea, but is "flash/revolution.swf" accessible by the page? I've made the simple mistake of creating clean URL's and forgetting to make it "/flash/revolution.swf."
确保将代码放在
之前,而不是放在
之后。
Make sure you put the code right before the
</body>
, rather than right after the</h1>
.