Originariamente inviato da simo22
Ok, ok.
Copia e Incolla
||
||
\/
Codice PHP:
<script type="text/javascript"

function 
createCookie(name,value,days) { 
    if (
days) { 
        var 
date = new Date(); 
        
date.setTime(date.getTime()+(days*24*60*60*1000)); 
        var 
expires "; expires="+date.toGMTString(); 
    } 
    else var 
expires ""
    
document.cookie name+"="+value+expires+"; path=/"


function 
readCookie(name) { 
    var 
nameEQ name "="
    var 
ca document.cookie.split(';'); 
    for(var 
i=0;ca.length;i++) { 
        var 
ca[i]; 
        while (
c.charAt(0)==' 'c.substring(1,c.length); 
        if (
c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); 
    } 
    return 
null


function 
eraseCookie(name) { 
    
createCookie(name,"",-1); 
}

alert_cookie readCookie("contollaBorowser")
if (
alert_cookie == null){
createCookie("contollaBorowser"11)
}else {
if (/
Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ 
//test for Firefox/x.x or Firefox x.x (ignoring remaining digits);
var ffversion=new Number(RegExp.$1
// capture x.x portion and store as a number 
if (ffversion>=3document.write("You're using FF 3.x or above"
else if (
ffversion>=2document.write("You're using FF 2.x"
else if (
ffversion>=1document.write("You're using FF 1.x"

else 
document.write("n/a")

</script> 
simo...perchè non funziona?lo script per se funziona...quando inserico questo qui sopra il mess non mi appare più, nemmeno una volta,come mai???