Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Header and cookie problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Header and cookie problem

 Post Reply Post Reply
Author
ibaker View Drop Down
Groupie
Groupie


Joined: 22 July 2005
Location: Australia
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote ibaker Quote  Post ReplyReply Direct Link To This Post Topic: Header and cookie problem
    Posted: 05 August 2005 at 10:16pm
I am using megaBB and have decided to evaluate Web Wiz to ascertain whether to switch over to Web Wiz but in doing so have come across a problem with including a site navigation within the header of the forum.

It seems that as default if you add a new post, leave and come back to the site and read the post, leave again and come back to the site it is showing that the post has been read - good thus far. BUT, when I include a site navigation structure in the header it seems to screw up the cookie as when I come back to the site the post is still showing that it is unread.

This is the contents of the header.asp file:
<html>
<head>

<script language="javascript" src="includes/default_javascript.js" type="text/javascript"></script>
<!--#include file="skin_file.asp" -->



<script language="JavaScript">
<!--
function FP_preloadImgs() {//v1.0
 var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
 for(var i=0; i<a.length; i++) { d.FP_imgs=new Image; d.FP_imgs.src=a; }
}

function FP_swapImg() {//v1.0
 var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
 n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
 elm.$src=elm.src; elm.src=args[n+1]; } }
}

function FP_getObjectByID(id,o) {//v1.0
 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
 else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
 return null;
}
// -->
</script>

</head>

<body bgcolor="White" text="Silver" link="#B57829" vlink="#D59846" alink="#D59846" topmargin=0 leftmargin=0 marginwidth="0" marginheight="0" onload="FP_preloadImgs(/*url*/'graphics/HeadSchools2.gif')">

<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr height="49">
    <td width="277"><img src="../graphics/Logo.gif" width="277" height="49" alt="Ultralight flying in Australia" border="0"></td>
   
    <td width="47" valign="bottom"><a href="/index.htm">
    <img border="0" id="img1" src="../graphics/Home.gif" height="49" width="47" alt="Find out more about flying Ultralights" onmouseover="FP_swapImg(1,0,/*id*/'img1',/*url*/'../graphics/Home2.gif')" onmouseout= "FP_swapImg(0,0,/*id*/'img1',/*url*/'../graphics/Home.gif')" fp-style="fp-btn: Border Bottom 1; fp-img-press: 0; fp-transparent: 1; fp-proportional: 0" fp-title></a></td>

    <td width="49" valign="bottom"><a href="../../about.htm">
    <img border="0" id="img2" src="../graphics/About.gif" height="49" width="49" alt="Find out more about flying Ultralights" onmouseover="FP_swapImg(1,0,/*id*/'img2',/*url*/'../graphics/About2.gif')" onmouseout ="FP_swapImg(0,0,/*id*/'img2',/*url*/'../graphics/About.gif')" fp-style="fp-btn: Border Bottom 1; fp-img-press: 0; fp-transparent: 1; fp-proportional: 0" fp-title></a></td>
   
    <td width="59" valign="bottom"><a href="../../aboutTraining.htm">
    <img border="0" id="img8" src="../graphics/Training.gif" height="49" width="59" alt="Ultralight training and schools in Australia" onmouseover="FP_swapImg(1,0,/*id*/'img8',/*url*/'../graphics/Training2.gif')" onmouseou t="FP_swapImg(0,0,/*id*/'img8',/*url*/'../graphics/Training.gif')" fp-style="fp-btn: Border Bottom 1; fp-img-press: 0; fp-transparent: 1; fp-proportional: 0" fp-title></a></td>

    <td width="55" valign="bottom"><a href="/aircraft.htm">
    <img border="0" id="img4" src="../graphics/Aircraft.gif" height="49" width="55" alt="Find out about the different types of planes that you can fly" onmouseover="FP_swapImg(1,0,/*id*/'img4',/*url*/'../graphics/Aircraft2.gif')" onmouseout="FP_ swapImg(0,0,/*id*/'img4',/*url*/'../graphics/Aircraft.gif')" fp-style="fp-btn: Border Bottom 1; fp-img-press: 0; fp-transparent: 1; fp-proportional: 0" fp-title></a></td>

    <td width="67" valign="bottom"><a href="/airworthy.htm">
    <img border="0" id="img5" src="../graphics/Airworthy.gif" height="49" width="67" alt="Airworthy notices to keep your flying safe" onmouseover="FP_swapImg(1,0,/*id*/'img5',/*url*/'../graphics/Airworthy2.gif')" onmouseout="F P_swapImg(0,0,/*id*/'img5',/*url*/'../graphics/Airworthy.gif')" fp-style="fp-btn: Border Bottom 1; fp-img-press: 0; fp-transparent: 1; fp-proportional: 0" fp-title></a></td>

    <td width="55" valign="bottom"><a href="/forms.htm">
    <img border="0" id="img6" src="../graphics/Forms.gif" height="49" width="55" alt="Dowload different forms and documents that you may need" onmouseover="FP_swapImg(1,0,/*id*/'img6',/*url*/'../graphics/Forms2.gif')" onmouseout="FP_sw apImg(0,0,/*id*/'img6',/*url*/'../graphics/Forms.gif')" fp-style="fp-btn: Border Bottom 1; fp-img-press: 0; fp-proportional: 0" fp-title></a></td>

    <td width="61" valign="bottom"><a href="/weather.htm">
    <img border="0" id="img7" src="../graphics/Links.gif" height="49" width="61" alt="A vast range of Ultralight Aviation links" onmouseover="FP_swapImg(1,0,/*id*/'img7',/*url*/'../graphics/Links2.gif')" onmouseout="FP_s wapImg(0,0,/*id*/'img7',/*url*/'../graphics/Links.gif')" fp-style="fp-btn: Border Bottom 1; fp-img-press: 0; fp-transparent: 1; fp-proportional: 0" fp-title></a></td>

    <td width="76" valign="bottom">
    <a href="/Forum">
    <img border="0" id="img3" src="../graphics/Forum2.gif" height="49" width="76" alt="Join the discussion forum with many other members of the Ultralight flying community"</a></a></td>
   
    <td valign="bottom">
    <img border="0" src="../graphics/HomeLine.gif" height="49" width="99%"></td>
</tr>
</table>


</br>


</body>
</html>



Edited by ibaker - 05 August 2005 at 11:47pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.