Results 1 to 2 of 2

Thread: DHTML Window widget dragging

  1. #1
    Join Date
    Jun 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question DHTML Window widget dragging

    1) Script Title:
    DHTML Window widget (v1.03)

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...ndow/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

  2. #2
    Join Date
    Jun 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    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";

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •