FireFox refuse de gérer mon script help !

cynthianv -  
 Utilisateur anonyme -
Bonjour,

Salut tout le monde,

Super j'ai trouvé le lecteur MP3 que je cherchais et zut il n'est géré que par IE
quelque'un pourait regarder ce code et faire des modifications pour qu'il puisse aussi être gérer par Firefox ? Ce serait super sympa.

Ca fait des jours et des jours que je fait du surplace je n'y arrive pas et comme j'ai remarqué qu'il y a des experts parmis vous j'espère avoir la solution. Aidez-moi s'il vous plaît.

Je suis une débutante qui ne comprends pas toujours les termes techniques il faut donc m'expliquer avec des mots simples. Désolée.

Voici le code

<SCRIPT>
function playIt(filename) { Player.URL = filename; }
</SCRIPT>
<!-- Fin | Script -->
<p style="margin-top: 0; margin-bottom: 0">
<!-- Début | Lecteur -->
<OBJECT ID="Player"
WIDTH=160 HEIGHT=46 CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="volume" value="100">
<param name="stretchToFit" value="-1">
</OBJECT> <!-- Fin | Lecteur --> </p> <!-- Début | Liste -->
<p style="margin-top: 0; margin-bottom: 0"> Fichier :
<p style="margin-top: 0; margin-bottom: 0">1.
<A HREF="#" onclick="playIt('****.mp3')">TITRE</A>
<p style="margin-top: 0; margin-bottom: 0">2.
<A HREF="#" onclick="playIt('****.mp3')">TITRE</A>
<p style="margin-top: 0; margin-bottom: 0">3.
<A HREF="#" onclick="playIt('****.mp3')">TITRE</A>
<p style="margin-top: 0; margin-bottom: 0">4.
<A HREF="#" onclick="playIt('****.mp3')">TITRE</A>
<p style="margin-top: 0; margin-bottom: 0">5.
<A HREF="#" onclick="playIt('****.MP3')">TITRE</A>
<!-- Fin | Liste -->

Il parait que je dois changer le lecteur car c'est de c'est de l'activeX mais je sais pas ce que c'est.

Le lecteur

<OBJECT ID="Player"
WIDTH=217 HEIGHT=46 CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="volume" value="100">
<param name="stretchToFit" value="-1">
</OBJECT>

J'ai essayé avec ça :

Un autre lecteur

<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="WindowsMediaPlayer4"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab"
standby="Loading Microsoft Windows Media Player components..."
width="160" height="46" align="left">
<param name=URL value="bibi_enthem.mp3">
<param name="AutoStart" value="0">
<param name="Volume" value="50">
<param name="playCount" value="1">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="defaultFrame" value"-1" value>
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="baseURL" value>
<param name="mute" value="0">
<param name="uiMode" value="mini">
<param name="stretchToFit" value="-1">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="-1">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="0">
<param name="_cx" value="16933">
<param name="_cy" value="12700">
<Embed type="application/x-mplayer2"
pluginspage="https://support.microsoft.com/en-us/windows/get-windows-media-player-81718e0d-cfce-25b1-aee3-94596b658287"
name="WMP" src="bibi_enthem.mp3"
autostart="True"
showcontrols="True"
showstatusbar="False"
showdisplay="True"
autorewind="True" width="640" height="480" align="absmiddle">
</embed></object>

Mais ça ne fonctionne pas.
Il faut que j'enlève la balise </embed> ?

Et puis il ya la function playIt(filename) { Player.URL = filename; }
Je ne sais pas si je dois la changer ou pas.

Pouvez-vous m'aider ?
J'en ai besoin.

Merci puissance 10 d'avance

Cynthia
A voir également:

6 réponses

Utilisateur anonyme
 
Salut,

<OBJECT width=200 height=30 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"

codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Versi­on=6,0,02,902"
standby="Chargement de Microsoft Windows Media Player..." type="application/x-oleobject">

<PARAM NAME="FileName" VALUE="le chemin complet du fichier">
<PARAM NAME="animationatStart" VALUE="true">
<PARAM NAME="transparentatStart" VALUE="true">
<PARAM NAME="autoStart" VALUE="false">
<PARAM NAME="showControls" VALUE="true">
<PARAM NAME="autoSize" VALUE="0">

<EMBED type="application/x-mplayer2" pluginspage = "https://support.microsoft.com/en-us/windows/get-windows-media-player-81718e0d-cfce-25b1-aee3-94596b658287"
SRC="le chemin complet du fichier" width="200" height="30" AutoStart="false"

autosize="0" transparentatStart="true" animationatStart="true" showControls="true">
</EMBED>

</object>
0
cynthianv
 
Merciiiiiiiiiiiiiiiiiiiiiiii Sky34gl3 de me répondre c'est super gentil

