Click to See Complete Forum and Search --> : window within a window


dragonbeast
11-09-2003, 04:01 PM
Hey there, I don't quite no what the proper name for this is, if it has one, but, I was wondering what the html code would be for puting a window inside of a window. The best example of what I mean is the update window at sinnerdragon.keenspace.com (http://sinnerdragon.keenspace.com) (it's the red box towards the top with a sleeping dragon in it). I basicly want to do what this person did but I have no clue how. Well, that's it. Thanks to anyone who helps me out here! Love ya!

PeOfEo
11-09-2003, 04:06 PM
You can use a div with overflow or an iframe.
I suggest the div if all you are interested is the scrolling aspects http://www.w3schools.com/css/tryit.asp?filename=trycss_overflow
Hey where it says overflow: scroll; try putting in overflow:auto; instead, you will like what happens.
Here is just a lil code to make a window like the ony you are talking about
<div style="overflow:auto; width:500px; height:500px;">
The Content
</div>

dragonbeast
11-09-2003, 04:10 PM
hey wow thanks! Man that was fast! Thanks so much!:D

dragonbeast
11-09-2003, 04:12 PM
wait I do have a quick question though. How do I get the content in the box to be another web page entierly?

PeOfEo
11-09-2003, 04:20 PM
two ways. You can use an include if your server supports ssi or you can use an iframe. The iframe is what I used on my site www.clanknights.vze.com
here is how it is done
<iframe src="theurl.html" style="width:500px; border-width:0px; height:500px;" name="theframename">
<a href="theurl.html">Your browser does not support iframes</a>
</iframe>
to open a link in the iframe use
<a href="theurl" target="theframename">some link</a>

also use a loose dtd with this, I suggestion 4.01 transitionsal
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
because the target and many of the frame attributes are not included in 4.01 strict and since the iframe is a type of object, well an evolution of the object tag, it is probably better not to use a frameset dtd

dragonbeast
11-09-2003, 04:23 PM
EEEE!!! It works!!!!! I love you! Thanks SOO much!:D

PeOfEo
11-09-2003, 04:29 PM
no prob