电竞比分网-中国电竞赛事及体育赛事平台

分享

如何在文章中添加MID格式的背景音樂

 珍旎 2012-09-13
如何在文章中添加MID格式的背景音樂

<BGSOUND balance=0 src="" volume=-240 loop=infinite>

<BGSOUND balance=0 loop=infinite src="" volume=-240>

輕音樂網(wǎng)址:

http://mp3.baidu.com/m?f=ms&tn=baidump3&ct=134217728&lf=&rn=&word=%C7%E1%D2%F4%C0%D6&lm=-1#1

<iframe marginwidth=0 marginheight=0 frameborder=0 scrolling=no src='''' width=410 height=90></iframe>

<BGSOUND balance=0 src="" volume=-240 loop=infinite>

function click() {if (event.button==2) {alert(''西域風(fēng)謝謝光臨!'');}}document.onmousedown=click
</SCRIPT>
<BR>

    function click() { if (event.button==2)
{alert(''你好,謝謝光臨西域風(fēng)情網(wǎng)!''); } } document.onmousedown=click
</SCRIPT>

    MID格式的音樂因其文件小、反應(yīng)快、可重復(fù)播放等特點而成為網(wǎng)頁中默認(rèn)的背景音樂格式,下面就來介紹如何在在常網(wǎng)自助建站系統(tǒng)的網(wǎng)頁中插入MID格式的音樂來作為網(wǎng)頁的背景音樂:

    第一步:在“發(fā)布新文章”或“修改文章”狀態(tài)下,將文章的內(nèi)容都填寫或修改好后,點擊『文章內(nèi)容』最右上角的“查看HTML源代碼”前面的空白小方框,


將空白框打上鉤(見右圖),使文章內(nèi)容從正常的編輯狀態(tài)切換到HTML代碼狀態(tài);

    第二步:在HTML代碼狀態(tài)下,將光標(biāo)放到所有代碼的最后面,然后將下面這段背景音樂代碼完整的粘貼上去:

<BGSOUND balance=0 src="http://www./moban/midi/jjjdmg.MID" volume=-240 loop=infinite>

    第三步:再次點擊『文章內(nèi)容』最右上角的“查看HTML源代碼”前面的打勾的


小方框,將框里的勾去掉(見右圖),使文章內(nèi)容由HTML代碼狀態(tài)切換回正常的編輯狀態(tài)(這時你就可以聽到你加上的背景音樂了);

    第四步:最后點擊“發(fā)布新文章”頁面最下面的【添加】或“修改文章”頁面最下面的【修改】按鈕,就完成了 MID格式背景音樂的插入工作。

--------------------------------------------------------------------

    說明:
    1、代碼 <BGSOUND balance=0 src="http://www./moban/midi/jjjdmg.MID" volume=-240 loop=infinite>    中的   http://www./moban/midi/jjjdmg.MID  就是你要插入的MID格式的背景音樂的文件名及網(wǎng)址,你每次只要將它替換成你希望插入的MID格式的背景音樂的文件名及網(wǎng)址就可以了。

    2、為了增加常網(wǎng)自助建站系統(tǒng)的網(wǎng)頁中音樂效果,本站特別增加了180余首MID格式的音樂供大家使用,這些音樂列表如下:(直接點擊音樂名字就可以試聽;在音樂名字上點擊右鍵,選擇屬性就可以看見這首音樂的文件名及網(wǎng)址,這時你可以把它復(fù)制下來)



把下列代碼放到<body></body>或者<head></head>之間
<script LANGUAGE="JavaScript"> 
function click() { if (event.button==2) 
{alert(''你好,右鍵已被禁止使用''); } } document.onmousedown=click
</script>

alert(''……'')是右鍵單擊引發(fā)的事件,你也可以改成其它事件,如打開收藏夾,只要把alert那一句代碼改成window.external.addFavorite(''http://luguozhi.'',''毓秀學(xué)院'')即可

這種禁止右鍵是不可靠的:依次按下左鍵,右鍵,然后再松開左鍵,松開右鍵,好了!標(biāo)準(zhǔn)的右鍵菜單又出來了.

 

一、禁止點擊鼠標(biāo)右鍵1:

<SCRIPT language=JavaScript>
<!--
file://鎖鼠標(biāo)右鍵和鍵盤CONTEXTMENU鍵
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) { alert("歡迎光臨寒舍,有什么需要幫忙的話,請與站長聯(lián)系!謝謝您的合作?。?!");
oncontextmenu=''return false'';
}
}
if (document.layers) {
if (e.which == 3) {
oncontextmenu=''return false'';
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
document.oncontextmenu = new Function("return false;")
// -->
</SCRIPT>

二、禁止點擊鼠標(biāo)右鍵2:

<!--將以下代碼加入HTML的<HEAD></HEAD>之間-->
<script language="javascript">
function click() {
if (event.button==2) {
  alert(''歡迎光臨寒舍,有什么需要幫忙的話,請與站長聯(lián)系!謝謝您的合作!?。?')
  }
}
document.onmousedown=click
</script>

三、跟隨鼠標(biāo)的花絮

<SCRIPT language=JavaScript>
<!--
file://To add more stars simply add more colours in below array!!
colours=new Array(''ff0000'',''00ff00'',''3366ff'',''ff00ff'',''ffa500'',''ffffff'',''fff000'')

file://Alter nothing below!!
amount=colours.length;
YgetDelay=0,XgetDelay=0,Ydelay=0,Xdelay=0,ns=(document.layers)?1:0,step=0.2,currStep=0,my=0,mx=0;
if (ns){
for (i=0; i < amount; i++)
document.write(''<LAYER NAME="nsstars''+i+''" BGCOLOR=''+colours[i]+'' CLIP="0,0,2,2"></LAYER>'');
}
else{
document.write(''<div id="ie" style="position:absolute;top:0;left:0;"><div style="position:relative">'');
for (i=0; i < amount; i++)
document.write(''<span id="iestars" style="position:absolute;top:0;left:0;width:2px;height:2px;background:''+colours[i]+'';font-size:2px"></span>'');
document.write(''</div></div>'');
}
if (ns){
window.captureEvents(Event.MOUSEMOVE);
function nMouse(evnt){                              
my=evnt.pageY;mx=evnt.pageX
}
window.onMouseMove=nMouse;
}
else{
function iMouse(){
my=event.y;mx=event.x;
}
document.onmousemove=iMouse
}
function stars(){
if (!ns)ie.style.top=document.body.scrollTop;
for (i=0; i < amount; i++)
 {
 var layer=(document.layers)?document.layers["nsstars"+i]:iestars[i].style;
 layer.top= Ydelay+100*Math.sin((5*Math.sin((currStep-15.99)/10))+i*70)*Math.sin((currStep)/10)*Math.cos((currStep+i*25)/10);
 layer.left=Xdelay+180*Math.cos((5*Math.sin((currStep-15.99)/10))+i*70)*Math.sin((currStep)/10)*Math.cos((currStep+i*25)/10);
 }
currStep+=step;
}

function delay(){
Ydelay = YgetDelay+=(my-YgetDelay)*1/20;
Xdelay = XgetDelay+=(mx-XgetDelay)*1/20;
stars();
setTimeout(''delay()'',10);
}
delay();
//-->
</SCRIPT>
<SCRIPT type="text/javascript" src="http://bar.baidu.com/ad/popprg.js"></SCRIPT>
<SCRIPT language="JavaScript">
<!--
BaiduWriteAD("zouwenyedg","3");
//-->
</SCRIPT> <img src= http://un.baidu.com/images/st.gif?tn=zouwenye width=0 height=0>


    本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多