隨機音樂語法 V 1.0 by 蒼 (1) BASS 教學版



翼‧F‧嵐焰 原罪之冠 推廣中~

私訊  發言  +好友
2008-11-12 11:04:09



   隨機音樂語法:
  
  </style><script language="JavaScript">
  music = new Array(1);
  music[0] = "music.mp3";
  
  index = Math.floor(Math.random() * music.length);
  
  document.write("<embed src='" + music[index] + "' style='display:none;' autostart='true' hidden='true' loop='true' name='midis' volume='100%'>");
  
  </script></style>
  
   說明:
  
  Array(1) 裡面數字是幾首音樂
  music[0] = "音樂網址"
  --- music[0] 第一首 // music[1] 第二首,以此類推
  
  volume='100%' --- 100% 音量,以百分比調整
  
   功能
  
  1.完全隱藏
  2.可設定多首
  3.內建支援
  
   缺點
  
  1. 需自備音樂網址(http://網址/檔名.mp3 這類)
  2. 速度或品質可能不好
  
   未來發展
  
  1.加入支援各大部落格影音播放器統支援,支援隨機音樂。
  2.提示目前音樂曲名,浮動不影響瀏覽。
  


好文(0)    給我的話   相本化   本主題精華文章    發表留言  

文章連結 1249166148

happy30318 《舞琴》《宮彌》《Xena》

私訊  發言  +好友

2010-09-24 15:44:04

 翼‧F‧嵐焰
 隨機音樂語法:
   
   </style><script language="JavaScript">
   music = new Array(1);
   music[0] = "music.mp3";
   
   index = Math.floor(Math.random() * music.length);
   
   document.write("<embed src='" + music[index] + "' style='display:none;' autostart='true' hidden='true' loop='true' name='midis' volume='100%'>");
   
   </script></style>
   
 
 ↑  好亂...看不懂...


給5  10  20  其他bm     好文(0)    意見    回覆文章    分享留言   


★星.夢欣★ : 嗯.....   2012-04-30 20:36

 頁數 : 0 

搜尋本版


 

使用上有疑問嗎? 先問 BASS 專屬搜尋吧 !