Forums
This topic is locked
Layers misplaced on Mac
Posted 24 Jan 2005 19:14:25
1
has voted
24 Jan 2005 19:14:25 marry ghorbanzadeh posted:
Hello,when I view my web pages on a Mac Machine the nav bar and the layers are misplaced and my pages look terrible, keep in mind that the pages look fine on a windows OS. My pages are centered so the 0xp option dose not works for me.
Anyone knows why? And how I can fix this problem?
Thanks,
M
Replies
Replied 24 Jan 2005 19:25:53
24 Jan 2005 19:25:53 Chris Charlton replied:
Information is required for this type of forum help: <b>Safari</b> (OS X)? <b>Firefox</b> (OS X)? <b>Camino</b> (OS X)? <b>Mac IE5</b> (OSX/OS9)?
FYI, Mac IE5.x is dead for well over a year now so point them to Safari/Firefox.
FYI, Mac IE5.x is dead for well over a year now so point them to Safari/Firefox.
Replied 28 Jan 2005 05:46:20
28 Jan 2005 05:46:20 marry ghorbanzadeh replied:
Hello Chris
I have tested the pages on Safari and Mac IE5 and got the same result.
This is the site If u would like to view the pages.
www.michela.bz/Sylvia/Home.asp
Thanks,
I have tested the pages on Safari and Mac IE5 and got the same result.
This is the site If u would like to view the pages.
www.michela.bz/Sylvia/Home.asp
Thanks,
Replied 28 Jan 2005 05:50:55
28 Jan 2005 05:50:55 marry ghorbanzadeh replied:
Here is the code:
Thanks,
M
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/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 MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#"
!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
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_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over"
{
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down"
{
nbArr = document[grpName];
if (nbArr)
for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
} }
}
//-->
</script>
<link href="Sylvia.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="442" height="200" border="0" align="center">
<tr>
<td><img src="website.home.jpg" width="1000" height="600">
<div id="Layer1" style="position:absolute; width:285px; height:74px; z-index:1; left: 103px; top: 53px;">
<table width="280" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="Home.asp" target="_top" onClick="MM_nbGroup('down','group1','Home','',1)" onMouseOver="MM_nbGroup('over','Home','','',1)" onMouseOut="MM_nbGroup('out')"><img src="Buttons/Home/home.but.jpg" alt="Home" name="Home" width="66" height="73" border="0" onload=""></a></td>
<td><a href="javascript:;" target="_top" onClick="MM_nbGroup('down','group1','Portofolio','',1)" onMouseOver="MM_nbGroup('over','Portofolio','','',1)" onMouseOut="MM_nbGroup('out')"><img src="Buttons/Home/portfolio.jpg" alt="" name="Portofolio" width="66" height="73" border="0" onload=""></a></td>
<td><a href="About_Me.asp" target="_self" onClick="MM_nbGroup('down','group1','About_Me','',1)" onMouseOver="MM_nbGroup('over','About_Me','','',1)" onMouseOut="MM_nbGroup('out')"><img name="About_Me" src="Buttons/Home/about.me.but.jpg" border="0" alt="About_Me" onload=""></a></td>
<td><a href="Contact_Page.asp" target="_top" onClick="MM_nbGroup('down','group1','Contact','',1)" onMouseOver="MM_nbGroup('over','Contact','','',1)" onMouseOut="MM_nbGroup('out')"><img name="Contact" src="Buttons/Home/contact.but.jpg" border="0" alt="Contact" onload=""></a></td>
</tr>
</table>
</div></td>
</tr>
</table>
</body>
</html>
Thanks,
M
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape"

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 MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#"

}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"

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_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over"

document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down"

nbArr = document[grpName];
if (nbArr)
for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
} }
}
//-->
</script>
<link href="Sylvia.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="442" height="200" border="0" align="center">
<tr>
<td><img src="website.home.jpg" width="1000" height="600">
<div id="Layer1" style="position:absolute; width:285px; height:74px; z-index:1; left: 103px; top: 53px;">
<table width="280" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="Home.asp" target="_top" onClick="MM_nbGroup('down','group1','Home','',1)" onMouseOver="MM_nbGroup('over','Home','','',1)" onMouseOut="MM_nbGroup('out')"><img src="Buttons/Home/home.but.jpg" alt="Home" name="Home" width="66" height="73" border="0" onload=""></a></td>
<td><a href="javascript:;" target="_top" onClick="MM_nbGroup('down','group1','Portofolio','',1)" onMouseOver="MM_nbGroup('over','Portofolio','','',1)" onMouseOut="MM_nbGroup('out')"><img src="Buttons/Home/portfolio.jpg" alt="" name="Portofolio" width="66" height="73" border="0" onload=""></a></td>
<td><a href="About_Me.asp" target="_self" onClick="MM_nbGroup('down','group1','About_Me','',1)" onMouseOver="MM_nbGroup('over','About_Me','','',1)" onMouseOut="MM_nbGroup('out')"><img name="About_Me" src="Buttons/Home/about.me.but.jpg" border="0" alt="About_Me" onload=""></a></td>
<td><a href="Contact_Page.asp" target="_top" onClick="MM_nbGroup('down','group1','Contact','',1)" onMouseOver="MM_nbGroup('over','Contact','','',1)" onMouseOut="MM_nbGroup('out')"><img name="Contact" src="Buttons/Home/contact.but.jpg" border="0" alt="Contact" onload=""></a></td>
</tr>
</table>
</div></td>
</tr>
</table>
</body>
</html>
Replied 28 Jan 2005 19:13:24
28 Jan 2005 19:13:24 Chris Charlton replied:
Hmm, can't figure what may be the issue... as for MacIE you may want to read up on the Mac IE box issue & DOCTYPE hacks.