| View previous topic :: View next topic |
| Author |
Message |
gilbertsavier
Joined: 29 Jun 2009 Posts: 9
|
Posted: Tue Aug 04, 2009 6:55 am Post subject: How to display div layer over the frames in a page |
|
|
Hi All,
my web page does contain to 4 frames(top, left, right,bottom). in top frame i have a button . when i click on the button it renders a transparent layer(div layer/overlay) on the top frame. i want to show the overlay across the frames rather than displaying in the current frame.
i have made use of only the frames not the iframes.
please suggest me away for getting the overlay across the frames. _________________ Thanks & regards
Lokananth
Live Chat Software By miOOt |
|
| Back to top |
|
 |
abracsi
Joined: 31 Dec 2009 Posts: 5 Location: UK
|
Posted: Thu Dec 31, 2009 1:24 pm Post subject: |
|
|
you could put the overlay outside of the frames and give it a higher z-index than the frames. I don't think you can get something to render outside a frame it is within.
If the object is created within the frame, you'll need to use javascript to move the overlay object to a different place in the dom. something like..
var myOverlay = document.getElementById('myOverlay');
myOverlay.parentNode.parentNode.appendChild(myOverlay);
This code will take the overlay div and move it up the dom. it's up to you to work out exactly how many times you need to call .parentNode
Goodluck
-Luke |
|
| Back to top |
|
 |
ajitha99999
Joined: 22 Jul 2010 Posts: 44
|
Posted: Fri Jul 23, 2010 6:06 am Post subject: gilbertsavier |
|
|
have made use of only the frames not the iframes.
thank you ,
regards,
phe90xis |
|
| Back to top |
|
 |
|