1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| <script language="javascript" type="text/javascript">
<!--
function setCookie(cookieName,cookieValue) {
document.cookie = cookieName + "=" + escape(cookieValue);
}
function getCookie(cookieName) {
var cookieDataBeg, cookieDataEnd;
cookieDataBeg = document.cookie.indexOf(cookieName + "=");
if (cookieDataBeg >= 0) {
cookieDataBeg += cookieName.length + 1;
cookieDataEnd = document.cookie.indexOf(";",cookieDataBeg);
if (cookieDataEnd < 0) cookieDataEnd = document.cookie.length;
return unescape(document.cookie.substring(cookieDataBeg,cookieDataEnd));
}
return "";
}
function checkCookie() {
var cookData = getCookie('popUnderEI');
if ( cookData == "" ) {
openSiteUnder();
setCookie('popUnderEI','true');
}
}
function openSiteUnder() {
var siteUnder = window.open('http://www.google.fr', 'nompopup', 'directories=yes, menubar=yes, status=yes, scrollbars=yes, menubar=yes, toolbar=yes, width=' + screen.availWidth + ', height=' + screen.availHeight + ', scrollbars=1');
if(siteUnder) {
siteUnder.blur();
window.focus();
}
}
//-->
</script> |
Partager