1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
script language="javascript">
var i,j,k;
var lgProgres = 330;
var lgCurseur = 2;
var taille = lgProgres - lgCurseur;
function objChanson(arg_fic,arg_nom,arg_art,arg_alb,arg_dur){
this.fichier = arg_fic;
this.nom = arg_nom;
this.artiste = arg_art;
this.album = arg_alb;
this.duree = arg_dur;
}
var liste = new Array();
liste[0] = new objChanson("018.mp3","Quran-Al-kahf","Al-kahf","Saoud shuraim",5028);
liste[1] = new objChanson("018.mp3","Quran-2","Al-kahf","Saoud shuraim",5028);
liste[2] = new objChanson("018.mp3","Quran-3","Al-kahf","Saoud shuraim",5028);
liste[3] = new objChanson("018.mp3","Quran-4","Al-kahf","Saoud shuraim",5028);
liste[4] = new objChanson("018.mp3","Quran-5","Al-kahf","Saoud shuraim",5028);
liste[5] = new objChanson("018.mp3","Quran-6","Al-kahf","Saoud shuraim",5028);
var nbAleat = new Array();
for(i=0;i<liste.length;i++){
nbAleat[i] = Math.floor(Math.random()*liste.length);
for(j=0;j<i;j++){
if(nbAleat[j]==nbAleat[i]){
i--;
}
}
}
k = 0;
function lecture(choix){
if(!choix.selectedIndex){
choix.selectedIndex = 1;
}
parent.affichage.location = "player.htm";
}
function stop(choix){
choix.selectedIndex = 0;
parent.affichage.location = "player.htm";
}
function verif(arg){
if(arg=="bcl"){
if(document.formulaire.bcl[1].checked){
document.formulaire.bcl[1].checked = false;
}
}
if(arg=="ale"){
if(document.formulaire.aleat.checked){
document.formulaire.aleat.checked = false;
}
}
}
</script> |
Partager