Faqts

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

13 of 14 people (93%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

How do I work around the Opera resize bug for positioned elements/layers
What can I do about my positioned elements/layers being lost onresize in Opera

Aug 23rd, 2009 11:16
khalid khalid, forum net tr, seo webmaster, osama said, i can do it, Mark Szlazak, http://www.jr7sa.com


NN4 looses positions and style definitions of "layers" when resizing 
the browser window. See articles:
"How do I work around the NN4 resize bug for positioned elements / 
layers?"
"What can I do about my positioned elements/layers being lost onresize 
in NN4?"
http://www.jr7sa.com
http://www.jr7sa.com/msn
http://www.jr7sa.com/vb
http://www.jr7sa.com/1
http://www.jr7sa.com/wordpress
http://www.jr7sa.com/nkt
http://www.jr7sa.com/chat
http://www.jr7sa.com/cam
http://jr7sa.com/vb/f2.html
http://jr7sa.com/vb/f3.html
http://jr7sa.com/vb/f4.html
http://jr7sa.com/vb/f15.html
http://jr7sa.com/vb/f56.html
http://jr7sa.com/vb/f57.html
http://jr7sa.com/vb/f17.html
http://jr7sa.com/vb/f50.html
http://jr7sa.com/vb/f38.html
http://jr7sa.com/vb/f21.html
http://jr7sa.com/vb/f23.html
http://jr7sa.com/vb/f43.html
http://jr7sa.com/vb/f39.html
http://jr7sa.com/vb/f44.html
http://jr7sa.com/vb/f46.html
http://jr7sa.com/vb/f49.html
http://jr7sa.com/vb/f27.html
http://jr7sa.com/vb/f28.html
http://jr7sa.com/vb/f40.html
http://jr7sa.com/vb/f54.html
http://jr7sa.com/vb/cv_rss_feeds.php
http://www.jr7sa.com/vb/archive/index.php/
http://jr7sa.com/vb/f47.html
http://jr7sa.com/vb/f35.html
http://jr7sa.com/vb/external.php?type=RSS2
http://jr7sa.com/vb/jr7sa.com_vb_sitemap.xml
http://jr7sa.com/vb/sitemap.php
	http://www.faqts.com/knowledge_base/view.phtml/aid/2208/fid/128
"Why is the background color of my layers changing when resizing the 
window in NN4"
	http://www.faqts.com/knowledge_base/view.phtml/aid/2594/fid/128
The general solution is to reload the page on browser window resize 
events.
        function resizeHandler() { location.reload() }
        onresize = resizeHandler;
However, resize events fire when scroll bars are sized, and this 
occurs 
during page loading, causeing an additional firing of the resize event.
To filter out this second event, a comparison can be made of window 
dimensions with resize events, if they have changed then a true resize 
has occurred.
See "Ensuring DHTML Layout on Resize"
	http://www.webreference.com/dhtml/diner/resize/
Here's one possible script that gets original dimension after page 
loading and uses these in the resize handler.
        NN4   = (document.layers);
	function loadHandler() {
		if (NN4) {
			origWidth  = this.innerWidth;
			origHeight = this.innerHeight;
		}
	}
	onload = loadHandler;
	function resizeHandler() {
	        if (this.innerWidth != origWidth
	            ||
	            this.innerHeight != origHeight) location.reload();
        }
        onresize = resizeHandler;
Unfortunately, this doesn't work in Opera since there is no support 
for 
window resize events. A work around is to use a timer that watches for 
changes in window size.
A script that works in both NN4 and Opera could look like this.
        OPERA = (window.opera);
        NN4   = (document.layers);
	function loadHandler() {
		if (NN4 || OPERA) {
			origWidth  = this.innerWidth;
			origHeight = this.innerHeight;
                        if (OPERA) resizeHandler();
		}
	}
	onload = loadHandler;
        function resizeHandler() {
	        if (this.innerWidth != origWidth
	            ||
	            this.innerHeight != origHeight) location.reload();
	        if (OPERA) setTimeout('resizeHandler()',500);
        }
        if (NN4) onresize = resizeHandler;
source:
full forum http://www.forumnettr.com/forum 
secilmis youtube videolari http://www.youtubevideolari.net youtube 
videos
online video izle tr tube http://www.videotrtube.com
firmalar sirketler rehberi http://www.sirketfirmarehberi.com firma
sirket rehberi adres telefon bilgileri
full program full oyun http://www.forumnettr.com