View difference between Paste ID: JyfmQ03b and 3VGcxymZ
SHOW: | | - or go back to the newest paste.
1-
1+
2
	//DICHIARO L'OGGETTO
3
	var ajax = new XMLHttpRequest();
4-
	ajax.open("get", "imposto_cookie.php?valore=" + whichImage, true);
4+
5
	ajax.open("get", "imposto_cookie.php?valore=" + backImage[whichImage], false);
6
	//INVIO LA RICHIESTA
7
	ajax.send(null);
8
	if (document.body){
9
		document.body.background = backImage[whichImage];
10
	}
11
}