PDA

View Full Version : How to fix frames width with Netscape?


Syst3m Err0r
01-19-2001, 05:46 AM
I have a frameset and it shows correct normally but especially when you are watching it in high screen resolutions then it jumps about 10 pixels back to the left.

Greetz,

Syst3m Err0r

jonirvine
01-19-2001, 11:07 AM
Do you have a URL for this?

Jon

------------------
Web Design, development and hosting.
Contact: jon@dustnet.co.uk www.yorkdesigns.co.uk (http://www.yorkdesigns.co.uk)
Newest Project: www.101tutorials.com (http://htpp://www.101tutorials.com)

Syst3m Err0r
01-25-2001, 04:33 AM
No it's not online yet but here's the frame set:

<html>
<head>
<title>Sisnot Design Associates</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<frameset rows="50,*,50" frameborder="NO" border="0" framespacing="0">
<frame name="topFrame" scrolling="NO" noresize src="bars/top_bar.htm">
<frameset cols="205,*" frameborder="NO" border="0" framespacing="0">
<frame name="leftFrame" scrolling="NO" noresize src="menu_introduction.htm">
<frame name="mainFrame" scrolling="auto" noresize src="home.htm">
</frameset>
<frame src="bars/bottom_bar.htm">
</frameset>

<noframes><body bgcolor="#FFFFFF">

</body></noframes>
</html>

It works correctly in IE but in NS4.7 or below leftFrame clips some pixels back on high screen resolution.

Just play with NS with the browser window width and then you'll recognise that it shows sometimes correctly and sometimes it clips back some pixels.

I wonder if this NS bug can be fixed? Perhaps with a javascript or what ever. It's not a big thing but If it can be fixed I like to know...

Greetz,

Syst3m Err0r

[Edited by Syst3m Err0r on 01-25-2001 at 04:01 AM]

kevin
01-25-2001, 05:10 AM
I didn't test your code but I'm thinking maybe the scrolling=auto in the one frame might be the culprit. It's the onlt thing that would change during a switch in screen resolution, a higher resolution might not need the scroll bar causing the effect you are noticing. Mess around with the scroll bar in that frame. like use scrolling=yes to force the scroll bar to display and see if the frame width still jumps around.

Regards,
Kevin

Dr. Web
01-25-2001, 08:29 PM
This script re-loads the page in Netscape if the window is resized. I have used it to fix some pages that are messed up after the user resizes the window.

<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>


good luck!

Syst3m Err0r
02-01-2001, 06:01 AM
That doesn't do the trick... I all ready tried that Dreamweaver thingy...

http://www.sda.nl/temp/problem.gif

This is another page but this shows exactly my problem.

Syst3m Err0r