带有声音效果的html文本
我姐姐让我为她做一些让我摸不着头脑的事情:她想在论坛上制作签名文本,并想为这个签名添加声音,这样当她的帖子显示时,声音将与她的文本一起在后台播放签名。
我不确定这可以在闪存中完成吗?有没有办法让一些jpeg图像带有声音效果?或者应该是视频?也许论坛限制添加 Flash 文档作为签名?
有什么想法可以让我的小妹妹开心吗;)
my sister asked me to do smth for her that let me scratch my head: she wants to make a signature text in a forum and wants to add sound to this signature so when her post is shown the sound will play in background together with her text signature.
I'm not sure this could be done in flash? is there a way to have some jpeg image with sound effect? or should it be a video? maybe forums restrict adding a flash doc as a signature?
any ideas to help make my little sister happy ;)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您已启动并运行 Flash,并且无法将此 swf 上传到论坛作为签名,则管理此问题的唯一方法是论坛允许您使用一些嵌入代码作为签名。即使如此,您也必须找出放置 swf 内容的位置。
另一方面,您必须了解,如果用户能够将任何“活动内容”附加到他/她的签名中,则用户也可以轻松附加一些代码,这可能会出现问题。
想象一下,您正在观看个人资料,在听音乐时会出现 1000 个弹出窗口。所以没有浮华,没有js,什么都没有,这将是一个安全问题。
If you have the flash up and running, and you can't upload this swf to the forum as the signature, the only way to manage this is the forum let's you to use some embed code as the signature. Even then you have to find out where to put the swf content.
On the other hand you have to understand, that if a user would be able to attach any "active content" to his/her signature, the user could easily attach some code too, what could be a problem.
Imagine, you are watching a profile and while listening to the music 1000 popups would show up. So no flishy-flashy, no js and no nothing, that would be a security issue.
您可以在 Flash 中执行此操作,也可以使用 html5 音频标签。
但是论坛通常会过滤掉 Flash 嵌入标签,并且可能会对音频标签执行相同的操作,如果您姐姐发布的论坛没有这样做,这肯定会导致它们启动。根据论坛的不同,她也可能最终被禁止,因为在页面中嵌入声音通常被认为非常烦人。
为了你妹妹的幸福,不要这样做。
You can do this in flash, or you can use html5 audio tags.
But forums usually filter out flash embed tags, and probably would do the same with the audio tag, and if the forum your sister posts on doesn't do it, this would certainly cause them to start. Depending on the forum, she could also end up banned, since embedding sound in a page is usually consider very annoying.
For the happiness of your sister, don't do this.