par
x@v » 22 oct. 2008, 22:55
pas mal c'est vrai, jai justement trouver un plug in jquery (ma biblio)
http://www.sean-o.com/jquery/jmp3/
mais je pige pas les instructions (en anglais)
Code : Tout sélectionner
# First, download the lightweight (3k) Flash Single MP3 Player
(Feb 2007: looks like Jeroen has updated his player and removed the old version...
grab a local copy of the original Single MP3 Player compatible with jMP3 here)
# Then, grab the jMP3 plugin (you do have jQuery already as well, yes?)
# Set the path to singlemp3player.swf in jMP3
# Include jQuery & the jMP3 plugin scripts in the <HEAD> your page
Il faut dl un fichier mais il ne dit pas comment l'intégrer ?
edit
j'ai donc fait :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style>
</style>
<script type="text/javascript" src="./lib/jquery.js"></script>
<?php /*---- http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html ------*/ ?>
<script type="text/javascript" src="./lib/jMp3.js"></script>
<script>
$(document).ready(function()
{
$(".mp3").jMP3();
$("#sounddl").jmp3({
showfilename: "false",
backcolor: "000000",
forecolor: "00ff00",
width: 200,
showdownload: "false"
});
});
</script>
</head>
<body>
<div style="margin: 15px 0pt; text-align: center;">
<span class="mp3">mp3/1.mp3</span>
</div>
</body>
</html>
En faite il faut indiquer le chemin dans le plug in ?
pas mal c'est vrai, jai justement trouver un plug in jquery (ma biblio)
http://www.sean-o.com/jquery/jmp3/
mais je pige pas les instructions (en anglais)
[code]# First, download the lightweight (3k) Flash Single MP3 Player
(Feb 2007: looks like Jeroen has updated his player and removed the old version...
grab a local copy of the original Single MP3 Player compatible with jMP3 here)
# Then, grab the jMP3 plugin (you do have jQuery already as well, yes?)
# Set the path to singlemp3player.swf in jMP3
# Include jQuery & the jMP3 plugin scripts in the <HEAD> your page[/code]
Il faut dl un fichier mais il ne dit pas comment l'intégrer ?
edit
j'ai donc fait :
[php]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style>
</style>
<script type="text/javascript" src="./lib/jquery.js"></script>
<?php /*---- http://blog.jeremymartin.name/2008/02/jtruncate-text-truncation-for-jquery.html ------*/ ?>
<script type="text/javascript" src="./lib/jMp3.js"></script>
<script>
$(document).ready(function()
{
$(".mp3").jMP3();
$("#sounddl").jmp3({
showfilename: "false",
backcolor: "000000",
forecolor: "00ff00",
width: 200,
showdownload: "false"
});
});
</script>
</head>
<body>
<div style="margin: 15px 0pt; text-align: center;">
<span class="mp3">mp3/1.mp3</span>
</div>
</body>
</html>[/php]
En faite il faut indiquer le chemin dans le plug in ?