Forum Moderators: open

Message Too Old, No Replies

iframe linking - one link, two changes

link will target to 1 iframe, and open another

         

dehdman

4:45 pm on Apr 22, 2003 (gmt 0)



Greetings all. My first post..

I'm redesigning my page, I guess you can call it more extensive them my last(3 way frame split). My goal is to run the whole page, off 1 front page, rather then frames. I have created 1 massive table, and have broken it down to various sections (header/left menu*in use*/center body*iframe src="blank2.html*/right menu space*not used yet*/footer. Basically a frames page ran from a table.

So far I have been able to make all my left menu links, open in the desired center iframe. Perfect. Their is 1 link from that left menu, that I want to function deeper. Since the right menu is not being used... I'd like this left link, to do both 1. put a .html file for that link into the body iframe *i can do this already*, and 2. make that right menu into a 2nd navigational menu *most probable: 2nd iframe setup*, for that index we opened up. All inks from that right menu, would point to that center iframe (target="blank").

My question is: Is it possible to double target like that? Or is their a better way i can perform this. All help is greatly appreciated.

ShawnR

11:57 pm on Apr 22, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi dehdman, and welcome to WebmasterWorld!

My first comment is that if you are trying to get rid of the frames for all the right reasons (search engine visibility, view-ability by the blind, not having orphaned pages, frame contents getting out of sync with the menu selection which sent it there, etc), then iframes is no better than frames. Won't help at all. In fact, it will make things worse, because older browsers such as NN4.7 don't support iframes. Personally, I am from the school that sees pros and cons of frames, and I don't avoid them like the plague. However, many experts say 'avoid them', so it is commendable that you are trying to move away from frames... but please don't replace them with iframes; that solves none of the problems with frames, and introduces more problems.

To your question: To make two frames (or iframes) change when one button is pressed, use the onclick attribute of the button, and have some Javascript load the right hand sub-menu, with the href loading the main screen.

Shawn