Ho creato questi codici, ma non capisco cosa non va:
Codice HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Post-it Habbo by #€xabyte</title>
<script language="text/javascript">
var e = document.getElementById();
function celeste(id) {
e.style.background = "img/postceleste.png";
}
function verde(id) {
e.style.background = "img/postverde.png";
}
function viola(id) {
e.style.background = "img/postviola.png";
}
function giallo(id) {
e.style.background = "img/postceleste.png";
}
</script>
<link href="post.css" type="text/css" rel="stylesheet">
</head>
<body>
<div class="postceleste" id='post'>
<div class="icon"><div class="buttonceleste"></div><div class="buttonverde" onclick="verde('post');"></div><div class="buttonviola" onclick="viola('post');"></div><div class="buttongiallo" onclick="giallo('post');"></div></div>
<div class="testo">
Made from #€xabyte
</div></div>
</body>
</html>
Dove è l' errore?