Netscape DevEdge

Skip to: [content] [navigation]

Before and After Code Samples

Code for layout of masthead

Before

<table border="0" cellpadding="0" cellspacing="0" width="760">

<script language="javascript">
    if (parseInt(navigator.appVersion) >= 4) 
	{
        var IE4 = (navigator.appVersion.indexOf("MSIE") > 0);
        var NN4 = (navigator.appName == "Netscape");
		var IEmenu;
		var NNmenu;
		//IE		
		IESET=("");
		//NN		
		NNSET=("<tr bgcolor='3366cc'><td colspan='4'><img 
src='images/spacer.gif' height='1' width='760'></td></tr>");
		if (IE4 > 0) 
		{
			document.write(IESET);
		}
		else
		{
			if (NN4 > 0) {document.write(NNSET);}
                  else{document.write(NNmenu);}
		}
	}
</script>

<tr bgcolor="3366cc">
<td width="200" background="images/home/home_1a.gif">
<form name="quicknav" method="post">
<SELECT name="quicknav" onChange="spawnWin(this.options)" onBlur="return 
options[0].selected = true">
...
</select></td>

<td width="101"><a href="http://www.stern.nyu.edu" target="_top" 
onMouseOver="hiliteImage('home1b', 'images/home/home_1b_f2.gif')" 
onMouseOut="hiliteImage('home1b', 'images/home/home_1b.gif')"><img 
name="home1b" src="images/home/home_1b.gif" border="0"></a></td>
<td width="101"><a href="index.html" target="_parent" 
onMouseOver="hiliteImage('home1c', 'images/home/home_1c_f2.gif')" 
onMouseOut="hiliteImage('home1c', 'images/home/home_1c.gif')"><img 
name="home1c" src="images/home/home_1c.gif" border="0"></a></td>
<td align="right" width="294" background="images/home/home_1a.gif"><img 
src="images/home/home_1d.gif"></td>
</tr>
</table>

After:

<!-- CITY IMAGE IN THE UPPER RIGHT -->
<div style="position:absolute; left:515px; top:14px; width:245px; height:78px; 
z-index:3;">
	<img src="/executive/i/m_cityline.gif" width="245" height="78" 
alt="" border="0">
</div>

<!-- NYU BUILDING ON THE LEFT -->
<div style="position:absolute; left:0px; top:23px; width:138px; height:100px; 
z-index:3;">
	<img src="/executive/i/m_building2.gif" width="138" height="100" 
alt="" border="0">
</div>

<!-- NYU STERN LOGO -->
<div style="position:absolute; left:130px; top:32px; width:261px; height:57px; 
z-index:3;">
	<img src="/executive/i/m_nyu_stern.gif" width="261" height="57" 
alt="" border="0">
</div>

<!-- NYU STERN SCHOOL OF BUSINESS -->
<div style="position:absolute; left:130px; top:96px; width:377px; height:14px; 
z-index:3;">
	<img src="/executive/i/m_school.gif" width="377" height="14"
 alt="" border="0">
</div>
A+R