Preserved Topic: Layers/Div's Question (Page 1 of 1) |
|
---|---|
Paranoid (IV) Mad Scientist From: A lost remnant |
posted 08-18-2001 17:47
OK I am designing my new website that has pop out layers (for navigation). I would like to make those div's external so that I only have to edit one set of div's and the HTML page would just call the div's. So how do I make those Div's external? Do you know of any tutorials on the web for what I want to do? Thanks |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 08-18-2001 19:25
You gotta either use an IFRAME in the Divs or use an outside frame/window to load the page, and then take that pages' document.body.innerHTML as the content. Try the IFRAME. |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 08-19-2001 03:46
I might interpret your question differently than Slime. If you want those DIVs external to the source HTML, you could use server includes like SSI/XSSI. If you're using PHP, that supports Includes as well. That allows you to have a separate file that contains that data, that you can call from your HTML. |
Paranoid (IV) Mad Scientist From: A lost remnant |
posted 08-19-2001 20:19
Thank You it worked very well. What I did was created an HTML page titled Layers.shtml containing all of the layers but had no body or HTML tags on the page and then on the page that I wanted to use the layers for the navigation I used a SSI |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 08-19-2001 20:51 |