j - } function repositionit() { var mydiv =

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function positionit() { var mydiv = document.getElementById("mydiv"); mydiv.style.border = '1px solid'; mydiv.style.zIndex = 1; var i = parseInt( document.body.clientWidth /2) - 364; mydiv.style.left = (i ? i : '0') + 'px'; setInterval("repositionit()", 100)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } function repositionit() { var mydiv = document.getElementById("mydiv"); var i = parseInt( document.body.clientWidth /2) - 364; mydiv.style.left = (i ? i : '0') + 'px'; mydiv.style.top = document.body.scrollTop + 'px'; }...
View Full Document

Ask a homework question - tutors are online