JavaScript and AJAX Forum Forum Index

JavaScript and AJAX Forum
Spice up your web pages with JavaScript
 

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to display div layer over the frames in a page

 
Post new topic   Reply to topic    JavaScript and AJAX Forum Forum Index -> Source Code
View previous topic :: View next topic  
Author Message
gilbertsavier



Joined: 29 Jun 2009
Posts: 9

PostPosted: Tue Aug 04, 2009 6:55 am    Post subject: How to display div layer over the frames in a page Reply with quote

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
View user's profile Send private message
abracsi



Joined: 31 Dec 2009
Posts: 5
Location: UK

PostPosted: Thu Dec 31, 2009 1:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
ajitha99999



Joined: 22 Jul 2010
Posts: 44

PostPosted: Fri Jul 23, 2010 6:06 am    Post subject: gilbertsavier Reply with quote

have made use of only the frames not the iframes.


thank you ,

regards,

phe90xis
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    JavaScript and AJAX Forum Forum Index -> Source Code All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

  
phpBB©2001-2009 phpBB Group
The latest site designed with JavaScript Editor: Stock Trading Software Guru