MediaWiki:Sitenotice : Différence entre versions

De Wiki-Chats, encyclopédie numérique sur les chats
Aller à : navigation, rechercher
m
Ligne 41 : Ligne 41 :
  
 
</SCRIPT>
 
</SCRIPT>
<!-- FIN DU SCRIPT -->  
+
<!-- FIN DU SCRIPT -->
 +
<!-- DEBUT DU SCRIPT -->
 +
<SCRIPT LANGUAGE="JavaScript">
 +
function ScanCookie(variable)
 +
{
 +
cook = document.cookie;
 +
variable += "=";
 +
place = cook.indexOf(variable,0);
 +
if (place <= -1)
 +
return("0" );
 +
else
 +
{
 +
end = cook.indexOf(";",place)
 +
if (end <= -1)
 +
return(unescape(cook.substring(place+variable.length,cook.length)));
 +
else
 +
return(unescape(cook.substring(place+variable.length,end)));
 +
}
 +
}
 +
 
 +
function CreationCookie(nom,valeur,permanent)
 +
{
 +
if(permanent)
 +
{
 +
dateExp = new Date(2020,11,11);
 +
dateExp = dateExp.toGMTString();
 +
ifpermanent = '; expires=' + dateExp + ';';
 +
}
 +
else
 +
ifpermanent = '';
 +
document.cookie = nom + '=' + escape(valeur) + ifpermanent;
 +
}
 +
 
 +
if(ScanCookie("dejapopup2" )==0)
 +
{
 +
window.open('assur.html','Devis','toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=1, copyhistory=0, menuBar=1, width=400, height=400, left=300, top=100');
 +
CreationCookie("dejapopup2","oui",false)
 +
}
 +
 
 +
</SCRIPT>
 +
<!-- FIN DU SCRIPT -->
  
 
</html>
 
</html>

Version du 28 avril 2013 à 04:36