layers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The problem I am having doesn't exactly use PHP but, if you guys would help
me out anyways, I would be very greatful.

Problem: I am using an image for the layout of the website. The image is
centered. I am trying to use a layer for the spots where content needs to be
added. However, depending on the different resolutions of the users, the
image will be at different coords (because it is centered). I am wondering
how do I get a layer to be based on the center of the user's screen and yet
still be in a fixed position? Below is the code i have so far, and if you
would like to see the error check out: www.junosamadesigns.com

====Code Begins Here====

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>JunoSamaDesigns.com - Website Graphic Design</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="includes/mainDesign.css" type="text/css">
<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);
//-->
</script>
</head>

<body bgcolor="#01628D">
<span id="Layer1" style="position:absolute; left:35px; top:332px;
width:148px; height:316px; z-index:1; overflow: scroll; visibility:
inherit;">
  <iFrame scrolling="yes" src="left.php" height="300" width="300"></iFrame>
</span>
<script language="javascript">
alert("We are currently under construction. Please check back soon!!");
</script>
<div align="center">
  <table width="794" height="707">
    <tr>
      <td colspan="2" align="center" valign="top"
background="images/layout.jpg">&nbsp;</td>
    </tr>
  </table>
</div>
</body>
</html>


====Code Ends Here====

Any help will be greatly appreciated!!

Sincerely,

Brad Ciszewski
www.BradTechnologies.com Web Services

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux