Ouai, des bannière qui s'affiche aléatoirement à chaque chargement de page
Y'a pas grand chose à rajouter
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="images/Header_Bg.gif"> </td>
<td width="770" height="163" background="C'EST ICI QUE JE VEUX METTRE MA BANNIERE QUI CHANGE ALEATOIREMENT">
<table width="690" height="120" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="430" height="80"> </td>
<td width="260" height="80"> </td>
</tr>
<tr>
<td width="430" height="40"> </td>
<td width="260" height="40"><table width="260" height="38" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="6" height="38"><img src="images/recherche_Droit.gif" width="6" height="38" /></td>
<td height="38" valign="middle" background="images/recherche_Bg.gif"><table width="225" height="10" border="0" align="center" cellpadding="0" cellspacing="0">
J'ai essayé de ne pas mettre le script dans la balise background mais à après, ça marche très bien mais le site est déformé
Quand au script, voilà la totalité :
<html>
<head>
<!-- DEBUT DU SCRIPT -->
<SCRIPT LANGUAGE="JavaScript">
/*
SCRIPT EDITE SUR L'EDITEUR JAVASCRIPT
<a href="http://www.editeurjavascript.com" target="_blank">http://www.editeurjavascript.com</a>
*/
var nbimage= 70;
var width;
var height;
var url;
var alte;
function banniere()
{
numimage= Math.round(Math.random()*(nbimage-1)+1);
if (numimage <= 10)
{
gotosite = "";
url = "images/header.jpg";
alte = "";
}
if (numimage > 10 && numimage <= 20)
{
gotosite = "";
url = "images/header_ara.jpg";
alte = "";
}
if (numimage > 20 && numimage <= 30)
{
gotosite = "";
url = "images/header_japs1.jpg";
alte = "";
}
if (numimage > 30 && numimage <= 40)
{
gotosite = "";
url = "images/header_obama.jpg";
alte = "";
}
if (numimage > 40 && numimage <= 50)
{
gotosite = "";
url = "images/header_saix.jpg";
alte = "";
}
if (numimage > 50 && numimage <= 60)
{
gotosite = "";
url = "images/header_tag.jpg";
alte = "";
}
if (numimage > 60)
{
gotosite = "";
url = "images/header_japs2.jpg";
alte = "";
}
if(gotosite != "")
{
document.write ('<A HREF="' + gotosite + '">');
}
document.write('<IMG SRC="' + url + '" ALT="' + alte + '" BORDER=0>')
if(gotosite != "")
{
document.write('</A>')
}
}
</SCRIPT>
<!-- FIN DU SCRIPT -->
</head>
<body>
<SCRIPT language="JavaScript">
banniere();
</SCRIPT>
</body>
</html>
Merci !