<?php
/*********************************************
* (c) K E W L D E V T E A M
*
* Nom du fichier : kbans.php
* Version du fichier : 1
* Date de creation : 04/05/0004
* Derniere modif : 04/05/2004
* Auteur (mail) : Darko (darkfeoux@hotmail.com)
* Commentaires : Affichage de bannières aléatoire
*
********************************************/
srand((double)microtime()*1000000);
$bans = "kbans.txt";
$bans = file($bans);
$select = rand(0, count($bans)-1);
$banner = explode("|", $bans[$select]);
echo "<a href=\"$banner[1]\" target=\"_blank\"><img src=\"$banner[0]\" border=0></a>";
?>
http://www.wipub.com/affichage.php?id_annonceur=1020&visuel=6956&id_affilie=5147|http://www.wipub.com/clic.php?id_annonceur=1020&visuel=6956&id_affilie=5147
http://www.wipub.com/affichage.php?id_annonceur=949&visuel=6869&id_affilie=5147|http://www.wipub.com/clic.php?id_annonceur=949&visuel=6869&id_affilie=5147
http://www.wipub.com/affichage.php?id_annonceur=385&visuel=3235&id_affilie=5147|http://www.wipub.com/clic.php?id_annonceur=385&visuel=3235&id_affilie=5147
http://www.wipub.com/affichage.php?id_annonceur=440&visuel=3243&id_affilie=5147|http://www.wipub.com/clic.php?id_annonceur=440&visuel=3243&id_affilie=5147
http://www.wipub.com/affichage.php?id_annonceur=440&visuel=4408&id_affilie=5147|http://www.wipub.com/clic.php?id_annonceur=440&visuel=4408&id_affilie=5147
deleter23 a dit:Parsque chez ovh si on mets pas l'extention php, ca marche pas.
darkbob a dit:Essaie avec ça : http://www.flash-here.com/downloads/randomad.html
Fait juste faire attention de mettre le code des bannières sur une seule ligne dans le fichier texte.
deleter23 a dit:Le script que j'ai trouvé il fait la meme chose mais en javascript.
Body:
<script language="javascript" src="ejs_ban.js"></script>
Fichier js:
ejs_banurl = new Array;
ejs_banimageUrl=new Array;
ejs_banimageUrl[0] = "http://visuel.directivepub.com/tracking/visuels/1042.gif";
ejs_banurl[0] = "http://www.directivepub.com/tracking/cpc.php?idv=1042&ids=5805&idc=119";
ejs_banimageUrl[1] = "http://www.kitgrafik.com/img/468x60_kitgrafik_1.gif";
ejs_banurl[1] = "http://www.cibleclick.com/cibles/clicks/symp.cfm?site_id=92317478&friend_id=841756629&banniere_id=14329";
ejs_banimageUrl[2] = "http://www.partnershop.fr/img/affiliation/6/3/468x60LPSWebmasters_FR.gif";
ejs_banurl[2] = "http://www.partnershop.fr/?parent_id=2990&mid=85&url=";
ejs_banimageUrl[3] = "http://www.directivepub.com/tracking/visuels/239.gif";
ejs_banurl[3] = "http://www.directivepub.com/tracking/parrainage.php?idsup=5000";
ejs_banimageUrl[4] = "http://sivit.fr/bandeaux/bandeau1.gif";
ejs_banurl[4] = "http://sivit.fr/index-fr.php?click=12010";
affiche = false;
function AffichePub()
{
if(!affiche)
{
numimage= Math.round(Math.random()*(ejs_banurl.length-1));
document.write ('<A HREF="#" onClick="window.open(ejs_banurl[numimage],\'_blank\')"><IMG SRC="' + ejs_banimageUrl[numimage] + '" BORDER=0 NAME=ejs_banpub></A>')
affiche = true;
}
else
{
if(numimage == (ejs_banurl.length-1))
numimage = 0;
else
numimage++;
document.ejs_banpub.src=ejs_banimageUrl[numimage];
}
setTimeout("AffichePub()",20000);
}
AffichePub();
Parsque chez ovh si on mets pas l'extention php, ca marche pas.
➡️ Offre MyRankingMetrics ⬅️
pré-audit SEO gratuit avec RM Tech (+ avis d'expert)
coaching offert aux clients (avec Olivier Duffez ou Fabien Faceries)
Voir les détails ici