ciao a tutti,
sto usando una funzione che mi crea al volo un div :
<script type="text/javascript">
function creatediv(id, html, width, height, left, top) {
var t = document.getElementById('test');
t.parentNode.removeChild(t);
var newdiv = document.createElement('div');
newdiv.setAttribute('id', id);
if (width) {
newdiv.style.width = width;
}
if (height) {
newdiv.style.height = height;
}
if ((left || top) || (left && top)) {
newdiv.style.position = "absolute";
if (left) {
newdiv.style.left = left;
}
if (top) {
newdiv.style.top = top;
}
}
newdiv.style.background = "";
newdiv.style.border = "0px solid #000";
if (html) {
newdiv.innerHTML = html;
} else {
newdiv.innerHTML = "nothing";
}
document.body.appendChild(newdiv);
}
</script>
In questo modo il posizionamento del livello è dato dai parametri che passo quando lo chiamo: onLoad="creatediv('test', '<iframe src=result.php width=790 height=550 frameborder=0></iframe>', 720, 600, 435, 0)" rel="nofollow">
so però che è possibile posizionare il div in un punto preciso della pagina, ad esempio in una cella di una tabella, qualcuno saprebbe darmi qualche indicazione?
grazie mille a tutti

Rispondi quotando