Ça va déjà mieux.
Il n'est pas impossible de placer ce code dans un élément HTML qu'on gèrera avec des CSS. On peut “le mettre en div”.
Par exemple, sur 3 colonnes, 2 colonnes, contenant les listes, en float séparées par une colonne aussi en float :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Proposition pour [CSS] Place d'un script sur page Web</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<script type="text/javascript" src="http://stat.radioblogclub.com/radio.blog/radio.blog.js"></script>
<style type="text/css">
html, body {
margin: 0;
padding: 0;
text-align: center;
background-color: #4682b4;
}
#conteneur {
position: relative;
margin: 0 auto;
width: 760px;
background-color: #b0c4de;
border : 2px solid #4169e1;
}
#pl1, #pl2 {
width:200px;
height:200px;
}
#pl1 {
float:left;
margin:20px;
}
#pl2 {
float:right;
margin:280px 20px 0 20px;
}
</style>
</head>
<body>
<div id="conteneur">
<div id="pl1">
<script type="text/javascript">
RadioBlog.playlist = 'http://URL/playlist.php';
RadioBlog.width = '200px';
RadioBlog.height = '200px';
RadioBlog.color.body = '#ECECEC';
RadioBlog.color.border = '#BBBBBB';
RadioBlog.color.button = '#999999';
RadioBlog.color.player_text = '#666666';
RadioBlog.color.playlist_text = '#666666';
RadioBlog.cover = '0';
RadioBlog.autoplay.tracknum = '1';
RadioBlog.start();
</script>
</div>
<div style="float:left; width:280px; height:500px; background-color:#f5fffa;">
<p>Et ici, autre chose.</p>
</div>
<div id="pl2">
<script type="text/javascript">
RadioBlog.playlist = 'http://URL/playlist.php';
RadioBlog.width = '200px';
RadioBlog.height = '200px';
RadioBlog.color.body = '#ffd39b';
RadioBlog.color.border = '#8b7355';
RadioBlog.color.button = '#cdba96';
RadioBlog.color.player_text = '#8b7e66';
RadioBlog.color.playlist_text = '#8b7e66';
RadioBlog.cover = '0';
RadioBlog.autoplay.tracknum = '3';
RadioBlog.start();
</script>
</div>
<div style="clear:both;"></div>
</div>
</body>
</html>Est-ce que ça marche ?
+
float