Forum-webmaster
Technique - programmation => PHP / MySQL => Message commencé par: r88 le le 31-10-2010 a 16:16:11

Titre: Probleme affichage banniere
Posté par: r88 le le 31-10-2010 a 16:16:11

Bonjour,

J'utilise un script pour afficher des bannieres aléatoirement :

Fonction : <?php include('banniere-aleatoire.inc.php'); ?>   pour inserer sur la page

et le fichier : banniere-aleatoire.inc.php :

<?php

$tabBannieres = array(
1 => array('http://www.xxx.fr','http://www.xxxxx/publicite1.gif',),
2 => array('http://www.xxx.fr','http://www.xxxxx/publicite1.gif',),
3 => array('http://www.xxx.fr','http://www.xxxxx/publicite1.gif',), );
/****************************************************
Détermination de la banniere à afficher
*****************************************************/
   $choix = 1;
   $choix = array_rand($tabBannieres, 1);
   /****************************************************
    Affichage des bannieres
   *****************************************************/
   echo '<a href="', $tabBannieres[$choix][0] ,'" title="', $tabBannieres[$choix][2] ,'">';
   echo '<img src="', $tabBannieres[$choix][1] ,'" alt="', $tabBannieres[$choix][2] ,'" />';
   echo '</a>';
   
   ?>   


Mon probleme est que les bannieres affichées sont entourés d'une bordure.
Comment supprimer cette bordure ?

MERCI d'avance pour vos conseils,

Titre: Re:Probleme affichage banniere
Posté par: souifi le le 31-10-2010 a 19:09:22


Code:
echo '<img src="' . $tabBannieres[$choix][1] . '" alt="' . $tabBannieres[$choix][2] . '" style="border:0" />

Titre: Re:Probleme affichage banniere
Posté par: r88 le le 01-11-2010 a 10:20:26

Merci souifi :)


Forum-webmaster | Actionné par YaBB SE
© 2001-2003, YaBB SE Dev Team. Tous droits réservés.