Feed on Posts or Comments

Personal Daantje on 20 Dec 2006 09:50 pm

dhtmlPopWindow

Wrote this script, cause I needed something to fool the popup killers. This script pops a DHTML div with an iframe with the given page. The popped window appears always in the center of the window/frame. But it’s draggable across the window/frame. All the layout can be done with a CSS style sheet. This is what I needed till now, but this script could be somewhat better. Check the todo list in the source…

LICENSE:

GPL (http://www.gnu.org/licenses/gpl.txt)

SUPPORT:

Please report any bugs to me at daantje dot nl

DONATE:

Please support this project by paypal donations, (my email is my paypal address)

Help me develop this and other projects. Donate to the good cause.
donation button

DOWNLOAD:

Download and untar the file (tar -zxvf dhtmlPopWindow.tgz), upload it and point your browser to one of the examples. Windows users can use WinRAR to decompress the file.

EXAMPLE

There is an example and documentation included in the package.

Click me

4 Responses to “dhtmlPopWindow”

  1. on 10 Mar 2007 at 5:23 am 1.baracat said …

    nice script. I change de layout for you. Look that

    http://www.portifoliovirtual.com.br/dhtmlPopWindowNewLayOut.zip

    became a litle beatiful

  2. on 11 Mar 2007 at 10:22 am 2.Daantje said …

    Cool!

  3. on 12 Mar 2007 at 10:21 pm 3.Daantje said …

    But there is a bug in your version!

    popwiniframe.style.width = w - 2 + ‘px’;
    //popwiniframe.style.height = h + ‘px’;

    This won’t give me the right size! Change back to original!

    popwiniframe.style.width = w + ‘px’;
    popwiniframe.style.height = h + ‘px’;

    And set the iframe border in the CSS
    #popwiniframe {}

  4. on 04 Aug 2008 at 6:03 pm 4.zapatilla said …

    Thanks Daantje!… your code still perfectly working in 2008…

Trackback | Comments RSS Feed

Leave a Reply

You must be logged in to post a comment.