<div id="box1" onclick="show_text('box1');">
<img src="box1.png">
box1 = document.getElementById('box1');
function show_text(button_id)
{
if(button_id == 'box1')
{
document.getElementById('text').innerHTML = '<p>Текст</p>';
}
}
box1.style.position = "absolute";
box1.style.top = "100px";
box1.style.left = "200px";