Jump to content
Larry Ullman's Book Forums

Recommended Posts

I have created a header with the usual items. ie logo and menue bar. If I run the header through the server all works fine, however if I include it on the home page everything appears except the menue bar. Obviously I have done something wrong.

 

The first code is from the header.html and the second from the index.php. Any help would be apreciated.

 

 

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<title><?php echo $page_title; ?></title>

<meta name="generator" content="The Recruitment Services - http://www.trsb.co.uk">

<style type="text/css">

div#container

{

width: 766px;

position: relative;

margin-top: 0px;

margin-left: auto;

margin-right: auto;

text-align: left;

}

body

{

text-align: center;

margin: 0;

background-color: #FFFFFF;

color: #000000;

}

</style>

<script type="text/javascript" src="jscookmenu.min.js"></script>

<style type="text/css">

a

{

color: #C8D7EB;

text-decoration: underline;

}

a:visited

{

color: #C8D7EB;

}

a:active

{

color: #C8D7EB;

}

a:hover

{

color: #376BAD;

text-decoration: underline;

}

</style>

<style type="text/css">

#Image1

{

border: 0px #000000 solid;

}

.ThemeMenuBar1Menu,

.ThemeMenuBar1SubMenuTable

{

font-family: Arial;

font-size: 13px;

font-weight: normal;

color: #376BAD;

text-align: left;

padding: 0;

cursor: pointer;

}

.ThemeMenuBar1MenuOuter

{

background-color: #BBCEE6;

border: 0;

}

.ThemeMenuBar1SubMenu

{

position: absolute;

visibility: hidden;

border: 0;

padding: 0;

border: 0;

}

.ThemeMenuBar1Menu td

{

padding: 3px 0px 3px 0px;

}

.ThemeMenuBar1SubMenuTable

{

color: #376BAD;

text-align: left;

background-color: #BBCEE6;

font-weight: normal;

font-style: normal;

text-decoration: none;

}

.ThemeMenuBar1SubMenuTable td

{

white-space: nowrap;

}

.ThemeMenuBar1MainItem

{

}

.ThemeMenuBar1MainItem,

.ThemeMenuBar1MainItemHover,

.ThemeMenuBar1MainItemActive,

.ThemeMenuBar1MenuItem,

.ThemeMenuBar1MenuItemHover,

.ThemeMenuBar1MenuItemActive

{

white-space: nowrap;

}

.ThemeMenuBar1MainItemHover,

.ThemeMenuBar1MainItemActive

{

color: #376BAD;

background-color: #EDF2F8;

font-weight: normal;

font-style: normal;

text-decoration: none;

}

.ThemeMenuBar1MenuItemHover,

.ThemeMenuBar1MenuItemActive

{

color: #376BAD;

background-color: #EDF2F8;

font-weight: normal;

font-style: normal;

text-decoration: none;

}

.ThemeMenuBar1MenuFolderLeft,

.ThemeMenuBar1MenuFolderRight,

.ThemeMenuBar1MenuItemLeft,

.ThemeMenuBar1MenuItemRight

{

padding: 3px 0px 3px 0px;

}

td.ThemeMenuBar1MainFolderText,

td.ThemeMenuBar1MainItemText

{

padding: 3px 5px 3px 5px;

}

.ThemeMenuBar1MenuFolderText,

.ThemeMenuBar1MenuItemText

{

padding: 3px 5px 3px 5px;

}

td.ThemeMenuBar1MenuSplit

{

overflow: hidden;

background-color: inherit;

}

div.ThemeMenuBar1MenuSplit

{

height: 1px;

margin: 0px 0px 0px 0px;

overflow: hidden;

background-color: inherit;

border-top: 1px solid #376BAD;

}

.ThemeMenuBar1MenuVSplit

{

display: block;

width: 1px;

margin: 0px 7px 0px 7px;

overflow: hidden;

background-color: inherit;

border-right: 1px solid #376BAD;

}

