Bonjour,
Je ne suis pas super calé mais je vais vous expliquer mon probleme.
Voila j'ai créé une barre défilante avec la balise <MARQUE>, cette barre defilante fait appel a un fichier XML stocké sur un serveur externe.
Mon probleme, je voudrais juste afficher les messages des membres, car actuellement la barre affiche aussi la largeur et aussi la hauteur ... comment exclure certaine balise ?
l'exemple de mon code actuel:
---------------------------------
--------------------------------------------------------------------------
<table cellpadding="0" cellspacing="0" align="right" height="25px" style=" color:#FFFFFF; ">
<tr>
<td valign="middle" align="right">
<img src="image.png">
</td>
<td valign="middle" height="25px" width="470">
<div style="font-family:Verdana; font-size:14px; color:white; background-color:black; padding:0; border-top-width:1px; border-bottom-width:1px; border-top-color:black; border-bottom-color:black; border-top-style:solid; border-bottom-style:solid; height:25;">
<marquee align="middle" scrolldelay="120" scrollamount="5" OnMouseOver="this.stop()" OnMouseOut="this.start()" DIRECTION="left">
<?php
# Configuration
$fichier_xml = "http://www.optelo.com/sms/xml/dedicace_385.xml"; # Placez ici l'adresse du flux
$nombre_limite = 20; # Nombre maximum d'éléments à afficher
# Affichage du Flux
$raw = file_get_contents($fichier_xml);
if ($raw) {
if(eregi("<dedicace>(.*)</dedicace>",$raw,$rawitems)){
$items = explode("<dedicace>", $rawitems[0]);
$nb = count($items);
$maximum = (($nb-1) < $nombre_limite) ? ($nb-1) : $nombre_limite;
for ($i=0;$i<$maximum;$i++) {
eregi("<texte>(.*)</texte>",$items[$i+1], $texte);
echo " ".$texte[1]." ";
}
}
}
?>
</marquee>
</div>
</td>
</tr>
</table>
--------------------------------------------------------------------------
---------------------------------
Configuration: Windows XP
Firefox 2.0.0.8