Floating window in another frame

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hendrakieran
    New Member
    • Aug 2006
    • 1

    Floating window in another frame

    Hi Guys,

    I'd like to get some help regarding creating a floating window with the following scenario:

    * I have index.html which is contains the frameset definition:

    Code:
    <html>
    <head>
    </head>
    <frameset>
    	<frame name="top" src="top.html">
    	<frame name="bottom" src="http://www.myothersite.com">
    	<noframes>
    	<body>
    	<p>This page uses frames, but your browser doesn't support them.</p>
    	</body>
    	</noframes>
    </frameset>
    </html>
    * I can only modify either index.html or top.html
    * How can I create a floating window (like this http://www.dhtmlgoodies.com/scripts/...ng_window.html) by placing the code either in index.html or top.html and have the window shown on the "bottom" frame. What I need is using onLoad command in either index.html or top.html, create a floating window in "bottom" frame, without modifiying anything in the bottom frame (external content, e.g myothersite.com )
    * I've tried to modify the sample from that sample script:
    if I modify index.html by putting onLoad in the body section, nothing change
    if I modify top.html, the floating window shown on the "top" frame, which is not what I want.

    Any suggestion?

    Thanks in advance.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    You will need to use DOM methods to create the elements used to make the floating window and also load the JavaScript and CSS files.

    To access the frame from the frameset page, use window.frames[0]... or top.bottom from top.html.

    Note, though, that if the bottom frame URL is from a different domain, you cannot access it from the index page or the top frame.

    Comment

    Working...