Subversion Repositories all2e1pixeloutmp3flashplayer

[/] [design/] [standard/] [javascript/] [audio-player.js] - Blame information for rev 1

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1 m.bader
var ap_instances = new Array();
2
 
3
function ap_stopAll(playerID) {
4
        for(var i = 0;i<ap_instances.length;i++) {
5
                try {
6
                        if(ap_instances[i] != playerID) document.getElementById("audioplayer" + ap_instances[i].toString()).SetVariable("closePlayer", 1);
7
                        else document.getElementById("audioplayer" + ap_instances[i].toString()).SetVariable("closePlayer", 0);
8
                } catch( errorObject ) {
9
                        // stop any errors
10
                }
11
        }
12
}
13
 
14
function ap_registerPlayers() {
15
        var objectID;
16
        var objectTags = document.getElementsByTagName("object");
17
        for(var i=0;i<objectTags.length;i++) {
18
                objectID = objectTags[i].id;
19
                if(objectID.indexOf("audioplayer") == 0) {
20
                        ap_instances[i] = objectID.substring(11, objectID.length);
21
                }
22
        }
23
}
24
 
25
var ap_clearID = setInterval( ap_registerPlayers, 100 );