PDA

Voir la version complète : Bannière swf et gif


Edellion
25/05/2007, 19h07
Bonjour,

Je souhaiterais mettre en place une bannière avec une rotation de flash (swf) et une image animée en GIF.

Je ne trouve pas de script,

Merci par avance pour votre aide.

Cordialement

Edellion

Alt
26/05/2007, 16h23
A placer le code où tu veux :

<script LANGUAGE="JavaScript">

<!-- Begin
var how_many_ads = 10;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
txt="";
url="URL1.html";
alt="";
banner="images/1.jpg";
width="175";
height="151";
}
if (ad==2) {
txt="";
url="URL2.php";
alt="";
banner="images/2.gif";
width="175";
height="151";
}
if (ad==3) {
txt="";
url="URL3.htm";
alt="";
banner="images/3.jpg";
width="175";
height="151";
}
if (ad==4) {
txt="";
url="URL4.asp";
alt="";
banner="images/4.jpg";
width="175";
height="151";
}
if (ad==5) {
txt="";
url="URL5.html";
alt="";
banner="images/5.jpg";
width="175";
height="151";
}
if (ad==6) {
txt="";
url="URL6.html";
alt="";
banner="images/6.jpg";
width="175";
height="151";
}
if (ad==7) {
txt="";
url="URL7.html";
alt="";
banner="images/7.jpg";
width="175";
height="151";
}
if (ad==8) {
txt="";
url="URL8.html";
alt="";
banner="images/8.jpg";
width="175";
height="151";
}
if (ad==9) {
txt="";
url="URL9.html";
alt="";
banner="images/9.jpg";
width="175";
height="151";
}
if (ad==10) {
txt="";
url="URL10.html";
alt="";
banner="images/10.jpg";
width="175";
height="151";
}
document.write('<center>');
document.write('<a href=\"' + url + '\" target=\"_top\">');
document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0><br>');
document.write('<small>' + txt + '</small></a>');
document.write('</center>');
// End -->
</SCRIPT>

- 10 = Nombre d'images.

Ou bien voir ce produit "Banner Rotator" :
http://www.vbulletin.org/forum/showthread.php?t=133954

A+