Codice PHP:
var immagine document.getElementById("img");