Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page Loading Problems

Status
Not open for further replies.

Ghealy

Programmer
Dec 5, 2000
2
IE
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=&quot;JavaScript&quot; src=&quot;navcond.js&quot;></script>
<script language=&quot;JavaScript&quot;>



var myNavBar1 = new NavBar(0);
var dhtmlMenu;

dhtmlMenu = new NavBarMenu(80, 0);
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Home&quot;, &quot;home.htm&quot;));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 120);
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Company&quot;, &quot;&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;News&quot;, &quot;news.htm&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Locations&quot;, &quot;locations.htm&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;History&quot;, &quot;history.htm&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;PM People&quot;, &quot;people.htm&quot;));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(90, 120);
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Sectors&quot;, &quot;&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Pharmaceutical&quot;, &quot;pharma.htm&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Healthcare&quot;, &quot;health.htm&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Electronics &#38 Telecomms&quot;, &quot;elec.htm&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Energy&quot;, &quot;energy.htm&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Food &#38 Drink&quot;, &quot;food/index.htm&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Infrastructure&quot;, &quot;public.htm&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Commercial &#38 Retail&quot;, &quot;comm/index.htm&quot;));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 150);
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Services&quot;, &quot;&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Core Services&quot;, &quot;core.htm&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Specialist Services&quot;, &quot;specialist.htm&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;IT Products &#38 Services&quot;, &quot;it.htm&quot;));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(110, 150);
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Recruitment&quot;, &quot;&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Current Vacancies&quot;, &quot;careers/index.htm&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Graduate Positions&quot;, &quot;careers/grad.htm&quot;));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(100, 150);
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Contact&quot;, &quot;&quot;));
dhtmlMenu.addItem(new NavBarMenuItem(&quot;Contact Us&quot;, &quot;contact.htm&quot;));
myNavBar1.addMenu(dhtmlMenu);

//set menu colors
myNavBar1.setColors(&quot;#902222&quot;, &quot;#ffffff&quot;, &quot;#902222&quot;, &quot;#ffffff&quot;, &quot;#666666&quot;, &quot;#000000&quot;, &quot;#cccccc&quot;, &quot;#ffffff&quot;, &quot;#902222&quot;)

myNavBar1.setFonts(&quot;CenturySchbook BT&quot;, &quot;normal&quot;, &quot;bold&quot;, &quot;small&quot;, &quot;CenturySchbook BT&quot;, &quot;normal&quot;, &quot;lighter&quot;, &quot;x-small&quot;)
//uncomment below line to center the menu (valid values are &quot;left&quot;, &quot;center&quot;, and &quot;right&quot;
//myNavBar1.setAlign(&quot;center&quot;)

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=&quot;JavaScript&quot;>
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName==&quot;Netscape&quot;)&&(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=&quot;init()&quot; marginheight=&quot;0&quot; topmargin=&quot;0&quot; leftmargin=&quot;0&quot; marginwidth=&quot;0&quot; link=&quot;#993333&quot; bgcolor=&quot;#FFFFFF&quot;>
<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td bgcolor=&quot;#CCCCCC&quot; width=&quot;99%&quot;><a name=&quot;top&quot;></a><img src=&quot;images/topbanaa.gif&quot; width=&quot;600&quot; height=&quot;75&quot;></td>
<td bgcolor=&quot;#CCCCCC&quot; width=&quot;0%&quot;>&nbsp;</td>
</tr>
</table>
<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; height=&quot;357&quot; bgcolor=&quot;#FFFFFF&quot;>
<tr>
<td bgcolor=&quot;#FFFFFF&quot; colspan=&quot;2&quot; rowspan=&quot;8&quot;>
<p align=&quot;left&quot;><img src=&quot;images/front1.gif&quot; width=&quot;580&quot; height=&quot;398&quot;><font face=&quot;Arial, Helvetica, sans-serif&quot; size=&quot;1&quot;>
</font></p>
</td>
<td colspan=&quot;3&quot; bgcolor=&quot;#FFFFFF&quot; width=&quot;40%&quot;>&nbsp;</td>
</tr>
<tr bgcolor=&quot;#FFFFFF&quot;>
<td colspan=&quot;3&quot; width=&quot;40%&quot;>&nbsp;</td>
</tr>
<tr bgcolor=&quot;#FFFFFF&quot;>
<td colspan=&quot;3&quot; rowspan=&quot;6&quot; width=&quot;40%&quot;>&nbsp;</td>
</tr>
<tr bgcolor=&quot;#FFFFFF&quot;></tr>
<tr bgcolor=&quot;#FFFFFF&quot;></tr>
<tr bgcolor=&quot;#FFFFFF&quot;> </tr>
<tr bgcolor=&quot;#FFFFFF&quot;> </tr>
<tr bgcolor=&quot;#FFFFFF&quot;> </tr>
</table>
</BODY></HTML>



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top