#Image3

{

border: 0px #000000 solid;

}

#Image4

{

border: 0px #000000 solid;

}

</style>

</head>

<body>

<div id="container">

<div id="wb_Image1" style="position:absolute;left:1px;top:5px;width:775px;height:108px;z-index:0;">

<img src="/trsb/images/Header.jpg" id="Image1" alt="" border="0" style="width:775px;height:108px;"></div>

<div id="wb_MenuBar1" style="position:absolute; left:179px; top:117px; width:450px; height:22px; z-index:1001;">

<div id="MenuBar1">

<ul style="display:none;">

<li><span></span><span><a href="index.php">Home</span></li>

<li><span></span><span>About</span></li>

<li><span></span><span>Contact</span></li>

<li><span></span><span>Employers</span></li>

<li><span></span><span>Jobseekers</span></li>

<li><span></span><span>Training</span></li>

<li><span></span><span>Extras</span></li>

</ul>

</div>

<script type="text/javascript">

<!--

var cmMenuBar1 =

{

mainFolderLeft: '',

mainFolderRight: '',

mainItemLeft: '',

mainItemRight: '',

folderLeft: '',

folderRight: '',

itemLeft: '',

itemRight: '',

mainSpacing: 0,

subSpacing: 0,

delay: 100,

offsetHMainAdjust: [0, 0],

offsetSubAdjust: [0, 0]

};

