Multiple iFrames

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Nikola
    Private

    • Aug 2006
    • 2

    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
  • Nyoman
    Major

    • Sep 2005
    • 426

    #2
    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://[B]www.yourdomain/page1.html[/B]" target="frameA" onclick="frameB.location.href='http://[B]www.yourdomain/page2.html[/B]';
    • Change the page address with your real page
    • Done
    • That's simple, isn't it?
    .
    .
    Nyoman

    Comment

    • pemdas21
      Special Status

      • May 2006
      • 247

      #3
      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?*

      Comment

      • Nikola
        Private

        • Aug 2006
        • 2

        #4
        Re: Multiple iFrames

        Thanks a lot Nyoman!

        Comment

        • angeliq
          Private

          • Aug 2006
          • 4

          #5
          Re: Multiple iFrames

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

          Comment

          • bill2006
            Lieutenant General

            • May 2006
            • 3421

            #6
            Re: Multiple iFrames

            Sorta helps if you all post your websites so we can see what it is you need help with.
            Bill
            www.blueearthtea.com
            www.ftaaconsulting.com
            www.iaval.com
            www.theemeraldbay.com

            Comment

            • davidundalicia
              General

              • Mar 2006
              • 6294

              #7
              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?????
              Have fun
              Regards..... David

              Step by Step Visual Tutorials for the complete beginner
              Newbies / Beginners Forum
              FREE Membership Login Scripts: - Meta Tags Analyzer
              My Social Networking Site - Free Contact Forms
              Finished your New website!! Now get it noticed Here:

              Comment

              • angeliq
                Private

                • Aug 2006
                • 4

                #8
                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

                Comment

                • Collectors-info
                  General

                  • Feb 2006
                  • 8703

                  #9
                  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.
                  Regards Chris.

                  Collectables, Collecting, collectors-info.com

                  www.chrismorris.co.uk

                  House build project

                  Comment

                  • Andy128
                    Major General

                    • Dec 2005
                    • 2317

                    #10
                    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!

                    Comment

                    • Nyoman
                      Major

                      • Sep 2005
                      • 426

                      #11
                      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:
                      [LEFT]http://[B]www.yourdomain/page1.html[/B]" target="frameA" onclick="frameB.location.href='http://[B]www.yourdomain/page2.html[/B]';frameC.location.href='http[B]://www.yourdomain/page3.html'[/B];[/LEFT]
                      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

                      Comment

                      • Andy128
                        Major General

                        • Dec 2005
                        • 2317

                        #12
                        Re: Multiple iFrames

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

                        Cheers-

                        Andy
                        PHP- is a blast!

                        Comment

                        • Collectors-info
                          General

                          • Feb 2006
                          • 8703

                          #13
                          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.
                          Regards Chris.

                          Collectables, Collecting, collectors-info.com

                          www.chrismorris.co.uk

                          House build project

                          Comment

                          Working...
                          X