Advertisement
Guest User

Untitled

a guest
Sep 21st, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function changeBGImage(whichImage){
  2. //DICHIARO L'OGGETTO
  3. var ajax = new XMLHttpRequest();
  4. //APRO UNA CONNESSIONE CON LA PAG PHP
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement