Click to See Complete Forum and Search --> : on display command for iframes


euqon
07-18-2005, 07:15 AM
Hi,

I have a web site having three seperate i frames. Lets call them "if-a", "if-b" and "if-c" if-a displays page 1, if-b displays page 2 and if-c displays page 3.

what I want to do is to display a "page 4" on if-c, when page 1 is changed to page 2 on if-a.

I tried a two frames function:

function twoFrames(){
parent.document.getElementById('if-a').src="page1.html";
parent.document.getElementById('if-c').src="page4.html";

<a href="#"onclick="twoFrames()">click here</a>


but this is not efficient for me, for I have more than 200 links all over the site which I have to change this way.

Instead, it would be far more easy for me to make the page display another just as the time it appears on the stage.

any help will be appriciated...

bathurst_guy
07-18-2005, 07:26 AM
I like planning my sites first, and not use frames. Good Luck and have fun

euqon
07-18-2005, 07:33 AM
This is a site updating every day, so, I have to stick on my managers' demands, which I can not controll. It is unfortunately beyond my power to refuse what they ask.

So, please tell me something usefull instead of criticisms.

buntine
07-18-2005, 07:38 AM
Sorry, but you have posted in the wrong forum. Java is not JavaScript.


Regards.

euqon
07-18-2005, 07:43 AM
I have published the same thread on te Java Script forum, thank you.