var cmThemeMenuBar1HSplit = [_cmNoClick, '<td colspan=3" class="ThemeMenuBar1MenuSplit"><div class="ThemeMenuBar1MenuSplit"><\/div><\/td&gt];

var cmThemeMenuBar1MainHSplit = [_cmNoClick, '<td colspan=3" class="ThemeMenuBar1MenuSplit"><div class="ThemeMenuBar1MenuSplit"><\/div><\/td&gt];

var cmThemeMenuBar1MainVSplit = [_cmNoClick, '<div class=ThemeMenuBar1MenuVSplit">|<\/div&gt];

cmDrawFromText('MenuBar1', 'hbr', cmMenuBar1, 'ThemeMenuBar1');

-->

</script>

</div>

<div id="wb_Image3" style="position:absolute; left:70px; top:116px; width:73px; height:23px; z-index:2;">

<img src="/trsb/images/img0050_02.gif" id="Image3" alt="Decrotive Arrow Pointing Left" border="0" style="width:73px;height:23px;"></div>

<div id="wb_Image4" style="position:absolute; left:658px; top:113px; width:72px; height:26px; z-index:3;">

<img src="/trsb/images/img0051_02.gif" id="Image4" alt="Decrotive Arrow Pointing Right" border="0" style="width:72px;height:26px;"></div>

</div>

</body>

</html>

 

 

 

<?php

$page_title = 'Home Page';

include ('includes/header.html')

?>

<title>Home Page</title>

<style type="text/css">

div#container

{

width: 994px;

position: relative;

margin-top: 0px;

margin-left: auto;

margin-right: auto;

text-align: left;

}

body

{

text-align: center;

margin: 0;

background-color: #FFFFFF;

color: #000000;

}

</style>

<style type="text/css">

a

{

color: #C8D7EB;

text-decoration: underline;

}

a:visited

{

color: #C8D7EB;

}

a:active

{

color: #C8D7EB;

}

a:hover

{

color: #376BAD;

text-decoration: underline;

}

a.style1:link

{

color: #0000FF;

}

a.style1:visited

{

color: #800080;

text-decoration: underline;

}

a.style1:active

{

color: #FF0000;

font-weight: bold;

text-decoration: underline;

}

a.style1:hover

{

color: #0000FF;

text-decoration: underline;

}

</style>

<style type="text/css">

#Line1

{

color: #E6E6FA;

background-color: #E6E6FA;

border-width: 0px;

}

#wb_Text3

{

background-color: transparent;

border: 0px #000000 solid;

padding: 0;

}

#wb_Text3 div

{

text-align: center;

}

#Image6

{

border: 0px #000000 solid;

}

#wb_Text1

{

background-color: transparent;

border: 0px #000000 solid;

padding: 0;

}

#wb_Text1 div

{

text-align: center;

}

#Image9

{

border: 0px #000000 solid;

}

#wb_Text2

{

background-color: transparent;

border: 0px #000000 solid;

padding: 0;

}

#wb_Text2 div

{

text-align: left;

}

#wb_Text4

{

background-color: transparent;

border: 0px #000000 solid;

padding: 0;

}

#wb_Text4 div

{

text-align: left;

}

#Image5

{

border: 0px #000000 solid;

}

#wb_Text5

{

background-color: transparent;

border: 0px #000000 solid;

padding: 0;

}

#wb_Text5 div

{

text-align: center;

}

#wb_Text6

{

background-color: transparent;

border: 0px #000000 solid;

padding: 0;

}

#wb_Text6 div

{

text-align: center;

}

#wb_Text7

{

background-color: transparent;

border: 0px #000000 solid;

padding: 0;

}

#wb_Text7 div

{

text-align: left;

}

#Image7

{

border: 0px #000000 solid;

}

#wb_Text23

{

background-color: transparent;

border: 0px #000000 solid;

padding: 0;

}

#wb_Text23 div

{

text-align: left;

}

#wb_Text24

{

background-color: transparent;

border: 0px #000000 solid;

padding: 0;

}

#wb_Text24 div

{

text-align: left;

}

#wb_Text22

{

background-color: transparent;

border: 0px #000000 solid;

padding: 0;

}

#wb_Text22 div

{

text-align: left;

}

#wb_Text25

{

background-color: transparent;

border: 0px #000000 solid;

padding: 0;

}

#wb_Text25 div

{

text-align: left;

}

#wb_Text26

{

background-color: transparent;

border: 0px #000000 solid;

padding: 0;

}

#wb_Text26 div

{

text-align: left;

}

#wb_Text27

{

background-color: transparent;

border: 0px #000000 solid;

padding: 0;

}

#wb_Text27 div

{

text-align: left;

}

#Image8

{

border: 0px #000000 solid;

}

#Image10

{

border: 0px #000000 solid;

}

#Image11

{

border: 0px #000000 solid;

}

#Image12

{

border: 0px #000000 solid;

}

#Image13

{

border: 0px #000000 solid;

}

#Image14

{

border: 0px #000000 solid;

}

#wb_Text8

{

background-color: transparent;

border: 0px #000000 solid;

padding: 0;

}

#wb_Text8 div

{

text-align: justify;

}

#wb_Text30

{

background-color: transparent;

border: 0px #000000 solid;

padding: 0;

}

#wb_Text30 div

{

text-align: center;

}

#wb_Text9

{

background-color: transparent;

border: 0px #000000 solid;

padding: 0;

}

#wb_Text9 div

{

text-align: left;

}

</style>

</head>

<body>

<div id="container">

<hr id="Line1" style="margin:0;padding:0;position:absolute;left:18px;top:717px;width:746px;height:75px;z-index:0;">

<div id="wb_Shape2" style="position:absolute;left:280px;top:195px;width:153px;height:175px;z-index:1;">

<img src="images/img0002.gif" id="Shape2" alt="" style="border-width:0;width:153px;height:175px;"></div>

<div id="wb_Text3" style="position:absolute;left:208px;top:150px;width:127px;height:18px;text-align:center;z-index:2;">

<span style="color:#000000;font-family:Arial;font-size:16px;">You are Here</span></div>

<div id="wb_Image6" style="position:absolute;left:341px;top:150px;width:62px;height:18px;z-index:3;">

<img src="images/img0060_02.gif" id="Image6" alt="" border="0" style="width:62px;height:18px;"></div>

<div id="wb_Text1" style="position:absolute;left:405px;top:149px;width:111px;height:18px;text-align:center;z-index:4;">

<span style="color:#000000;font-family:Arial;font-size:16px;">Home Page</span></div>

<div id="wb_Shape1" style="position:absolute;left:54px;top:194px;width:153px;height:175px;z-index:5;">

<img src="images/img0001.gif" id="Shape1" alt="" style="border-width:0;width:153px;height:175px;"></div>

<div id="wb_Image9" style="position:absolute;left:59px;top:236px;width:138px;height:8px;z-index:6;">

<img src="images/img0063_02.png" id="Image9" alt="" border="0" style="width:138px;height:8px;"></div>

<div id="wb_Text2" style="position:absolute;left:86px;top:199px;width:104px;height:23px;z-index:7;">

<span style="color:#000000;font-family:Arial;font-size:20px;">Employers</span></div>

<div id="wb_Text4" style="position:absolute;left:308px;top:199px;width:113px;height:23px;z-index:8;">

<span style="color:#000000;font-family:Arial;font-size:20px;">Jobseekers</span></div>

<div id="wb_Image5" style="position:absolute;left:285px;top:236px;width:142px;height:8px;z-index:9;">

<img src="images/img0063_02.png" id="Image5" alt="" border="0" style="width:142px;height:8px;"></div>

<div id="wb_Text5" style="position:absolute;left:52px;top:249px;width:154px;height:90px;text-align:center;z-index:10;">

<span style="color:#000000;font-family:Arial;font-size:16px;">Login<br><br> Create an account<br><br>Contact Us</span></div>

<div id="wb_Text6" style="position:absolute;left:279px;top:250px;width:149px;height:108px;text-align:center;z-index:11;">

<span style="color:#000000;font-family:Arial;font-size:16px;">Login<br><br>Create an account<br><br>Register for agency work</span></div>

<div id="wb_Shape4" style="position:absolute;left:513px;top:163px;width:252px;height:537px;z-index:12;">

<img src="images/img0003.gif" id="Shape4" alt="" style="border-width:0;width:252px;height:537px;"></div>

<div id="wb_Text7" style="position:absolute;left:588px;top:171px;width:147px;height:23px;z-index:13;">

<span style="color:#000000;font-family:Arial;font-size:20px;">Job Sectors</span></div>

<div id="wb_Image7" style="position:absolute;left:526px;top:203px;width:227px;height:6px;z-index:14;">

<img src="images/img0063_02.png" id="Image7" alt="" border="0" style="width:227px;height:6px;"></div>

<div id="wb_Text23" style="position:absolute;left:610px;top:241px;width:94px;height:32px;z-index:15;">

<span style="color:#000000;font-family:Arial;font-size:13px;">Skilled Workers</span></div>

<div id="wb_Text24" style="position:absolute;left:610px;top:323px;width:114px;height:30px;z-index:16;">

<span style="color:#000000;font-family:Arial;font-size:12px;">Plant & Construction</span></div>

<div id="wb_Text22" style="position:absolute;left:609px;top:400px;width:115px;height:30px;z-index:17;">

<span style="color:#000000;font-family:Arial;font-size:12px;">Transport & logistics</span></div>

<div id="wb_Text25" style="position:absolute;left:609px;top:484px;width:120px;height:30px;z-index:18;">

<span style="color:#000000;font-family:Arial;font-size:12px;">Catering & Hospitality</span></div>

<div id="wb_Text26" style="position:absolute;left:609px;top:567px;width:82px;height:30px;z-index:19;">

<span style="color:#000000;font-family:Arial;font-size:12px;">Office & Admin</span></div>

<div id="wb_Text27" style="position:absolute;left:628px;top:651px;width:104px;height:30px;z-index:20;">

<span style="color:#000000;font-family:Arial;font-size:12px;">General Workforce</span></div>

<div id="wb_Image8" style="position:absolute;left:524px;top:296px;width:71px;height:71px;z-index:21;">

<img src="images/constructionwork.jpg" id="Image8" alt="" border="0" style="width:71px;height:71px;"></div>

<div id="wb_Image10" style="position:absolute;left:523px;top:214px;width:76px;height:74px;z-index:22;">

<img src="images/skilledwork.jpg" id="Image10" alt="" border="0" style="width:76px;height:74px;"></div>

<div id="wb_Image11" style="position:absolute;left:523px;top:378px;width:74px;height:68px;z-index:23;">

<img src="images/transport.jpg" id="Image11" alt="" border="0" style="width:74px;height:68px;"></div>

<div id="wb_Image12" style="position:absolute;left:519px;top:463px;width:89px;height:60px;z-index:24;">

<img src="images/catering.jpg" id="Image12" alt="" border="0" style="width:89px;height:60px;"></div>

<div id="wb_Image13" style="position:absolute;left:519px;top:541px;width:86px;height:75px;z-index:25;">

<img src="images/office.jpg" id="Image13" alt="" border="0" style="width:86px;height:75px;"></div>

<div id="wb_Image14" style="position:absolute;left:519px;top:631px;width:99px;height:59px;z-index:26;">

<img src="images/general.jpg" id="Image14" alt="" border="0" style="width:99px;height:59px;"></div>

<div id="wb_Text8" style="position:absolute;left:18px;top:403px;width:456px;height:289px;text-align:justify;z-index:27;">

<span style="color:#000000;font-family:Arial;font-size:15px;">We supply staff on a Temporary, Permanent and Temp to Perm basis to some well known Blue Chip companies and Local Authorities all over the UK. <br><br>Whether you’re an Employer looking for staff or a Jobseeker looking for work we can help. Employers can also post permanent vacancies and search CVs on this site. Jobseekers just register and search for currently active jobs or complete our agency registration form and we will contact you with further information. <br><br>You can access most of this site by using the navigation bar above. <br><br>For privacy reasons some areas are protected and can only be accessed by registered users. <br><br>You can create a free account at any time. Or if you have already registered please log in.</span></div>

<div id="wb_Text30" style="position:absolute;left:134px;top:737px;width:468px;height:14px;text-align:center;z-index:28;">

<span style="color:#004080;font-family:Arial;font-size:11px;">Copyright © 2007 by "Stubbs Management Services Limited" All Rights reserved</span></div>

<div id="wb_Text9" style="position:absolute;left:213px;top:765px;width:335px;height:16px;z-index:29;">

<span style="color:#000000;font-family:Arial;font-size:13px;"><strong><a href="./terms_and_legal/site_terms.html" class="style1">Site Terms</a> | Privacy Policy | <a href="./terms_and_legal/disclaimer.html" class="style1">Disclaimer</a> | <a href="./site_map.html" class="style1">Site Map</a> | </strong></span></div>

</div>

</body>

</html>

Link to comment
Share on other sites

seriously???

 

There are so many things wrong with this post that you are not going to get any help unless you amend it.

  1. Way too much code.
     
  2. Insert your code within code tags - or use the <> icon on the edit tool bar
     
  3. Only include the code that is relevant - no one is going to wade through all that code
     
  4. This is not really a forum for help on html and css - we will be happy to comment on html and css code but post in the correct forum.
     
  5. At least take out the css and put into an external file to link to
     
  6. Have you run your code through the W3C validator?

Link to comment
Share on other sites

Thanks lads Iv'e fixed it. The menue bar is one of those mega ones that I tried but I just went back to a tab menue and it works fine. Still cant work out why it apears on the header page but when you include the header page on the home page it vanishes I thought it was the relative to option in DW but that didn't work either.

 

Thanks for the input

Link to comment
Share on other sites

 Share

×
×
  • Create New...