| 如何在文章中添加MID格式的背景音樂 |
|
|
<BGSOUND balance=0 src="" volume=-240 loop=infinite>
<BGSOUND balance=0 loop=infinite src="" volume=-240>
輕音樂網址:
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(''西域風謝謝光臨!'');}}document.onmousedown=click </SCRIPT> <BR> |
function click() { if (event.button==2) {alert(''你好,謝謝光臨西域風情網!''); } } document.onmousedown=click </SCRIPT>
MID格式的音樂因其文件小、反應快、可重復播放等特點而成為網頁中默認的背景音樂格式,下面就來介紹如何在在常網自助建站系統(tǒng)的網頁中插入MID格式的音樂來作為網頁的背景音樂:
第一步:在“發(fā)布新文章”或“修改文章”狀態(tài)下,將文章的內容都填寫或修改好后,點擊『文章內容』最右上角的“查看HTML源代碼”前面的空白小方框,

將空白框打上鉤(見右圖),使文章內容從正常的編輯狀態(tài)切換到HTML代碼狀態(tài);
第二步:在HTML代碼狀態(tài)下,將光標放到所有代碼的最后面,然后將下面這段背景音樂代碼完整的粘貼上去:
<BGSOUND balance=0 src="http://www./moban/midi/jjjdmg.MID" volume=-240 loop=infinite>
第三步:再次點擊『文章內容』最右上角的“查看HTML源代碼”前面的打勾的

小方框,將框里的勾去掉(見右圖),使文章內容由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格式的背景音樂的文件名及網址,你每次只要將它替換成你希望插入的MID格式的背景音樂的文件名及網址就可以了。
2、為了增加常網自助建站系統(tǒng)的網頁中音樂效果,本站特別增加了180余首MID格式的音樂供大家使用,這些音樂列表如下:(直接點擊音樂名字就可以試聽;在音樂名字上點擊右鍵,選擇屬性就可以看見這首音樂的文件名及網址,這時你可以把它復制下來)
| |
把下列代碼放到<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.'',''毓秀學院'')即可
這種禁止右鍵是不可靠的:依次按下左鍵,右鍵,然后再松開左鍵,松開右鍵,好了!標準的右鍵菜單又出來了.
一、禁止點擊鼠標右鍵1:
<SCRIPT language=JavaScript> <!-- file://鎖鼠標右鍵和鍵盤CONTEXTMENU鍵 function click(e) { if (document.all) { if (event.button==2||event.button==3) { alert("歡迎光臨寒舍,有什么需要幫忙的話,請與站長聯系!謝謝您的合作?。?!"); 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>
二、禁止點擊鼠標右鍵2:
<!--將以下代碼加入HTML的<HEAD></HEAD>之間--> <script language="javascript"> function click() { if (event.button==2) { alert(''歡迎光臨寒舍,有什么需要幫忙的話,請與站長聯系!謝謝您的合作!??!'') } } document.onmousedown=click </script>
三、跟隨鼠標的花絮
<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>
|