Jump to content


One link linked to 2 iframes


9 replies to this topic

#1 PSgirl

    P2L Staff

  • P2L Staff
  • PipPipPipPip
  • 2,055 posts
  • Gender:Female

Posted 30 June 2005 - 05:58 AM

I wonder if it is possible to have one link that opens two different pages in two different iframes...
For example, I have a layout like this:

Posted Image

A is an static frame, and B and C are both iframes. I want that a link in A open a page called menu1.htm in iframe B and a page called contents1.htm in iframe C, at the same time.
Is it possible?
Thanks in advance.

Edited by PSgirl, 30 June 2005 - 06:01 AM.


#2 djones

    Young Padawan

  • Members
  • Pip
  • 61 posts
  • Location:Winston-Salem, NC

Posted 30 June 2005 - 07:36 AM

BEHOLD! The power of google. I use to suck at searching google, but I got better. I still suck at it tho...

http://www.pageresou...html/frame4.htm
Example: http://www.pageresou...ml/frameex5.htm

#3 PSgirl

    P2L Staff

  • P2L Staff
  • PipPipPipPip
  • 2,055 posts
  • Gender:Female

Posted 30 June 2005 - 08:54 AM

I searched in google but I did't find it. Thanks for your help :)

#4 Jaymz

    Retired P2L Staff

  • Members
  • PipPipPipPip
  • 4,104 posts

Posted 30 June 2005 - 09:05 AM

... or use includes instead of evil iframes :)

#5 PSgirl

    P2L Staff

  • P2L Staff
  • PipPipPipPip
  • 2,055 posts
  • Gender:Female

Posted 30 June 2005 - 12:31 PM

includes? I don't understand... :)

#6 Sinny

    Young Padawan

  • Members
  • Pip
  • 144 posts

Posted 30 June 2005 - 12:53 PM

PSgirl, on Jun 30 2005, 05:31 PM, said:

includes? I don't understand... :)
Learn php :)

#7 PSgirl

    P2L Staff

  • P2L Staff
  • PipPipPipPip
  • 2,055 posts
  • Gender:Female

Posted 30 June 2005 - 01:01 PM

It's easy to say that :) But now I can't start to learn php... so I think I'll be used the html version.

#8 Tubby

    Young Padawan

  • Members
  • Pip
  • 24 posts

Posted 02 July 2005 - 08:01 AM

You can. I'm not 100% sure on the code. But I think its like:

<a href="main.html" base target="iFrame B's name here">

I'd google it before trying it though :)


Or better yet, use PHP Includes ;). They own

Edited by Tubby, 02 July 2005 - 08:01 AM.


#9 pr0jekt

    Young Padawan

  • Members
  • Pip
  • 171 posts
  • Location:Australia
  • Interests:Anything Web.. mostly coding

Posted 03 July 2005 - 09:53 AM

you could use a little javascript couldnt you??

<script language="javascript">
function twoFrames(url) {
window.frameNo1.document.location=url
window.frameNo2.document.location=url
}
</script>

and put this somewhere in ur html

<a href="java script:twoFrames('http://www.destination.com/')">text here</a>

#10 PSgirl

    P2L Staff

  • P2L Staff
  • PipPipPipPip
  • 2,055 posts
  • Gender:Female

Posted 03 July 2005 - 04:20 PM

oh, thank you both, I would try both codes :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users