Results 1 to 3 of 3

Thread: transparent dhtmlwindow with Iframe in IE

  1. #1
    Join Date
    Nov 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default transparent dhtmlwindow with Iframe in IE

    1) Script Title: DHTMLwindow widget

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

    3) Describe problem: allowTransparency="true" IE Iframe
    Hello,
    I know I am asking about an "old" script ,and I know IE SU.....(ups) , but could you please tell me if there is a possibility to have

    a DHTMLwindow wich contains an Iframe containing an external page without backgroundcolor in IExplorer, so the mainpage can be seen through.?

    This works fine in Firefox, Opera,..

    the iframe has no color , the external page has RGBA color to transparent + working filter for IE .


    I manage to view this page with transparent background through your other amazing good script Featured Content slider but not so calling the same page in
    the dhtmlwindow widgetscript.

    I try to put allowTransparency="true" with the parameters but I supose this is ommited... :
    Code:
    openbox01=function(){
    var op01= dhtmlwindow.open("box01", "iframe", "example222/example/index.php", "", "allowTransparency='true' ,position=relative,left=30px,top=0px,width=800px,height=340px,resize=0,scrolling=0,center=0", "recal");
    }
    could this be added in the .js ? sure it can not be done with css.

    is there a more recent script that could this make work? but DHTMLwindow Widget would just be fine!!!!


    kind regards,
    Ber

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Try directly modifying the iframe tag output by the DHTML window script with the attribute ALLOWTRANSPARENCY="true". Inside dhtmlwindow.js, add the code in red to the existing line:

    Code:
    t.contentarea.innerHTML='<iframe src="" style="margin:0; padding:0; width:100%; height: 100%" name="_iframe-'+t.id+'" ALLOWTRANSPARENCY="true"></iframe>'
    DD Admin

  3. #3
    Join Date
    Nov 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Solved

    thanks DDadmin for this quick , simple and clean and working solution. I finaly was going to try this , but you directed me just to the goal !
    it works!
    Ber

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
  •