Click to See Complete Forum and Search --> : layering/dumb question


club-feedback
10-17-2003, 06:38 PM
I'm starting a web page, and i was wondering if there is a way to get a layer to come from an outside file. Like i have a few pages that will have lots of pics on them, and i need to use layers due to the flash menus i'm using, but i don't want to use <div> cause it will take too long to load all the pictures.
Is there a way with the css to make layers using code that isn't on the main page???
Thanks!!

:confused:

DaveSW
10-18-2003, 09:10 AM
Would the iframe be a better solution for you?

club-feedback
10-18-2003, 01:42 PM
What is Iframes?? Yes, i know i should know that, but....??

Thanks!

DaveSW
10-18-2003, 02:40 PM
an iframe is an inline frame. Basically they are better from an accessibility point of view.

They work like this:

You have a list of links, as you would to a different page. The page you link to has only content on it - no menu (unless you want one), but is a html page in its own right.

The new page will open in the iframe, leaving your menu etc alongside it.

They are coded as follows:

LINKS:
<a href="info1.htm" target="info">Info1 sheet</a>

IFRAME:
<iframe src="content_of_iframe_when_page_loads.htm(blank for none)" name="info"></iframe>

if you use the src then you will need to provide a hyperlink between the iframe tags to this page, for any old browsers which don't support iframes.


I have a demo, but used for an image gallery:
http://emdevelopments.co.uk/demo/iframe/