Ross
eCreations Staff
Posts: 1,768
|
Post by Ross on May 11, 2007 13:27:16 GMT
Global Footer<script type="text/javascript"> <!-- /* Music playable in Posts Ross - freelancedev.net Please Do Not Repost */
var music_button = "Image URL";
if(location.href.match(/ion=(display|calendarview)/)) { var td = document.getElementsByTagName('td'); for(i=0; i<td.length; i++) { if(td.item(i).colSpan == '3' && td.item(i).vAlign == 'top' && td.item(i).innerHTML.match(/google_ad_section_/i)) { td.item(i).innerHTML = td.item(i).innerHTML.replace(/\[music\](.+?\.(mp3|wav))\[\/music\]/, '<embed src="$1" autoplay="false" loop="1" AllowScriptAccess="never" style="height: 55px;" />'); } } } else if(document.postForm) { document.postForm.color.parentNode.innerHTML += '<a href="javascript:add(\'[music]\', \'[/music]\');"><img src="'+ music_button +'" border="0" /></a>'; } //--> </script>When posting music, just wrap the URL in the [music][/music] tags
|
|