Forums

This topic is locked

layers and netscape 4.79

Posted 02 Apr 2002 19:20:17
1
has voted
02 Apr 2002 19:20:17 rick gregorio posted:
Hello all, I realize that I may not receive any help on this issue, but I had to try. The following webpage in IE and Netcape 6 works perfectly.

www.aspiresite.com/thelovefamily/

In Netscape 4.76 all I get is a mess. I am using PVII's layer extensions and behaviours, and have used them in the past with no problems. Can anyone help me as to where I went wrong designing this page for Netscape 4.79?

Below is all the HTML - the ASP code has been left out.

<html>
<head>
<!-- #BeginEditable "doctitle" -->
<title>The Love Family</title>
<!-- #EndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.menucell { font-family: Arial, Helvetica, sans-serif; font-size: 9px; background-color: #ffffff; text-decoration: none}
.td { font-family: Arial, Helvetica, sans-serif; font-size: 9px; background-color: #ffffff; text-decoration: none}
-->
</style>
<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);
// -->

function pviiW3Cbg(obj, pviiColor) { //v1.1 by Project VII
obj.style.backgroundColor=pviiColor
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?")>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function P7_autoLayers() { //v1.1 PVII
var g,b,k,f,args=P7_autoLayers.arguments;
if(!document.p7setc) {p7c=new Array();document.p7setc=true;}
for(k=0; k<p7c.length; k++) {
if((g=MM_findObj(p7c[k]))!=null) {
b=(document.layers)?g:g.style;b.visibility="hidden";}}
for(k=0; k<args.length; k++) {
if((g=MM_findObj(args[k])) != null) {
b=(document.layers)?g:g.style;b.visibility="visible";f=false;
for(j=0;j<p7c.length;j++) {
if(args[k]==p7c[j]) {f=true;}}
if(!f) {p7c[p7c.length++]=args[k];}}}
}
//-->
</script>
</head>

<body bgcolor="#FFE8F3" text="#000000">

<div id="main" style="position:absolute; width:700px; height:150px; z-index:2; left: 0; top: 150; visibility: hidden" onMouseOver="P7_autoLayers()"></div>
<table width="100%" border="0" align="center">
<tr>
<td width="5"><img src="../images/1x1-pink-transp.gif" width=5></td>
<td bgcolor="#FFFFFF">
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=280>
<img src="../images/logo.gif" width="280" height="80"></td>
<td valign="bottom" align=left> <font face=verdana,arial size=2 color=#336699>
<% Response.Write(TheDayName & " " & TheMonthName & " " & TheDay & ", " & TheYear) %>
</font> </td>
<td valign="top" width="*" align=right><img src="../images/mycart.gif"><br>
<font face=verdana,arial size=2 color=#336699>
# of items: <br>
Total: <br>
<a href="../checkout.asp" onFocus="if(this.blur)this.blur()"><font face=verdana,arial size=2 color=#669900>Checkout</font></a> <br>
</font>
</td>
</tr>
</table>
<td width="5"><img src="../images/1x1-pink-transp.gif" width=5></td>
</tr>
<tr>
<td width="5"><img src="../images/1x1-pink-transp.gif" width=5></td>
<td bgcolor="#FFFFFF">
<table cellpadding=0 cellspacing=0 border=0 width="649">
<tr><td><a href="../showcategory.asp?catid=1" onMouseOver="P7_autoLayers('main','newborn')" onFocus="if(this.blur)this.blur()"><img src="../images/newborn.gif" width="78" height="18" border=0></a>
<a href="../showcategory.asp?catid=2" onMouseOver="P7_autoLayers('main','toddlers')" onFocus="if(this.blur)this.blur()"><img src="../images/toddlers.gif" width="77" height="18" border=0></a>
<a href="../showcategory.asp?catid=3" onMouseOver="P7_autoLayers('main','children')" onFocus="if(this.blur)this.blur()"><img src="../images/children.gif" width="78" height="18" border=0></a>
<a href="../showcategory.asp?catid=4" onMouseOver="P7_autoLayers('main','maternity')" onFocus="if(this.blur)this.blur()"><img src="../images/maternity.gif" width="82" height="18" border="0"></a>
<a href="../showcategory.asp?catid=5" onMouseOver="P7_autoLayers('main','glassware')" onFocus="if(this.blur)this.blur()"><img src="../images/glassware.gif" width="91" height="18" border="0"></a>
<a href="../showcategory.asp?catid=6" onMouseOver="P7_autoLayers('main','accessories')" onFocus="if(this.blur)this.blur()"><img src="../images/accessories.gif" width="98" height="18" border="0"></a>
<a href="../showcategory.asp?catid=7" onMouseOver="P7_autoLayers('main','familyware')" onFocus="if(this.blur)this.blur()"><img src="../images/familyware.gif" width="101" height="18" border="0"></a>
</td></tr>
</table>
<table cellpadding=0 cellspacing=0 border=0 width="649">
<tr><td>
<div id="newborn" style="position:absolute; width:78px; height:93px; z-index:3; left: 21px; top: 117px; visibility: hidden">
<table width="70" border="0" cellpadding="1" cellspacing="0" bgcolor=#ffffff>
<tr>
<td width=70 bgcolor=#ffffff><img src="../images/menu-spacer.gif" width="70" height="5"></td>
</tr>

