Простенкая рисовалка (Canvas pAINT) на канвасе: (в новом окне)Чуть позже я собираюсь написать статью о том, как я её писал.

var iframe = document.getElementById("caint"); iframe.onload = function() { var page = document.getElementById("page"); var close = document.createElement("a"); close.innerHTML = "x"; close.href = "javascript://"; close.style.position = "absolute"; close.style.right = "0.5em"; close.style.top = "0.5em"; close.style.color = "white"; var hide = function() { page.style.display = "block"; iframe.style.display = "none"; } close.onclick = hide; window.onpopstate = hide; iframe.contentDocument.body.appendChild(close); } function caintShow() { iframe.src="/public/misc/caint/"; var wp = document.getElementById("wpadminbar"); if(wp) wp.style.display = "none"; document.location.hash = "caint"; page.style.display = "none"; iframe.style.display = "block"; iframe.style.position = "fixed"; iframe.style.top = 0; iframe.style.left = 0; iframe.style.bottom = 0; iframe.style.right = 0; document.body.appendChild(iframe); return false; } document.getElementById("caintShow").onclick = caintShow;