Hi,
A page I have created loads correctly on a number of PCs. Howerver, on some PCs that have IE 4.0 installed the page loads from the bottom up and then scrolls to the top. I was just wondering if anyone would be able to help with this problem.
Thanks,
Geraldine
This is the code used for the page:
<HTML><HEAD>
<TITLE>PM: Contact</TITLE>
<script language="JavaScript" src="navcond.js"></script>
<script language="JavaScript">
var myNavBar1 = new NavBar(0);
var dhtmlMenu;
dhtmlMenu = new NavBarMenu(80, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Home", "home.htm");
myNavBar1.addMenu(dhtmlMenu);
dhtmlMenu = new NavBarMenu(100, 120);
dhtmlMenu.addItem(new NavBarMenuItem("Company", "");
dhtmlMenu.addItem(new NavBarMenuItem("News", "news.htm");
dhtmlMenu.addItem(new NavBarMenuItem("Locations", "locations.htm");
dhtmlMenu.addItem(new NavBarMenuItem("History", "history.htm");
dhtmlMenu.addItem(new NavBarMenuItem("PM People", "people.htm");
myNavBar1.addMenu(dhtmlMenu);
dhtmlMenu = new NavBarMenu(90, 120);
dhtmlMenu.addItem(new NavBarMenuItem("Sectors", "");
dhtmlMenu.addItem(new NavBarMenuItem("Pharmaceutical", "pharma.htm");
dhtmlMenu.addItem(new NavBarMenuItem("Healthcare", "health.htm");
dhtmlMenu.addItem(new NavBarMenuItem("Electronics & Telecomms", "elec.htm");
dhtmlMenu.addItem(new NavBarMenuItem("Energy", "energy.htm");
dhtmlMenu.addItem(new NavBarMenuItem("Food & Drink", "food/index.htm");
dhtmlMenu.addItem(new NavBarMenuItem("Infrastructure", "public.htm");
dhtmlMenu.addItem(new NavBarMenuItem("Commercial & Retail", "comm/index.htm");
myNavBar1.addMenu(dhtmlMenu);
dhtmlMenu = new NavBarMenu(100, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Services", "");
dhtmlMenu.addItem(new NavBarMenuItem("Core Services", "core.htm");
dhtmlMenu.addItem(new NavBarMenuItem("Specialist Services", "specialist.htm");
dhtmlMenu.addItem(new NavBarMenuItem("IT Products & Services", "it.htm");
myNavBar1.addMenu(dhtmlMenu);
dhtmlMenu = new NavBarMenu(110, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Recruitment", "");
dhtmlMenu.addItem(new NavBarMenuItem("Current Vacancies", "careers/index.htm");
dhtmlMenu.addItem(new NavBarMenuItem("Graduate Positions", "careers/grad.htm");
myNavBar1.addMenu(dhtmlMenu);
dhtmlMenu = new NavBarMenu(100, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Contact", "");
dhtmlMenu.addItem(new NavBarMenuItem("Contact Us", "contact.htm");
myNavBar1.addMenu(dhtmlMenu);
//set menu colors
myNavBar1.setColors("#902222", "#ffffff", "#902222", "#ffffff", "#666666", "#000000", "#cccccc", "#ffffff", "#902222"
myNavBar1.setFonts("CenturySchbook BT", "normal", "bold", "small", "CenturySchbook BT", "normal", "lighter", "x-small"
//uncomment below line to center the menu (valid values are "left", "center", and "right"
//myNavBar1.setAlign("center"
var fullWidth;
function init() {
// Get width of window, need to account for scrollbar width in Netscape.
fullWidth = getWindowWidth()
- (isMinNS4 && getWindowHeight() < getPageHeight() ? 16 : 0);
myNavBar1.setSizes(1, 1, 1);
myNavBar1.resize(fullWidth);
myNavBar1.create();
myNavBar1.setzIndex(2);
myNavBar1.moveTo(0,75);
}
</script>
<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>
</HEAD>
<BODY onload="init()" marginheight="0" topmargin="0" leftmargin="0" marginwidth="0" link="#993333" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#CCCCCC" width="99%"><a name="top"></a><img src="images/topbanaa.gif" width="600" height="75"></td>
<td bgcolor="#CCCCCC" width="0%"> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="357" bgcolor="#FFFFFF">
<tr>
<td bgcolor="#FFFFFF" colspan="2" rowspan="8">
<p align="left"><img src="images/front1.gif" width="580" height="398"><font face="Arial, Helvetica, sans-serif" size="1">
</font></p>
</td>
<td colspan="3" bgcolor="#FFFFFF" width="40%"> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="3" width="40%"> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="3" rowspan="6" width="40%"> </td>
</tr>
<tr bgcolor="#FFFFFF"></tr>
<tr bgcolor="#FFFFFF"></tr>
<tr bgcolor="#FFFFFF"> </tr>
<tr bgcolor="#FFFFFF"> </tr>
<tr bgcolor="#FFFFFF"> </tr>
</table>
</BODY></HTML>
A page I have created loads correctly on a number of PCs. Howerver, on some PCs that have IE 4.0 installed the page loads from the bottom up and then scrolls to the top. I was just wondering if anyone would be able to help with this problem.
Thanks,
Geraldine
This is the code used for the page:
<HTML><HEAD>
<TITLE>PM: Contact</TITLE>
<script language="JavaScript" src="navcond.js"></script>
<script language="JavaScript">
var myNavBar1 = new NavBar(0);
var dhtmlMenu;
dhtmlMenu = new NavBarMenu(80, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Home", "home.htm");
myNavBar1.addMenu(dhtmlMenu);
dhtmlMenu = new NavBarMenu(100, 120);
dhtmlMenu.addItem(new NavBarMenuItem("Company", "");
dhtmlMenu.addItem(new NavBarMenuItem("News", "news.htm");
dhtmlMenu.addItem(new NavBarMenuItem("Locations", "locations.htm");
dhtmlMenu.addItem(new NavBarMenuItem("History", "history.htm");
dhtmlMenu.addItem(new NavBarMenuItem("PM People", "people.htm");
myNavBar1.addMenu(dhtmlMenu);
dhtmlMenu = new NavBarMenu(90, 120);
dhtmlMenu.addItem(new NavBarMenuItem("Sectors", "");
dhtmlMenu.addItem(new NavBarMenuItem("Pharmaceutical", "pharma.htm");
dhtmlMenu.addItem(new NavBarMenuItem("Healthcare", "health.htm");
dhtmlMenu.addItem(new NavBarMenuItem("Electronics & Telecomms", "elec.htm");
dhtmlMenu.addItem(new NavBarMenuItem("Energy", "energy.htm");
dhtmlMenu.addItem(new NavBarMenuItem("Food & Drink", "food/index.htm");
dhtmlMenu.addItem(new NavBarMenuItem("Infrastructure", "public.htm");
dhtmlMenu.addItem(new NavBarMenuItem("Commercial & Retail", "comm/index.htm");
myNavBar1.addMenu(dhtmlMenu);
dhtmlMenu = new NavBarMenu(100, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Services", "");
dhtmlMenu.addItem(new NavBarMenuItem("Core Services", "core.htm");
dhtmlMenu.addItem(new NavBarMenuItem("Specialist Services", "specialist.htm");
dhtmlMenu.addItem(new NavBarMenuItem("IT Products & Services", "it.htm");
myNavBar1.addMenu(dhtmlMenu);
dhtmlMenu = new NavBarMenu(110, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Recruitment", "");
dhtmlMenu.addItem(new NavBarMenuItem("Current Vacancies", "careers/index.htm");
dhtmlMenu.addItem(new NavBarMenuItem("Graduate Positions", "careers/grad.htm");
myNavBar1.addMenu(dhtmlMenu);
dhtmlMenu = new NavBarMenu(100, 150);
dhtmlMenu.addItem(new NavBarMenuItem("Contact", "");
dhtmlMenu.addItem(new NavBarMenuItem("Contact Us", "contact.htm");
myNavBar1.addMenu(dhtmlMenu);
//set menu colors
myNavBar1.setColors("#902222", "#ffffff", "#902222", "#ffffff", "#666666", "#000000", "#cccccc", "#ffffff", "#902222"
myNavBar1.setFonts("CenturySchbook BT", "normal", "bold", "small", "CenturySchbook BT", "normal", "lighter", "x-small"
//uncomment below line to center the menu (valid values are "left", "center", and "right"
//myNavBar1.setAlign("center"
var fullWidth;
function init() {
// Get width of window, need to account for scrollbar width in Netscape.
fullWidth = getWindowWidth()
- (isMinNS4 && getWindowHeight() < getPageHeight() ? 16 : 0);
myNavBar1.setSizes(1, 1, 1);
myNavBar1.resize(fullWidth);
myNavBar1.create();
myNavBar1.setzIndex(2);
myNavBar1.moveTo(0,75);
}
</script>
<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>
</HEAD>
<BODY onload="init()" marginheight="0" topmargin="0" leftmargin="0" marginwidth="0" link="#993333" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#CCCCCC" width="99%"><a name="top"></a><img src="images/topbanaa.gif" width="600" height="75"></td>
<td bgcolor="#CCCCCC" width="0%"> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="357" bgcolor="#FFFFFF">
<tr>
<td bgcolor="#FFFFFF" colspan="2" rowspan="8">
<p align="left"><img src="images/front1.gif" width="580" height="398"><font face="Arial, Helvetica, sans-serif" size="1">
</font></p>
</td>
<td colspan="3" bgcolor="#FFFFFF" width="40%"> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="3" width="40%"> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="3" rowspan="6" width="40%"> </td>
</tr>
<tr bgcolor="#FFFFFF"></tr>
<tr bgcolor="#FFFFFF"></tr>
<tr bgcolor="#FFFFFF"> </tr>
<tr bgcolor="#FFFFFF"> </tr>
<tr bgcolor="#FFFFFF"> </tr>
</table>
</BODY></HTML>