<%
While ((Repeat1__numRows <> 0) AND (NOT rsNewborn.EOF))
%>
<tr>
<td bgcolor=#ffffff onMouseOver="pviiW3Cbg(this, '#E9E8FF')" onMouseOut="pviiW3Cbg(this, '#FFFFFF')"><a href="../showproduct.asp?catid=<%=rsNewborn("CategoryID"%>&prodid=<%=rsNewborn("ID"%>" style="text-decoration:none" onFocus="if(this.blur)this.blur()"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color=#000000> <%=rsNewborn("Product"%></font></a></td>
</tr>

<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rsNewborn.MoveNext()
Wend
%>
</table>
</div>
</td><td>
<div id="toddlers" style="position:absolute; width:125px; height:93px; z-index:4; left: 103px; top: 117px; visibility: hidden">
<table width="125" border="0" cellpadding="1" cellspacing="0" bgcolor=#ffffff>
<tr>
<td bgcolor=#ffffff><img src="../images/menu-spacer.gif" width="125" height="5"></td>
</tr>

<%
While ((Repeat2__numRows <> 0) AND (NOT rsToddlers.EOF))
%>
<tr>
<td bgcolor=#ffffff onMouseOver="pviiW3Cbg(this, '#E9E8FF')" onMouseOut="pviiW3Cbg(this, '#FFFFFF')"><a href="../showproduct.asp?catid=<%=rsToddlers("CategoryID"%>&prodid=<%=rsToddlers("ID"%>" style="text-decoration:none" onFocus="if(this.blur)this.blur()"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color=#000000> <%=rsToddlers("Product"%></font></a></td>
</tr>

<%
Repeat2__index=Repeat2__index+1
Repeat2__numRows=Repeat2__numRows-1
rsToddlers.MoveNext()
Wend
%>

</table>
</div>
</td><td>
<div id="children" style="position:absolute; width:125px; height:93px; z-index:5; left: 185px; top: 117px; visibility: hidden">
<table width="125" border="0" cellpadding="1" cellspacing="0" bgcolor=#ffffff>
<tr>
<td bgcolor=#ffffff><img src="../images/menu-spacer.gif" width="125" height="5"></td>
</tr>

<%
While ((Repeat3__numRows <> 0) AND (NOT rsChildren.EOF))
%>
<tr>
<td bgcolor=#ffffff onMouseOver="pviiW3Cbg(this, '#E9E8FF')" onMouseOut="pviiW3Cbg(this, '#FFFFFF')"><a href="../showproduct.asp?catid=<%=rsChildren("CategoryID"%>&prodid=<%=rsChildren("ID"%>" style="text-decoration:none" onFocus="if(this.blur)this.blur()"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color=#000000> <%=rsChildren("Product"%></font></a></td>
</tr>

<%
Repeat3__index=Repeat3__index+1
Repeat3__numRows=Repeat3__numRows-1
rsChildren.MoveNext()
Wend
%>

</table>
</div>
</td><td>
<div id="maternity" style="position:absolute; width:95px; height:93px; z-index:6; left: 266px; top: 117px; visibility: hidden">
<table width="95" border="0" cellpadding="1" cellspacing="0" bgcolor=#ffffff>
<tr>
<td bgcolor=#ffffff><img src="../images/menu-spacer.gif" width="95" height="5"></td>
</tr>

<%
While ((Repeat4__numRows <> 0) AND (NOT rsMaternity.EOF))
%>

<tr>

