+ Reply to Thread
Results 1 to 13 of 13

Thread: Multiple iFrames
      
   

  1. #1
    Nikola is offline Private
    Join Date
    Aug 2006
    Posts
    2

    Default Multiple iFrames

    Hi everyone!

    I have recently started using BlueVoda for designing webpages and I just love it! Unfortunatelly I am stuck with a problem.

    Lets say I have a vertical navigation bar on the left and two iFrames on the main page. How can I achieve that when I click one item on the navigation bar, two different pages appear, each in its own iFrame? Is this possible?

    Thanx!

    Nikola

  2. #2
    Nyoman is offline Major
    Join Date
    Sep 2005
    Location
    heavenly-temple
    Posts
    426

    Default Re: Multiple iFrames

    Everything is possible ( I hope )
    you can open multiple Iframe but you need javascript to do this.
    Let's start with the simple one :
    • insert Iframe in your page (for sure you have to insert more than 1 IFrame)
    • Named your Iframe with whatever you want example one IFrame you called frameA and the other one is frameB
    • Now create navigation bar, button, text or whatever you want and in the link field you need to write this code:
    Code:
    http://www.yourdomain/page1.html" target="frameA" onclick="frameB.location.href='http://www.yourdomain/page2.html';
    • Change the page address with your real page
    • Done
    • That's simple, isn't it?
    .
    .
    Nyoman

  3. #3
    pemdas21 is offline Special Status
    Join Date
    May 2006
    Posts
    247

    Default Re: Multiple iFrames

    wouldn't it be fun to have an Iframe that goes to another Iframe that goes back to the original Iframe? It would be like looking into a mirror that has a mirror behind you so you have like a million pictures you see. *do I hear a pc dying?*

  4. #4
    Nikola is offline Private
    Join Date
    Aug 2006
    Posts
    2

    Thumbs up Re: Multiple iFrames

    Thanks a lot Nyoman!

  5. #5
    angeliq is offline Private
    Join Date
    Aug 2006
    Posts
    4

    Default Re: Multiple iFrames

    can i use this code to open more than 2 frame?

  6. #6
    bill2006's Avatar
    bill2006 is offline Lieutenant General
    Join Date
    May 2006
    Posts
    3,422

    Default Re: Multiple iFrames

    Sorta helps if you all post your websites so we can see what it is you need help with.

  7. #7
    Join Date
    Mar 2006
    Location
    Mallorca, Spain
    Posts
    6,313

    Default Re: Multiple iFrames

    Another small point is that the more I-frames you have the less the S.E´s will be able to view and therefore index your site.
    Also when viewers wish to bookmark something, they will not always return to the page/i-frame they expected......
    I-frames may appeal to some, but do you want a site that does the business
    or just looks cool?????

  8. #8
    angeliq is offline Private
    Join Date
    Aug 2006
    Posts
    4

    Default Re: Multiple iFrames

    I know this would be the answer. but the reason why i was asking is because i create website only as a hobby without counting that my web will be no.1 in search engine, i don't need that. although i see many website with frame they are leading on the top of the website without frame.Thank you for all the answer. always something new to learn everyday
    Site Under Construction

  9. #9
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,719

    Default Re: Multiple iFrames

    Hi, would this be possible with 3 or more iframes??. I have tried this, but with no joy.

    HTML Code:
    http://www.google.com" target="frameA" onclick="frameB.location.href='http://www.ebay.com" onclick="frameC.location.href'http://www.yahoo.com';
    Cheers.

  10. #10
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: Multiple iFrames

    Chris-
    I do not believe so. However, I believe it may be possible with the script / tutorial I wrote in the Tips/tricks section. I will give it a try and post what I find in the tutorial tomorrow.

    Andy
    PHP- is a blast!

  11. #11
    Nyoman is offline Major
    Join Date
    Sep 2005
    Location
    heavenly-temple
    Posts
    426

    Default Re: Multiple iFrames

    Hi all how are you???
    Nice to see so many new voda member

    back to the topic
    Yes you can use the code above to open IFrame as many as you want, by adding frameC.location.href='http://www.yourdomain/page3.html'; and if you want more just add frameD.....;frameE.......; etc. so the code will be like this:
    Code:
    http://www.yourdomain/page1.html" target="frameA" onclick="frameB.location.href='http://www.yourdomain/page2.html';frameC.location.href='http://www.yourdomain/page3.html';
    for bluevoda user use navigator bar, shape or image to open the link instead of text, because if you use text sometime the program didn't read this code

    Try!!!!!!!!
    .
    .
    Nyoman

  12. #12
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: Multiple iFrames

    Thanks Nyoman!! Always a pleasure to hear from ya.

    Cheers-

    Andy
    PHP- is a blast!

  13. #13
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,719

    Default Re: Multiple iFrames

    Well done Nyoman, thanks for doing the example, I spent ages looking for that on the net.

    Cheers,

    PS. Andy! Maybe a little one to add to your help pages Andy? Cheers.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49