Aide - Recherche - Membres - Calendrier
Version complète : Script Top referers
Forum Webmaster - Ton Webmaster > Conception de sites > Programmation
danny21
Bonjour,

je recherche un script gratuit de Top referers assez simple pour mon site. Je connais http://x3.xclicks.net/ mais c'est en anglais et je comprend pas grand chose.
Plus précisemment un top dans le même genre que www.mdrattitude.net (en haut à gauche).

Merci de votre aide smile.gif
Zef
Les référants ... je penses que çà convient parfaitement
Lacrasse
Pour clikz, rien de compliqué.

Il suffit de mettre dans un blok le grand code :



CODE
<script language="JavaScript">
<!--
//version 1.03 Copyright © http://www.xclicks.net
  et="More Pics Here"; // text when nothing available
  el="http://x2.xclicks.net/sc/out.php?s=1820"
  sl=new Array(); sh=new Array(); st=new Array();thpm=new Array();
  sn=new Array(); ns=new Array(); sd=new Array(); th=new Array();
  a="</a>"; af="<a target='_blank' ";
  ps="<img border='0' src=thumbs/";
  function dw(n) {document.write(n,"\n");}
  function showLink(n,s,b){if (!s){s='anc'} if (!b){b=''} else {b="&b="+b}
  ast =af+" class='"+s+"' href='"+el; n=n-1; if (sl[n]&&sl[n]!=""){
  dw(ast+"&o="+sl[n]+b+"'>"+sn[n]+a)}else{dw(ast+b+"'>"+et+a)}}
  function showThumb(n,b,tw,th){if (!tw){tw=66} if (!b){b=''} else {b="&b="+b}
  n=n-1; if (!st[n]||st[n]!=""){st[n]=n}if (!th){th=100} att=af+" href='"+el;
  if (sl[n] && sl[n]!=""){dw(att+"&o="+sl[n]+b+"'>")}else {dw(att+el+b+"'>");sn[n]=et}
  dw(ps+(n+1)+".jpg height='"+th+"' width='"+tw+"' alt='"+sn[n]+"'>"+a)}
  function showHitsIn(n){n=n-1; if (sh[n]&& sh[n]!=""){dw(sh[n])}}
  function showHitsOut(n){n=n-1; if (so[n]&& so[n]!=""){dw(so[n])}}
  function showHotpic(n,pw,ph){if (!pw){pw=''} else {pw=" width='"+pw+"'"}
  if (!ph){ph=''} else {ph=" height='"+ph+"'"}n=n-1; if (ns[n]&& ns[n]!=""){
  dw(ps+ns[n]+".gif"+pw+ph+">")}}
  //theese functions work with a css with .anc and .thm classes
  elth='http://x2.xclicks.net/sc/xth.php?s=1820';
  function showXThumb(n){n=n-1; att=af+" href='"+elth;
  if (th[n] && th[n]!=""){ath=af+" href='"+elth; dw(ath+"&th="+th[n]+"'>");
altp=""; altm="";
if (thpm[n]) {pm=thpm[n].split("/");  
  if (pm[0]!=0) altp="Pics: "+pm[0]+" ";
  if (pm[1]!=0) altm="Movies: "+pm[1]+" ";}
  dw("<img class='thx' border='0' src='"+ThURL+th[n]+"'"+SiZe+" alt='"+altp+altm+"'>"+a)}}
  //-->
</script>
<script language="JavaScript" src="http://x2.xclicks.net/js/x1820.js"></script>


Ensuite, tu met le petit script :

CODE
<script LANGUAGE="JavaScript">
<!-- //version 2.01 Copyright © http://www.xclicks.net
xclreff=escape(top.document.referrer); xclExpDt=new Date (); xclExpDt.setTime(xclExpDt.getTime() + 43200000000);
if (document.cookie.length > 0 && document.cookie.indexOf('xclbktst')>=0) {
if (!xclreff) {xclreff="Bookmarks"}
}else {document.cookie = 'xclbktst=1; expires='+xclExpDt.toGMTString()+'; path=/';}
document.write("<img border=0 src=\"http://x2.xclicks.net/sc/ct.php?s=1820&l="+xclreff+"\" height=1 width=1>"); //-->
</SCRIPT>


Et ensuite l'affichage des liens avec ces scripts :

CODE
<script language="JavaScript"> showLink(1)</script><br>
<script language="JavaScript"> showLink(2)</script><br>
<script language="JavaScript"> showLink(3)</script><br>
<script language="JavaScript"> showLink(4)</script><br>
<script language="JavaScript"> showLink(5)</script>


Et tous ces codes a la suite te permette de faire un top ;)
C\'est une version "bas débit" de notre forum. Pour voir la version complète avec plus d\'information, la mise en page et les images, veuillez cliquez ici.
Invision Power Board © 2001-2012 Invision Power Services, Inc.