Welcome Guest [Log In] [Register]
This board has been archived and is no longer accepting new questions. If you have a support question for your ZetaBoard, please visit us at the new support board. Registration is free and easy.


Visit the NEW ZetaBoards Support forum!

Username:   Password:
Add Reply
music tag
Topic Started: May 30 2008, 09:50 AM (259 Views)
thanh061292
Member
[ * ]
This is base on musictag in IPB
Great thanks to Slaytanist.
Code:
 

<script>
b=new RegExp(/\[music](.*?)\[emusic]/);
a=document.getElementsByTagName("td");
for (i=0;i<a.length;i++)
if (a[i].className=="c_post")
while (a[i].innerHTML.match(b))
a[i].innerHTML=a[i].innerHTML.replace(b,'<embed src='+RegExp.$1+' type="application/x-mplayer2" showstatusbar="1" volume="0" autostart="0" showcontrols="1" playcount="5" height="300" width="320"></embed>');
</script>

USAGE:[music]musicurl[emusic]
May be it can only play MP3, u can try with WMA or WAV...ect
goes in footer
Edited by thanh061292, May 30 2008, 07:36 PM.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Coding & Modifications · Next Topic »
Add Reply