Results 1 to 4 of 4

Thread: Just a resize

  1. #1
    Join Date
    Feb 2007
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Just a resize

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

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

    3) Describe problem: I have been looking for ages how to resize an iframe(which can be resized by resizing a div and not the frame) when i came accross this.

    I've tried for ages to edit the script just so i can use the resize feature with no luck

    Can someone please assist me in doing this?

    I need the script to work like this:

    <div id="something">
    <iframe width="100%" height="100%">
    </iframe>
    <div id="resize>DRAG THIS DOWN TO INCREASE THE SIZE OF THE IFRAME</div>
    </div>
    note: i only want the height to be changed.

    THANKS A LOT

  2. #2
    Join Date
    Feb 2007
    Posts
    293
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Do you mean a way a viewer of the page can re-size an iframe? Why not just do it with a link that re-sizes the iframe itself? You would be able to do that with javascript
    Last edited by Veronica; 06-21-2007 at 11:47 PM.

  3. #3
    Join Date
    Feb 2007
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yes, however it is hard to explain why it needs to drag down. Its to do with what the page is. I can do the link one but this way would be a lot better.

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

    Default

    Hi Tabo:
    I understand what you're asking, but there's no easy way to convert the DHTML window script to just resize DIVs and do nothing else. You may want to do a search on Google for div resize using Javascript.

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
  •