By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,568 Members | 1,194 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,568 IT Pros & Developers. It's quick & easy.

Floating window in another frame

P: 1
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:

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. </head>
  4. <frameset>
  5.     <frame name="top" src="top.html">
  6.     <frame name="bottom" src="http://www.myothersite.com">
  7.     <noframes>
  8.     <body>
  9.     <p>This page uses frames, but your browser doesn't support them.</p>
  10.     </body>
  11.     </noframes>
  12. </frameset>
  13. </html> 
  14.  
* 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.
Aug 28 '06 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
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.
May 6 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.