Results 1 to 3 of 3

Thread: how can i use 2 iframe in 1 page

  1. #1
    Join Date
    Jul 2007
    Posts
    59
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default how can i use 2 iframe in 1 page

    1) Script Title:
    iframe ssi II
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...iframessi2.htm
    3) Describe problem:
    can i use 2 iframe in 1 page with different target thx

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Code:
    //Input the IDs of the IFRAMES you wish to dynamically resize to match its content height:
    //Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:
    var iframeids=["myframe1", "myframe2"]
    and:

    Code:
    <iframe id="myframe1" src="somepage.htm" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe>
    
    <iframe id="myframe2" src="anotherpage.htm" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe>
    Once you have that stuff, you can use:

    Code:
    <a href="javascript:loadintoIframe('myframe1', 'some.htm')">Link</a>
    and:

    Code:
    <a href="javascript:loadintoIframe('myframe2', 'another.htm')">Link</a>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2007
    Posts
    59
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    thx dude

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
  •