Hey Alias, no worries on "not being clear", thanks for the help! I tried the slight alteration as you suggested as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/JavaScript" src="../../dynamic_font.js"></script>
<script type="text/JavaScript">
function doScroll(){
if (window.name) window.scrollTo(0, window.name);
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="/assets/css/site_master.css" rel="stylesheet" type="text/css" />
<link href="/assets/css/page_main.css" rel="stylesheet" type="text/css" />
<?PHP
define('EATMOO', TRUE);
require_once($_SERVER['DOCUMENT_ROOT'].'/assets/includes/site_config.inc.php');?>
<title>CODES .::. <?PHP echo $pageTitle;?></title>
</head>
<body onload="doScroll()" onunload="window.name=document.body.scrollTop">
<div class="siteWrapper">
<img src="/assets/img/banner.png" />
<div class="wrapperLeft">
<div class="windowLeft"></div>
<div id="content">
<?PHP require_once($_SERVER['DOCUMENT_ROOT'].'/assets/includes/site_nav.inc.php');?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <script type="text/JavaScript" src="../../dynamic_font.js"></script>
- <script type="text/JavaScript">
- function doScroll(){
- if (window.name) window.scrollTo(0, window.name);
- }
- </script>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link href="/assets/css/site_master.css" rel="stylesheet" type="text/css" />
- <link href="/assets/css/page_main.css" rel="stylesheet" type="text/css" />
- <?PHP
- define('EATMOO', TRUE);
- require_once($_SERVER['DOCUMENT_ROOT'].'/assets/includes/site_config.inc.php');?>
- <title>CODES .::. <?PHP echo $pageTitle;?></title>
- </head>
- <body onload="doScroll()" onunload="window.name=document.body.scrollTop">
- <div class="siteWrapper">
- <img src="/assets/img/banner.png" />
- <div class="wrapperLeft">
- <div class="windowLeft"></div>
- <div id="content">
- <?PHP require_once($_SERVER['DOCUMENT_ROOT'].'/assets/includes/site_nav.inc.php');?>
There still seems to be no change. For instance when the page loads from:
http://codes.local.ca/main/main.php?news=1
to
http://codes.local.ca/main/main.php?news=2
the scrollbar will not maintain an positioning.
You can see an online version at:
http://vpv4.net/codes2/index.php?news=1
Note that the server version doesn't currently have the proper javascript. I'm just showing you the server version to help illustrate the site in case i didn't explain it well enough before. You can select the different news posts and see the page reloading itself with the $_GET.
------edit
one thing i wanted to mention. Does it matter that you're using javascript in the body tag without declaring it as javascript? How does the browser know it's working with javascript?!