Page 1 of 1

frames...

Posted: Wed Aug 13, 2003 6:25 am
by GeKI
Hello,

I have three separate frames named 'top' , 'left' and 'content' and a main page that incluse those frames. On the 'left' frame I have a link. How can I do, that when I click the link, on the 'top' and 'content' frame to load two different pages in the same time. A small source code in HTML or/and PHP will help. Thanks in advance.

Marius.

Posted: Wed Aug 13, 2003 9:09 am
by JAM

Code: Select all

<SCRIPT language="JavaScript">
<!--hide
function change2()
&#123;
parent.left_frame.location="foo.htm";
parent.right_frame.location="bar.htm";
&#125;
//-->
</SCRIPT>
then...

Code: Select all

<A HREF="javascript:change2()">Change 2 Frames</A>

Posted: Fri Aug 15, 2003 12:44 pm
by Weber
Hello,
Use frames ... is awful. If you know french and read him, go to this website :
http://www.openweb.eu.org/
In this website, on a article, they explain what frames isn't good :
- a lot of bugs
- not "accessible"
As the conséquently, don't use frames. If you know php, use pseudo-frames, it's better.
Good bye
Weber