Bannière Rotative [Réglé] - Forums de discussion
Navigation
Accueil du forum
» Javascript » Bannière Rotative [Réglé]
Le sujet
Bannière Rotative [Réglé]Par
yann31140, le Samedi 30/09/2006 à 11h58'23
8 messages
Bonjour à tous et à toutes je cherche un script pour afficher plusieurs banniere sur mon site ratativement sur un meme bandeau !
En vous remerciant
Yann
________________
[URL=http://www.codes-gratuits.org]Gagner des codes[/URL]
Les réponses

Par
unit, le Samedi 30/09/2006 à 15h22'44
104 messages
Bon à l'arrache ça donne :
<?
$sponso[0] = array('http://www.site.com','http://www.site.com/img/ban.gif');
$sponso[1] = array('http://www.truc.fr','http://www.truc.fr/img/ban2.gif');
$sponso[2] = array('http://www.site.net','http://www.site.net/img/ban3.jpg');
$sponso[3] = array('http://www.machin.info','http://www.machin.info/img/ban4.gif');
$affiche=rand(0, 3);
echo "<a href=\"".$sponso[$affiche][0]."\" target=\"_blank\"><img src=\"".$sponso[$affiche][1]."\" alt=\"\" /></a>";
?>
________________
Fabrice FOURNET (SARL CREATIVE ONLINE)
Statut:
Administrateur/Webmaster

Par
yann31140, le Samedi 30/09/2006 à 16h29'15
8 messages
<?
$sponso[0] = array('http://www.site.com','http://www.site.com/img/ban.gif');
$sponso[1] = array('http://www.truc.fr','http://www.truc.fr/img/ban2.gif');
$sponso[2] = array('http://www.site.net','http://www.site.net/img/ban3.jpg');
$sponso[3] = array('http://www.machin.info','http://www.machin.info/img/ban4.gif');
$affiche=rand(0, 3);
echo "<a href=\"".$sponso[$affiche][0]."\" target=\"_blank\"><img src=\"".$sponso[$affiche][1]."\" alt=\"\" /></a>";
?>
si je le pose comme sa ke je remplace les liens bien sur

cela ne fait rien mes bannieres ne s'affiche pas :S
Merci Encore
Yann
________________
[URL=http://www.codes-gratuits.org]Gagner des codes[/URL]

Par
unit, le Samedi 30/09/2006 à 17h46'58
104 messages
________________
Fabrice FOURNET (SARL CREATIVE ONLINE)
Statut:
Administrateur/Webmaster

Par
raptor, le Samedi 30/09/2006 à 19h55'00
2217 messages
yann31140 à dit:
<?
$sponso[0] = array('http://www.site.com','http://www.site.com/img/ban.gif');
$sponso[1] = array('http://www.truc.fr','http://www.truc.fr/img/ban2.gif');
$sponso[2] = array('http://www.site.net','http://www.site.net/img/ban3.jpg');
$sponso[3] = array('http://www.machin.info','http://www.machin.info/img/ban4.gif');
$affiche=rand(0, 3);
echo "<a href=\"".$sponso[$affiche][0]."\" target=\"_blank\"><img src=\"".$sponso[$affiche][1]."\" alt=\"\" /></a>";
?>
si je le pose comme sa ke je remplace les liens bien sur

cela ne fait rien mes bannieres ne s'affiche pas :S
Merci Encore
Yann
Fait voir ta page ou il y a le script ^^
________________
Fondateur de Net-Pratique,
Ancien webmaster.
Statut:
Administrateur/Webmaster

Par
1cyril, le Samedi 30/09/2006 à 19h56'27
870 messages
________________
Le Modérateur de Net-Pratique.
Statut:
Modérateur

Par
yann31140, le Dimanche 01/10/2006 à 10h23'40
8 messages
C'est bon cela marche ! J'ai du faire une erreur en recopiant le script ! Merci a vous !
Yann
________________
[URL=http://www.codes-gratuits.org]Gagner des codes[/URL]
Pages
A lire également
- Les conditions générales d'utilisation du site
Top-sites membres
Discussions récentes dans les forums