Draggable Inline Popups
July 09, 2004
First of all, thank you everyone for the feedback on inline popups. Ruben pointed out that if you have a scrollbar present (your may have to resize your browser) that you can scroll past the overlay div. James from New Zealand emailed me a solution that would expand the overlay div with javascript. All you have to do is add this to the page.
function showScreen(){
document.getElementById("screen").style.height = »
document.body.clientWidth + "px";
document.getElementById("screen").style.width = »
document.body.scrollWidth + "px";}
showScreen()
Let us move on now and make this a draggable popup. First, I don’t think it is necessary to make the popup draggable if you design it right. However, if you want to make that layer drag, all you have to do is add a little javascript and ‘ta da’. Mike Hall of Brain Jar has a great cross-browser draggable script that I used.

Holy Smokes! That’s the most lovable creation I’ve seen in a long, long, time. Hats off for a fine job.
Posted on Jul. 9, 2004 10:35 #