Topic awaiting preservation: HTML Content (Page 1 of 1) |
|
---|---|
Obsessive-Compulsive (I) Inmate From: New Orleans, LA, USA |
posted 04-11-2002 21:00
I am new to HTML/Javascript, etc. I was looking at Dr. Ozones' website http://www.ozones.com . It seems like the background and images don't change, when you click on a button. A new window opens up with different HTML content within it. How is this implemented? |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 04-11-2002 21:27
Very difficultly. |
Obsessive-Compulsive (I) Inmate From: New Orleans, LA, USA |
posted 04-12-2002 06:01
I understand how to use the innerHTML property. I understand it replaces text inbetween the beginning and ending tag. I would like to see how you can dynamically insert an external html page into the current document. I found a site that does this but I'm not sure if I can follow the code. For instance, if I had: |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 04-12-2002 06:35
Ah, that uses a slightly different, more straightforward technique. Instead of using innerHTML, it actually uses a visible IFRAME to display the content. The line |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 04-12-2002 07:01
Hey Slime (and I haven't tried anything like this so I'm just guessing) wouldn't the iframe be actually a child "document" of the parent doc? Wouldn't that make the second .document necessary to properly refrence the iframe doc? of course most of the time the document ref itself is superflous anyway so it shouldn't really matter. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 04-12-2002 07:39
"wouldn't the iframe be actually a child "document" of the parent doc? Wouldn't that make the second .document necessary to properly refrence the iframe doc?" |
Obsessive-Compulsive (I) Inmate From: New Orleans, LA, USA |
posted 04-12-2002 16:38
Okay, |
Bipolar (III) Inmate From: dk's house of love |
posted 04-13-2002 00:25
1) Its not just a div, its also an IFRAME, there are special things you must do to have transparent IFRAMES. I did it here. |