Je vais essayer directement et je croise les doigts pour que ça fonctionne.

Merci et A+
0
cynthianv > cynthianv
 
Me revoilà

j'ai essayé et ça marche

j'ai juste une petite question comment dois-je faire pour pouvoir écouter d'autres chansons sur ce même lecteur ?
j'ai essayé avec

<p style="margin-top: 0; margin-bottom: 0">

<!-- Début | Liste -->
<p style="margin-top: 0; margin-bottom: 0"> Fichier :
<p style="margin-top: 0; margin-bottom: 0">1.
<A HREF="#" onclick="playIt('****.mp3')">TITRE</A>
<p style="margin-top: 0; margin-bottom: 0">2.
<A HREF="#" onclick="playIt('****.mp3')">TITRE</A>
<p style="margin-top: 0; margin-bottom: 0">3.
<A HREF="#" onclick="playIt('****.mp3')">TITRE</A>
<p style="margin-top: 0; margin-bottom: 0">4.
<A HREF="#" onclick="playIt('****.mp3')">TITRE</A>
<p style="margin-top: 0; margin-bottom: 0">5.
<A HREF="#" onclick="playIt('NOM DU FICHIER.MP3')">TITRE</A>
<!-- Fin | Liste -->

Mais ça ne fonctionne pas

Merci
A+ Cynthia
0
Utilisateur anonyme
 
Tu connais le PHP ou pas? Que je sache si je dois te le faire ou pas.
0
cynthianv
 
Le PHP ? Non

Est-ce que je peux l'utiliser sur des page en mode HTML ?

Encore merci de ton aide.
C'est gentil.
J'espère un jour t'aider à mon tour même si je ne connais pas grand chose.

Cynthia
0
Utilisateur anonyme
 
Quel est l'herbergeur de ton site? Supporte t-il le php?
0
cynthianv
 
OVH et j'utilise le programme Frontpage je ne sais pas s'il supporte le PHP je n'ai jamais essayé.
0
Utilisateur anonyme
 
Ok, donc poste ici le code source de la page HTML sur laquelle tu as mis ton lecteur.
0
cynthianv
 
Vla

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Nouvelle page 1</title>
<style fprolloverstyle>A:hover {color: red; font-weight: bold}
</style>
</head>

<body bgcolor="#694106">

<p style="margin-top: 0; margin-bottom: 0">

<OBJECT width=200 height=30 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Versi­­on=6,0,02,902"
standby="Chargement de Microsoft Windows Media Player..." type="application/x-oleobject">

<PARAM NAME="FileName" VALUE="bibi_excuse_moi2.mp3">
<PARAM NAME="animationatStart" VALUE="true">
<PARAM NAME="transparentatStart" VALUE="true">
<PARAM NAME="autoStart" VALUE="false">
<PARAM NAME="showControls" VALUE="true">
<PARAM NAME="autoSize" VALUE="0">
<EMBED type="application/x-mplayer2" pluginspage = "https://support.microsoft.com/en-us/windows/get-windows-media-player-81718e0d-cfce-25b1-aee3-94596b658287"
SRC="bibi_excuse_moi2.mp3" width="200" height="30" AutoStart="false"

autosize="0" transparentatStart="true" animationatStart="true" showControls="true">
</EMBED></object>


</body>

</html>
0
cynthianv > cynthianv
 
Il faut enlever ceci
<p style="margin-top: 0; margin-bottom: 0">

Cynthia
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
Utilisateur anonyme
 
Salut, tu copies tout ceci dans ta page à la place de ce que tu m'as envoyé.
Puis tu enregistre ta page au format .php , bien sûr dans tes autres pages tu devras faire un lien vers tapage.php et non plus .html. Regarde bien comment c'est codé et tu comprendras très vite comment ajouter une autre musique.

<?php
if (isset($_GET['id'])){
$id=$_GET['id'];
if($id == 1){
$musique='chanson1.mp3';
}
if($id == 2){
$musique='chanson2.mp3';
}
if($id == 3){
$musique='chanson3.mp3';
}
if($id == 4){
$musique='chanson4.mp3';
}
}
?>
<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Nouvelle page 1</title>
<style fprolloverstyle>A:hover {color: red; font-weight: bold}
</style>
</head>

<body bgcolor="#694106">

<p style="margin-top: 0; margin-bottom: 0">

<OBJECT width=200 height=30 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Versi­­­on=6,0,02,902"
standby="Chargement de Microsoft Windows Media Player..." type="application/x-oleobject">

