Accueil du forum » (X)HTML / CSS » créer un jukebox html
________________
gigbass
________________
ralebole
________________
gigbass
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Music Mp3 visite cbienla.com</title>
<script type="text/javascript">
<!--
function readtrack (tid) {
switch (tid) {
case 1:
title = "Le titre 1";
song = "titre1.mp3";
break;
case 2:
title = "Le titre 2";
song = "titre2.mp3";
break;
case 3:
title = "Le titre 3";
song = "titre3.mp3";
break;
case 4:
title = "Le titre 4";
song = "titre4.mp3";
break;
default:
title = "Choisissez un titre ...";
song = "";
break;
}
content = '<p>En lecture: <b><i>' + title + '</i></b></p>';
content += '<object type="application/x-shockwave-flash" data="dewplayer.swf?autostart=1&bgcolor=f8d14e&son=' + song + '" width="240" height="20">';
content += '<param name="movie" value="dewplayer.swf?autostart=1&bgcolor=f8d14e&son=' + song + '" />';
content += '</object>';
document.getElementById('player').innerHTML = content;
}
-->
</script>
</head>
<body>
<span>
<a href="#" onclick="readtrack(1); return false;">Titre 1</a>
<a href="#" onclick="readtrack(2); return false;">Titre 2</a>
<a href="#" onclick="readtrack(3); return false;">Titre 3</a>
<a href="#" onclick="readtrack(4); return false;">Titre 4</a></span>
</p>
<div id="player">
<p></p>
<object type="application/x-shockwave-flash" data="dewplayer.swf?son=&autostart=1&bgcolor=f8d14e" width="240" height="20">
<param name="movie" value="dewplayer.swf?son=&autostart=1&bgcolor=f8d14e" />
</object>
</div>
</body>
</html>
________________
ralebole
________________
mojchris
- Les conditions générales d'utilisation du site
| Sujet | Forum |
|---|---|
Sujet posté par exapro le 03/07/2008 à 14h52'49 |
![]() |
Réponse postée par loflo007 le 27/06/2008 à 20h21'35 |
![]() |
Réponse postée par xerses le 26/06/2008 à 20h56'07 |
![]() |
Réponse postée par laflich le 25/06/2008 à 19h27'47 |
![]() |
Réponse postée par 1cyril le 25/06/2008 à 15h09'41 |
![]() |
Réponse postée par froogy le 25/06/2008 à 08h42'34 |
![]() |
Réponse postée par raptor le 25/06/2008 à 07h09'38 |
![]() |
Réponse postée par carnyx le 21/06/2008 à 15h30'31 |
![]() |
Réponse postée par laflich le 20/06/2008 à 22h28'16 |
![]() |
Sujet posté par touret le 20/06/2008 à 20h05'38 |
![]() |