如何在我的网站中添加背景音乐(c#项目) [英] how can I add background music in my website (c# project)

查看:93
本文介绍了如何在我的网站中添加背景音乐(c#项目)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的网站中添加我用C#编码的背景音乐。我希望每当我打开页面时都会播放音乐。请帮忙。

提前完成。

Hi, I want to add background music in my website that I had coded in C#. I want the music to be played whenever I open the page.Please help.
Thanx in advance.

推荐答案

好吧,这不是真正的C#问题。只需输出正确的html,将音频文件放在适当位置,如果浏览器接受它(或者用户更精确),您将获得背景音乐。请注意,通常用户并不喜欢背景音乐,特别是如果自动播放。



短代码项目搜索可以帮助您: HTML 5中的背景音乐 [ ^ ]
Well, that not really a C# issue. Just output the right html, have the audio files in place, and if the browser accepts it (or the user to be more precise), you'll have your background music. Just be aware, that usually users don't really like background music, especially if autoplayed.

A short codeproject search can help you: Background Music in HTML 5[^]


希望它有帮助



http://forums.asp.net/t/1173584.aspx [ ^ ]

< a href =http://www.c-sharpcorner.com/blogs/1670/play-background-music-on-your-website-using-asp-net.aspx> http://www.c-sharpcorner .com / blogs / 1670 / play-background-music-on-your-website-using-asp-net.aspx [ ^ ]

注意:未经测试
Hope it helps

http://forums.asp.net/t/1173584.aspx[^]
http://www.c-sharpcorner.com/blogs/1670/play-background-music-on-your-website-using-asp-net.aspx[^]
note: Not Tested


使用< embed>标签: -

Using the <embed> Tag:-
<embed name="lostmojo" src="abc.wav" loop="false" hidden="true" autostart="true">





或(适用于IE和Opera版本)



or (for IE and opera versions)

<bgsound src="file.mid" loop="infinite">


这篇关于如何在我的网站中添加背景音乐(c#项目)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