Forum Moderators: open

Message Too Old, No Replies

open window inside window

         

kcurtis

9:10 pm on Jan 18, 2005 (gmt 0)

10+ Year Member



I am designing a webpage and for the likes of me I cannot figure out how to do this. I can open many windows in a new window. But I want to do it in the same window.

If you take a look at this link, this is an example of what i am talking about. This was a template from somewhere else.

<snip>

click on the portfolio links, etc to make a wondow pop up in the same window. I wanted to do this so i could have people go to my guestbook and forums and such without having to leave my webpage. How do you do this? Can it be done?

[edited by: korkus2000 at 4:00 pm (utc) on Jan. 19, 2005]
[edit reason] No personal URLs please [/edit]

asdasddd

1:34 am on Jan 19, 2005 (gmt 0)

10+ Year Member



My god! It's a flash movie, not a pure webpage, you can download it to your disk and play it with a flashplayer not a browser. I don't think who can implement this with javascript.Maybe you mean to use iframe?

rocknbil

2:40 am on Jan 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No you don't need to use frames. Well if someone holds you at knifepoint or ransom's your wife . . . :-)

Look into creating your page in DIV's, setting the "inside" ones as hidden on load, then show and hide them using Javascript. It's not a accessible-friendly way to work but that's one way. It won't have the aspects that Flash movie does, but you could get pretty close.

When you think about it, it really is a page inside a page, just not in a new window. In fact, the old Netscape reference for these layers was divname.document . . . .

adni18

1:36 pm on Jan 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here's an example:

<DIV id="newWin" style="position:absolute;left:300px;top:50px;visibility:hidden;background-color:#888888;border:1px solid #000000;padding:5px">This is my window!<br><br>Whoohoo!</DIV><br><input type=button onClick="var currOb=document.getElementById('newWin');if(currOb.style.visibility=='hidden')currOb.style.visibility='visible';else currOb.style.visibility='hidden';" value="Show the window!">