<td bgcolor=#ffffff onMouseOver="pviiW3Cbg(this, '#E9E8FF')" onMouseOut="pviiW3Cbg(this, '#FFFFFF')"><a href="../showproduct.asp?catid=<%=rsMaternity("CategoryID"%>&prodid=<%=rsMaternity("ID"%>" style="text-decoration:none" onFocus="if(this.blur)this.blur()"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color=#000000> <%=rsMaternity("Product"%></font></a></td>
</tr>

<%
Repeat4__index=Repeat4__index+1
Repeat4__numRows=Repeat4__numRows-1
rsMaternity.MoveNext()
Wend
%>

</table>
</div>
</td><td>
<div id="glassware" style="position:absolute; width:91px; height:93px; z-index:7; left: 352px; top: 117px; visibility: hidden">
<table width="91" border="0" cellpadding="1" cellspacing="0" bgcolor=#ffffff>
<tr>
<td bgcolor=#ffffff><img src="../images/menu-spacer.gif" width="91" height="5"></td>
</tr>

<%
While ((Repeat5__numRows <> 0) AND (NOT rsGlassware.EOF))
%>
<tr>
<td bgcolor=#ffffff onMouseOver="pviiW3Cbg(this, '#E9E8FF')" onMouseOut="pviiW3Cbg(this, '#FFFFFF')"><a href="../showproduct.asp?catid=<%=rsGlassware("CategoryID"%>&prodid=<%=rsGlassware("ID"%>" style="text-decoration:none" onFocus="if(this.blur)this.blur()"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color=#000000> <%=rsGlassware("Product"%></font></a></td>
</tr>

<%
Repeat5__index=Repeat5__index+1
Repeat5__numRows=Repeat5__numRows-1
rsGlassware.MoveNext()
Wend
%>

</table>
</div>
</td><td>
<div id="accessories" style="position:absolute; width:98px; height:93px; z-index:8; left: 448px; top: 117px; visibility: hidden">
<table width="98" border="0" cellpadding="1" cellspacing="0" bgcolor=#ffffff>
<tr>
<td bgcolor=#ffffff><img src="../images/menu-spacer.gif" width="98" height="5"></td>
</tr>

<%
While ((Repeat6__numRows <> 0) AND (NOT rsAccessories.EOF))
%>
<tr>
<td bgcolor=#ffffff onMouseOver="pviiW3Cbg(this, '#E9E8FF')" onMouseOut="pviiW3Cbg(this, '#FFFFFF')"><a href="../showproduct.asp?catid=<%=rsAccessories("CategoryID"%>&prodid=<%=rsAccessories("ID"%>" style="text-decoration:none" onFocus="if(this.blur)this.blur()"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color=#000000> <%=rsAccessories("Product"%></font></a></td>
</tr>

<%
Repeat6__index=Repeat6__index+1
Repeat6__numRows=Repeat6__numRows-1
rsAccessories.MoveNext()
Wend
%>

</table>
</div>
</td><td>
<div id="familyware" style="position:absolute; width:100px; height:93px; z-index:9; left: 553px; top: 117px; visibility: hidden">
<table width="100" border="0" cellpadding="1" cellspacing="0" bgcolor=#ffffff>
<tr>
<td bgcolor=#ffffff><img src="../images/menu-spacer.gif" width="100" height="5"></td>
</tr>

<%
While ((Repeat7__numRows <> 0) AND (NOT rsFamilyware.EOF))
%>
<tr>
<td bgcolor=#ffffff onMouseOver="pviiW3Cbg(this, '#E9E8FF')" onMouseOut="pviiW3Cbg(this, '#FFFFFF')"><a href="../showproduct.asp?catid=<%=rsFamilyware("CategoryID"%>&prodid=<%=rsFamilyware("ID"%>" style="text-decoration:none" onFocus="if(this.blur)this.blur()"><font face="Verdana, Arial, Helvetica, sans-serif" size="1" color=#000000> <%=rsFamilyware("Product"%></font></a></td>
</tr>

<%
Repeat7__index=Repeat7__index+1
Repeat7__numRows=Repeat7__numRows-1
rsFamilyware.MoveNext()
Wend
%>
</table>
</div>
</td></tr></table>
</td>
<td width="5"><img src="../images/1x1-pink-transp.gif" width=5></td>
</tr>
<tr>
<td width="5"><img src="../images/1x1-pink-transp.gif" width=5></td>
<td>
<!-- #BeginEditable "body" --> <!-- #EndEditable -->
</td>
<td width="5"><img src="../images/1x1-pink-transp.gif" width=5></td>
</tr>
</table>

Reply to this topic