For those of you who only want 1 mp3 player loaded on a page at any time, I've
written a small patch for ToG to do this. I know it's already in the latest ToG
build (not sure if thats available to you guys yet, i dont keep track of the ToG
pages of the forum) but anyway here are the changes i made. From what i've
seen, my solution is quite a bit more efficient than the version currently imped
by TSG and Giant Eagle:
I'll get TSG to put it into the newest ToG build and post whether or not its mine
or his version that will be put in.
All changes are made to the javascript section located at the top of the template code
Replace loadMp3 and unloadMp3 functions with these
function loadMp3(mp3) {if (currMp3) unloadMp3(currMp3);currMp3=mp3;document.getElementById('mp3'+mp3).innerHTML = "<div id=\"mp3%item-name%\"><object type=\"application/x-shockwave-flash\" width=160 height=20 data=\"/mp3player.swf?song="+mp3+"&autoplay=1\" bgcolor=\"#EAEDF4\"><param name=\"movie\" value=\"/mp3player.swf?song="+mp3+"\"/><param name=\"bgcolor\" value=\"#EAEDF4\"/></object><a style=\"font-size:12px;font-weight:normal;\" href=\"javascript:onclick=unloadMp3(\'"+mp3+"\')\">End Stream</a></div>";}
function unloadMp3(mp3) {currMp3=null;document.getElementById('mp3'+mp3).innerHTML = "<div style=\"border-top:1px solid #fff;\" id=\"mp3%item-name%\"><a style=\"font-size:12px;font-weight:normal;\" href=\"javascript:onclick=loadMp3(\'"+mp3+"\');\">Stream</a> | <a style=\"font-size:12px;font-weight:normal;\" href=\"mms://%host%%encoded-folder%"+mp3+"\">Launch WMP</a></div>";}
and add
var currMp3=null;
to the start of this line
var DH = 0;var an = 0;var al = 0;var ai = 0; ...
As always, let fly with the suggestions. ToG can only get better