<PARAM NAME="FileName" VALUE="<?php echo $musique ?>">
<PARAM NAME="animationatStart" VALUE="true">
<PARAM NAME="transparentatStart" VALUE="true">
<PARAM NAME="autoStart" VALUE="true">
<PARAM NAME="showControls" VALUE="true">
<PARAM NAME="autoSize" VALUE="0">
<EMBED type="application/x-mplayer2" pluginspage = "https://support.microsoft.com/en-us/windows/get-windows-media-player-81718e0d-cfce-25b1-aee3-94596b658287"
SRC="<?php echo $musique ?>" width="200" height="30" AutoStart="false"

autosize="0" transparentatStart="true" animationatStart="true" showControls="true">
</EMBED></object>

<!-- Début | Liste -->
<p style="margin-top: 0; margin-bottom: 0"> Fichier :
<p style="margin-top: 0; margin-bottom: 0">1.
<A HREF="tapage.php?id=1">TITRE</A>
<p style="margin-top: 0; margin-bottom: 0">2.
<A HREF="tapage.php?id=2">TITRE</A>
<p style="margin-top: 0; margin-bottom: 0">3.
<A HREF="tapage.php?id=3">TITRE</A>
<p style="margin-top: 0; margin-bottom: 0">4.
<A HREF="tapage.php?id=4">TITRE</A>
<p style="margin-top: 0; margin-bottom: 0">5.
<A HREF="tapage.php?id=5">TITRE</A>
<!-- Fin | Liste -->

</body>

</html>
0
cynthianv
 
Merci beaucoup c'est super gentil je faire comme tu m'a dit.

J'espère que ça marchera en tout cas je vais croiser les doigts

1001 mercis

Cynthia
0
cynthianv > cynthianv
 
J'ai mis le nom des fichiers MP3 aux bons endroit (c'est du certain) mais ça ne fonctionne pas lorsque je clic sur titre ça me revoie à une pas inconnue mais j'ai été voir sur le forum d'OVH et j'ai lu qu'OVH supporte le PHP 4 et 5 je dois peut-être mettre l'extention php4 ou php5 c'est peut-être à cause de ça.

Merci de ta patience

Cynthia
0
Utilisateur anonyme > cynthianv
 
Poste moi ce que tu as mis dans ta page stp :)
0
cynthianv > Utilisateur anonyme
 
Vla

<?php
if (isset($_GET['id'])){
$id=$_GET['id'];
if($id == 1){
$musique='bibi_excuse_moi2.mp3';
}
if($id == 2){
$musique='bibi_enthem.mp3';
}
if($id == 3){
$musique='bibi_excuse_moi2.mp3';
}
if($id == 4){
$musique='bibi_enthem.mp3';
}
}
?>

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Nouvelle page 1</title>
<style fprolloverstyle>A:hover {color: red; font-weight: bold}
</style>
</head>

<body bgcolor="#694106">

<p style="margin-top: 0; margin-bottom: 0">

<OBJECT width=200 height=30 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Versi­­­­on=6,0,02,902"
standby="Chargement de Microsoft Windows Media Player..." type="application/x-oleobject">

<PARAM NAME="FileName" VALUE="<?php echo $musique ?>">
<PARAM NAME="animationatStart" VALUE="true">
<PARAM NAME="transparentatStart" VALUE="true">
<PARAM NAME="autoStart" VALUE="true">
<PARAM NAME="showControls" VALUE="true">
<PARAM NAME="autoSize" VALUE="0">
<EMBED type="application/x-mplayer2" pluginspage = "https://support.microsoft.com/en-us/windows/get-windows-media-player-81718e0d-cfce-25b1-aee3-94596b658287"
SRC="<?php echo $musique ?>" width="200" height="30" AutoStart="false"

autosize="0" transparentatStart="true" animationatStart="true" showControls="true">
</EMBED></object>

<!-- Début | Liste -->
<p style="margin-top: 0; margin-bottom: 0"> Fichier :
<p style="margin-top: 0; margin-bottom: 0">1.
<A HREF="tapage.php?id=1">chanson n°1</A>
<p style="margin-top: 0; margin-bottom: 0">2.
<A HREF="tapage.php?id=2">Chanson n°2</A>
<p style="margin-top: 0; margin-bottom: 0">3.
<A HREF="tapage.php?id=3">Chanson n°3</A>
<p style="margin-top: 0; margin-bottom: 0">4.
<A HREF="tapage.php?id=4">Chanson n°4</A>
<p style="margin-top: 0; margin-bottom: 0">5.
<A HREF="tapage.php?id=5">Chanson n°5</A>
<!-- Fin | Liste -->

</body>


</html>
0
Utilisateur anonyme > cynthianv
 
Grrr ^^, j'avais bien mis en gras ce que tu devais changé :o
tapage.php est à changé en le nom de cette page.
0
Utilisateur anonyme
 
De rien, oublie pas de cocher résolu.
0