PDA

View Full Version : DHTML Window widget dragging



hayleye
07-11-2007, 11:24 AM
1) Script Title:
DHTML Window widget (v1.03)

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm

3) Describe problem:
When sourcing an iframe and dragging the window the script hides the iframe.

This is the part of the script where this happens:
if (t.contentarea.datatype=="iframe"){ //if content of this window div is "iframe"
t.style.backgroundColor="#fff" //colorize and hide content div (while window is being dragged)
t.contentarea.style.visibility="hidden"
}

And then an accompanying onmouseup shows the iframe again

What I would like to know is can I just hide a specified id inside that iframe, rather than the whole thing?

I am struggling to figure out how. Can anyone help?

Thanks,
Hayley

hayleye
07-11-2007, 02:29 PM
I have figured it out, I gave my iframe an id and did this:
if (t.contentarea.datatype=="iframe"){
f = document.getElementById("contentframe");
f.contentWindow.document.getElementById("attributes").style.visibility="hidden";