Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ iframe?

Posted by: Katiw Sep 15 2006, 11:33 AM

Hello,

I am creating a website and have a ? about frames. I have a menu along the top. When an item in the menu is clicked a new graphic will show in a table cell below lower on the page. Do I do this using iframe? any other ideas?

Thanks!
Katie

Posted by: Darin McGrew Sep 15 2006, 12:09 PM

The the FAQ entry: http://www.htmlhelp.com/faq/html/frames.html#frame-target

For inline frames, see: http://www.htmlhelp.com/reference/html40/special/iframe.html in our HTML 4.0 Reference

Posted by: Christian J Sep 15 2006, 12:27 PM

QUOTE(Katiw @ Sep 15 2006, 06:33 PM) *

When an item in the menu is clicked a new graphic will show in a table cell below lower on the page. Do I do this using iframe? any other ideas?



This could be done in several ways:

* By making a second page, identical except for the changed image. This is a good solution if the pages don't take too long to load.

* With frames/iframes, but they create their own problems: http://htmlhelp.com/faq/html/frames.html#frame-problems

* With javascript. If this is used and the image is important you should make sure the image can be viewed even when JS is disabled. You should also make sure the menu does not become uselessif JS is unavailable.

What does the rest of the page look like? Are there lots of images you want to change this way?

Posted by: Katiw Sep 15 2006, 12:43 PM

Thanks for explaining the options.

I thought about using multiple pages....but when I want to make overall changes it would be too much.

Here is a link: http://www.whiteandpartners.com/new/advertising.html

When you click on the icons on the top panel, I want an image to be below (a different one for each icon above..there will be more but only one now).

QUOTE(Christian J @ Sep 15 2006, 01:27 PM) *

QUOTE(Katiw @ Sep 15 2006, 06:33 PM) *

When an item in the menu is clicked a new graphic will show in a table cell below lower on the page. Do I do this using iframe? any other ideas?



This could be done in several ways:

* By making a second page, identical except for the changed image. This is a good solution if the pages don't take too long to load.

* With frames/iframes, but they create their own problems: http://htmlhelp.com/faq/html/frames.html#frame-problems

* With javascript. If this is used and the image is important you should make sure the image can be viewed even when JS is disabled. You should also make sure the menu does not become uselessif JS is unavailable.

What does the rest of the page look like? Are there lots of images you want to change this way?


Posted by: Darin McGrew Sep 15 2006, 01:24 PM

QUOTE(Katiw @ Sep 15 2006, 10:43 AM) *
I thought about using multiple pages....but when I want to make overall changes it would be too much.
Only if you create all the pages by hand.

Here's a http://www.thegba.net/coppermine/displayimage.php?album=3&pos=0 that uses a separate page for each photo. The separate pages are generated automatically, not by hand.

See also the FAQ entry: http://www.htmlhelp.com/faq/html/design.html#include-file

QUOTE(Katiw @ Sep 15 2006, 10:43 AM) *
Here is a link: http://www.whiteandpartners.com/new/advertising.html
I get a blank page.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)