olive457
dimanche 2 novembre 2003 à 17:13
Salut à tous,
Personnellement, j'ai une astuce pour ne mettre qu'un logo Xiti qui compte toutes les pages...
J'utilise les pseudo-frames en php, et dans mon fichier de bas de page j'insère le logo de Xiti en y récupérant la rubrique associée à la page appelée par un simple echo en php...
Pour la variable p je la renseigne en y collant le code suivant:
CODE
<? if($rubrique){echo $rubrique;}else{echo "accueil";}?>
exemple:
CODE
<script type="text/javascript">
<!--
hsh = new Date();
hsd = document;
hsr = hsd.referrer.replace(/[<>]/g, '');
hsi = '<a href="http://www.xiti.com/xiti.asp?s=*****"';
hsi += ' TARGET="_top"><img width="39" height="25" border=0 ';
hsi += 'src="http://logv11.xiti.com/hit.xiti?s=*****';
hsi += '&p=[B]<? if($rubrique){echo $rubrique;}else{echo "accueil";}?>[/B]';
hsi += '&hl=' + hsh.getHours() + 'x' + hsh.getMinutes() + 'x' + hsh.getSeconds();
if(parseFloat(navigator.appVersion)>=4)
{Xiti_s=screen;hsi += '&r=' + Xiti_s.width + 'x' + Xiti_s.height + 'x' + Xiti_s.pixelDepth + 'x' + Xiti_s.colorDepth;}
hsd.writeln(hsi + '&ref=' + hsr.replace(/&/g, '$') + '" title="Mesurez votre audience"></a><\!--');
//-->
</script>
<noscript>
<a href="http://www.xiti.com/xiti.asp?s=*****" TARGET="_top"><img width="39" height="25" border=0 src="http://logv11.xiti.com/hit.xiti?s=*****&p=&" title="Mesurez votre audience"></a>
</noscript>
ça marche parfaitement...je n'ai qu'à l'insérer une fois et ça évite de l'insérer au milieu de la page en pseudos frames
A plus
Olive