Please start a new thread when asking a new question, even for the same script. This makes it easier for people reading and responding.
I'll try and get to a few of the new questions above here.
2) There's actually a reason the script hides the iframe content while the window is being dragged- it makes the dragging process more smooth in some browsers. But to disable it, just delete these two lines inside the .js file:
Code:
t.style.backgroundColor="#F8F8F8" //colorize and hide content div (while window is being dragged)
t.contentarea.style.visibility="hidden"
3) Sure, just find the three lines inside the .js file, and delete the highlighted portion in red:
Code:
if (etarget.className=="drag-handle") //if target element is "handle" div
d.move(etarget._parent, e)
else if (etarget.className=="drag-resizearea") //if target element is "resize" div
That should do it.
Cjppop, sure, a button within the iframe page to close the popup window would look something like:
Code:
<input type="button" value="Ok" name="B1" onClick="parent.mywindow.hide()" /></p>
where "mywindow" is the unique variable you assigned to dhtmlwindow.open() when invoking it.
Bookmarks