Creating Java/DHTML Vertical Navigation Menu in FrontPage

S

sharsy

Hello,

I'm currently creating a new version of our internal office intranet
using Microsoft FrontPage and one of the features I would like to us
is a menu of sorts using Java/DHTML.

The navigation pane/menu will be on the left-hand side of the screen
so it will be a vertical menu - much like the example on this page:
http://dhtml-menu.com/examples/ex2-vertical-dhtml-menu.html.

What I would like to know is:

1. Is it possible to create this sort of menu without purchasing an
add-on for FrontPage?
2. If you need to purchase an add-on, does anyone have any
recommendations for a program?

Thank you!
 
T

Trevor Lawrence

sharsy said:
Hello,

I'm currently creating a new version of our internal office intranet
using Microsoft FrontPage and one of the features I would like to us
is a menu of sorts using Java/DHTML.

The navigation pane/menu will be on the left-hand side of the screen
so it will be a vertical menu - much like the example on this page:
http://dhtml-menu.com/examples/ex2-vertical-dhtml-menu.html.

What I would like to know is:

1. Is it possible to create this sort of menu without purchasing an
add-on for FrontPage?
2. If you need to purchase an add-on, does anyone have any
recommendations for a program?

Thank you!

1. Yes. This site seems to be trying to get you to buy the code, but there
are other sites where similar examples can be downloaded for free.
But you need to be able to edit your HTML code using the Code or HTML tab in
FP


2. See 1. I may be able to find a reference to the free sites, or others may
respond.
 
S

Stefan B Rusynko

Or look at http://www.dynamicdrive.com/dynamicindex1/

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| Take a look at http://www.seoconsultants.com/css/menus/tutorial/
|
| --
| Ron Symonds - Microsoft MVP (FrontPage)
| Reply only to group - emails will be deleted unread.
|
| http://www.rxs-enterprises.org/fp
|
|
|
|
| |
| > Hello,
| >
| > I'm currently creating a new version of our internal office intranet
| > using Microsoft FrontPage and one of the features I would like to us
| > is a menu of sorts using Java/DHTML.
| >
| > The navigation pane/menu will be on the left-hand side of the screen
| > so it will be a vertical menu - much like the example on this page:
| > http://dhtml-menu.com/examples/ex2-vertical-dhtml-menu.html.
| >
| > What I would like to know is:
| >
| > 1. Is it possible to create this sort of menu without purchasing an
| > add-on for FrontPage?
| > 2. If you need to purchase an add-on, does anyone have any
| > recommendations for a program?
| >
| > Thank you!
|
 
M

Murray

And just to clarify, there are TWO things you must avoid -

1. Anything Java (it's actually javascript) - Java would bring a whole
cascade of problems that you don't even want to consider.
2. When you use whatever you use to make your menu, you *must* be able to
see your menu links in the body of the HTML code as ordinary anchors, e.g.,

<a href="whatever.html">Whatever</a>

If you cannot satisfy this second caveat, then your menu will not be usable
by search engines (not a desireable outcome) or by those using screen
assistive devices (also not desirable), or, for that matter, by anyone with
javascript disabled (and there are measurable numbers of such people).
 
S

sharsy

I have looked at Stefan's link to Dynamic Drive - it seamed to be the
best beginner's guide for me to use. I have opted to use the AnyLink
Vertical Menu because I was having trouble to get the drop down menus
to appear on the right of the original menu (they were displaying on
the left and I could not see them). I am still having a problem
however with changing the links on the secondary drop-down menu - I
would like the user to be able to click on them and they open up a new
document in the body frame of my FrontPage Intranet.

Here is the HTML Code I'm Using:

//Contents for menu 5
var menu5=new Array()
menu5[0]='<a href="http://www.javascriptkit.com/cutpastejava.shtml"
style="color: #000000">Administrative</a>'
menu5[1]='<a href="http://www.javascriptkit.com/javaindex.shtml"
style="color: #000000">Computers</a>'
menu5[2]='<a href="http://news.bbc.co.uk" style="color: #000000">HRM</
a>'
menu5[4]='<a href="http://www.javascriptkit.com/java/" style="color:
#000000">Management</a>'
menu5[3]='<a href="http://www.javascriptkit.com/dhtmltutors/"
 
S

sharsy

Also,

in another menu I have the following script:


<script type="text/javascript">

/***********************************************
* AnyLink Vertical Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="http://www.javascriptkit.com">JavaScript Kit</a>'
menu1[1]='<a href="http://www.freewarejava.com">Freewarejava.com</a>'
menu1[2]='<a href="http://codingforums.com">Coding Forums</a>'
menu1[3]='<a href="http://www.cssdrive.com">CSS Drive</a>'
menu1[4]='<a href="http://tools.dynamicdrive.com/
imageoptimizer/">Image Optimizer</a>'


//Contents for menu 2
var menu2=new Array()
menu2[0]='<a href="Q:\intranet new\Audit\BSA\BSA.htm"
target="_blank"style="color: #000000">BSA</a>'
menu2[1]='<a href="Q:\intranet new\Audit\Statutory\Statutory.htm"
style="color: #000000">Statutory</a>'
menu2[2]='<a href="Q:\intranet new\Audit\Trust Accounts\Trust
Accounts.htm" style="color: #000000">Trust Accounts</a>'

I get an error message saying that 'Cannot find 'file:///Q:intranet
%20newaudit%08sa.htm' whenever I try and click on the BSA link - is
there a problem with linking to an internally housed htm page?

I'm am not very experienced in working with code - but I'm pretty good
at learning computer-related stuff so hopefully I'll get there!!!
 
M

Murray

That would be a very poor menu to use. Note that the code for the menu
links is part of the javascript. This means the following -

1. The menu will not work when javascript is disabled.
2. That being the case, you are forcibly excluding the following classes of
visitors -
a. People who voluntarily/involuntarily surf with javascript disabled
b. People using screen assistive devices to help with vision problems
c. Search engine spiders trying to index your site
d. YOU when you want to change a menu link

Such menus should be banned from the web! If you cannot see the link in the
plaintext HTML on your page, you should expect these problems. Of course,
that implies that you know how to recognize the proper HTML....

--
Murray
MVP Expression Web


sharsy said:
I have looked at Stefan's link to Dynamic Drive - it seamed to be the
best beginner's guide for me to use. I have opted to use the AnyLink
Vertical Menu because I was having trouble to get the drop down menus
to appear on the right of the original menu (they were displaying on
the left and I could not see them). I am still having a problem
however with changing the links on the secondary drop-down menu - I
would like the user to be able to click on them and they open up a new
document in the body frame of my FrontPage Intranet.

Here is the HTML Code I'm Using:

//Contents for menu 5
var menu5=new Array()
menu5[0]='<a href="http://www.javascriptkit.com/cutpastejava.shtml"
style="color: #000000">Administrative</a>'
menu5[1]='<a href="http://www.javascriptkit.com/javaindex.shtml"
style="color: #000000">Computers</a>'
menu5[2]='<a href="http://news.bbc.co.uk" style="color: #000000">HRM</
a>'
menu5[4]='<a href="http://www.javascriptkit.com/java/" style="color:
#000000">Management</a>'
menu5[3]='<a href="http://www.javascriptkit.com/dhtmltutors/"
 
S

sharsy

The menus are only for our internal intranet - which is accessed by
everyone on the same server (and we have java installed) so that won't
be a problem.
 
S

sharsy

Using Javascript is not a problem, as I said in my original post the
menu is for our internal intranet - not an external webpage for the
internet. We all work off the one server which is java enabled so
that's not an issue.
 
T

Trevor Lawrence

Reply in-line

sharsy said:
Using Javascript is not a problem, as I said in my original post the
menu is for our internal intranet - not an external webpage for the
internet. We all work off the one server which is java enabled so
that's not an issue.

Given that it is an intranet application where Javascript is enabled on the
server, there should be no problem.
(I am not sure that Java is relevant - it doesn't appear to be used at all)

However you wrote
sharsy said:
........................................................ I am still
having a problem
however with changing the links on the secondary drop-down menu - I
would like the user to be able to click on them and they open up a new
document in the body frame of my FrontPage Intranet.

Here is the HTML Code I'm Using:

//Contents for menu 5
var menu5=new Array()
menu5[0]='<a href="http://www.javascriptkit.com/cutpastejava.shtml"
style="color: #000000">Administrative</a>'
menu5[1]='<a href="http://www.javascriptkit.com/javaindex.shtml"
style="color: #000000">Computers</a>'
menu5[2]='<a href="http://news.bbc.co.uk" style="color: #000000">HRM</
a>'
menu5[4]='<a href="http://www.javascriptkit.com/java/" style="color:
#000000">Management</a>'
menu5[3]='<a href="http://www.javascriptkit.com/dhtmltutors/"
style="color: #000000">Training</a>'

The links, as you have written them, will go directly to the page listed and
overwrite the open page.

Do you want to open the new page and leave the calling page open?
If so, try this
var menu5=new Array(
'<a href="page0.html" target="_blank" >Administrative</a>'
, '<a href="page1.html" target="_blank" >Computers</a>'
, '<a href="page2.html" target="_blank" >HRM</a>'
, '<a href="page3.html" target="_blank" >Training</a>'
, '<a href="page4.html" target="_blank" >Management</a>' )
where page0.html , page1.html are the pages you want to open.

BTW, style="color: #000000" is unnecessary - this is the default text colour
of black

However you use the phrase "body frame" which makes me wonder - do you have
a framed site?
If you do, then you will have to code this differently

If not, you would still want to ensure that page0.html, page1.html, etc have
navigation back to the page which opens them. A simple link back could be
<input type="button" value="Home" onclick="location.href='index.html'" /> ,
but you may already have a navigation scheme set up
 
R

Ronx

The default colour is not necessarily black. In my installation of
FireFox the default colour is Orange, with a default background colour
set to grey. I have set this up so that any page without text or
background colour settings can be spotted easily. It is surprising how
many web sites do not have text colours and background colours set,
relying on the "out of the box" defaults of browsers. FYI, the "out of
the box" default background colour in NN4 is grey, so defaults cannot be
relied on to be black or white in all browsers.

--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp




Reply in-line

sharsy said:
Using Javascript is not a problem, as I said in my original post the
menu is for our internal intranet - not an external webpage for the
internet. We all work off the one server which is java enabled so
that's not an issue.

Given that it is an intranet application where Javascript is enabled on the
server, there should be no problem.
(I am not sure that Java is relevant - it doesn't appear to be used at all)

However you wrote
sharsy said:
........................................................ I am still
having a problem
however with changing the links on the secondary drop-down menu - I
would like the user to be able to click on them and they open up a new
document in the body frame of my FrontPage Intranet.

Here is the HTML Code I'm Using:

//Contents for menu 5
var menu5=new Array()
menu5[0]='<a href="http://www.javascriptkit.com/cutpastejava.shtml"
style="color: #000000">Administrative</a>'
menu5[1]='<a href="http://www.javascriptkit.com/javaindex.shtml"
style="color: #000000">Computers</a>'
menu5[2]='<a href="http://news.bbc.co.uk" style="color: #000000">HRM</
a>'
menu5[4]='<a href="http://www.javascriptkit.com/java/" style="color:
#000000">Management</a>'
menu5[3]='<a href="http://www.javascriptkit.com/dhtmltutors/"
style="color: #000000">Training</a>'

The links, as you have written them, will go directly to the page listed and
overwrite the open page.

Do you want to open the new page and leave the calling page open?
If so, try this
var menu5=new Array(
'<a href="page0.html" target="_blank" >Administrative</a>'
, '<a href="page1.html" target="_blank" >Computers</a>'
, '<a href="page2.html" target="_blank" >HRM</a>'
, '<a href="page3.html" target="_blank" >Training</a>'
, '<a href="page4.html" target="_blank" >Management</a>' )
where page0.html , page1.html are the pages you want to open.

BTW, style="color: #000000" is unnecessary - this is the default text colour
of black

However you use the phrase "body frame" which makes me wonder - do you have
a framed site?
If you do, then you will have to code this differently

If not, you would still want to ensure that page0.html, page1.html, etc have
navigation back to the page which opens them. A simple link back could be
<input type="button" value="Home" onclick="location.href='index.html'" /> ,
but you may already have a navigation scheme set up
 
R

Ronx

Java is not an issue since Java is not used.

JavaScript may still be an issue. Enabling JavaScript on the server is
not any help, since the JavaScript runs on the clients, not on the
server - all your *users* must have JavaScript (not Java) enabled in
their browsers.
 
S

sharsy

Reply in-line


Using Javascript is not a problem, as I said in my original post the
menu is for our internal intranet - not an external webpage for the
internet. We all work off the one server which is java enabled so
that's not an issue.

Given that it is an intranet application where Javascript is enabled on the
server, there should be no problem.
(I am not sure that Java is relevant - it doesn't appear to be used at all)






........................................................  I am still
having a problem
however with changing the links on the secondary drop-down menu - I
would like the user to be able to click on them and they open up a new
document in the body frame of my FrontPage Intranet.
Here is the HTML Code I'm Using:
//Contents for menu 5
var menu5=new Array()
menu5[0]='<a href="http://www.javascriptkit.com/cutpastejava.shtml"
style="color: #000000">Administrative</a>'
menu5[1]='<a href="http://www.javascriptkit.com/javaindex.shtml"
style="color: #000000">Computers</a>'
menu5[2]='<a href="http://news.bbc.co.uk" style="color: #000000">HRM</
a>'
menu5[4]='<a href="http://www.javascriptkit.com/java/" style="color:
#000000">Management</a>'
menu5[3]='<a href="http://www.javascriptkit.com/dhtmltutors/"
style="color: #000000">Training</a>'

The links, as you have written them, will go directly to the page listed and
overwrite the open page.

Do you want to open the new page and leave the calling page open?
If so, try this
var menu5=new Array(
   '<a href="page0.html" target="_blank" >Administrative</a>'
,  '<a href="page1.html" target="_blank" >Computers</a>'
,  '<a href="page2.html" target="_blank" >HRM</a>'
,  '<a href="page3.html" target="_blank" >Training</a>'
,  '<a href="page4.html" target="_blank" >Management</a>' )
where page0.html , page1.html are the pages you want to open.

BTW, style="color: #000000" is unnecessary - this is the default text colour
of black

However you use the phrase "body frame" which makes me wonder - do you have
a framed site?
If you do, then you will have to code this differently

If not, you would still want to ensure that page0.html, page1.html, etc have
navigation back to the page which opens them. A simple link back could be
<input type="button" value="Home" onclick="location.href='index.html'" /> ,
but you may already have a navigation scheme set up
--
Trevor Lawrence
Canberra
Web Sitehttp://trevorl.mvps.org- Hide quoted text -

- Show quoted text -

Hi Trevor, yeah I'm using a frames page that has 4 parts - a top
banner, three frames underneath this - the left hand side is the
navigation menu, the middle one is the body and the right hand side is
a links menu. When an option is chosen from the left hand side
navigation menu, I would like just the middle body frame to change
only. I'm not sure how this will work though! Could you please assist
me on the coding?
Thank you!
 
R

Ronx

Add a <base target="framename"> tag to the <head section of the
navigation frame, where framename is the name of the frame with the
content.

Example:

<html>
<head>
<title>blah</title>
<base target="maincontent">
</head>
<body>
Navigation
</body>
</html>
--
Ron Symonds - Microsoft MVP (Expression)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp




Reply in-line


Using Javascript is not a problem, as I said in my original post the
menu is for our internal intranet - not an external webpage for the
internet. We all work off the one server which is java enabled so
that's not an issue.

Given that it is an intranet application where Javascript is enabled on the
server, there should be no problem.
(I am not sure that Java is relevant - it doesn't appear to be used at all)






........................................................  I am still
having a problem
however with changing the links on the secondary drop-down menu - I
would like the user to be able to click on them and they open up a new
document in the body frame of my FrontPage Intranet.
Here is the HTML Code I'm Using:
//Contents for menu 5
var menu5=new Array()
menu5[0]='<a href="http://www.javascriptkit.com/cutpastejava.shtml"
style="color: #000000">Administrative</a>'
menu5[1]='<a href="http://www.javascriptkit.com/javaindex.shtml"
style="color: #000000">Computers</a>'
menu5[2]='<a href="http://news.bbc.co.uk" style="color: #000000">HRM</
a>'
menu5[4]='<a href="http://www.javascriptkit.com/java/" style="color:
#000000">Management</a>'
menu5[3]='<a href="http://www.javascriptkit.com/dhtmltutors/"
style="color: #000000">Training</a>'

The links, as you have written them, will go directly to the page listed and
overwrite the open page.

Do you want to open the new page and leave the calling page open?
If so, try this
var menu5=new Array(
   '<a href="page0.html" target="_blank" >Administrative</a>'
,  '<a href="page1.html" target="_blank" >Computers</a>'
,  '<a href="page2.html" target="_blank" >HRM</a>'
,  '<a href="page3.html" target="_blank" >Training</a>'
,  '<a href="page4.html" target="_blank" >Management</a>' )
where page0.html , page1.html are the pages you want to open.

BTW, style="color: #000000" is unnecessary - this is the default text colour
of black

However you use the phrase "body frame" which makes me wonder - do you have
a framed site?
If you do, then you will have to code this differently

If not, you would still want to ensure that page0.html, page1.html, etc have
navigation back to the page which opens them. A simple link back could be
<input type="button" value="Home" onclick="location.href='index.html'" /> ,
but you may already have a navigation scheme set up
--
Trevor Lawrence
Canberra
Web Sitehttp://trevorl.mvps.org- Hide quoted text -

- Show quoted text -

Hi Trevor, yeah I'm using a frames page that has 4 parts - a top
banner, three frames underneath this - the left hand side is the
navigation menu, the middle one is the body and the right hand side is
a links menu. When an option is chosen from the left hand side
navigation menu, I would like just the middle body frame to change
only. I'm not sure how this will work though! Could you please assist
me on the coding?
Thank you!
 
S

sharsy

hmmm well I've decided to change the style of my navigation to an
accordian menu so that I won't have to have a really wide pane. I
would like to know how I can get the font/highlighting of text that is
a hyperlink that opens up a new page in the "main" frame to change
colour once it is selected. This is so people can see what page
they're on by looking at the highlighted part on the navigation menu.
Accordingly, when you navigation to a different page, the old page's
link will go back to normal and the new link will be highlighted/font
will change colour. Does anyone know how to do this? Thank you!

Here is the HTML:

<style type="text/css">

..urbangreymenu{
width: 190px; /*width of menu*/
}

..urbangreymenu .headerbar{
font: bold 16px Tahoma;
color: black;
background: #A5CF63 url(arrowstop.gif) no-repeat 8px 6px; /*last 2
values are the x and y coordinates of bullet image*/
margin-bottom: 0; /*bottom spacing between header and rest of
content*/
text-transform: uppercase;
padding: 7px 0 7px 31px; /*31px is left indentation of header text*/
}

..urbangreymenu .headerbar a{
text-decoration: none;
color: black;
display: block;
}

..urbangreymenu ul{
list-style-type: none;
margin: 0;
padding: 0;
margin-bottom: 0; /*bottom spacing between each UL and rest of
content*/
}

..urbangreymenu ul li{
padding-bottom: 2px; /*bottom spacing between menu items*/
}

..urbangreymenu ul li a{
font: bold 14px Tahoma;
color: white;
background: #800080;
display: block;
padding: 5px 0;
line-height: 17px;
padding-left: 8px; /*link text is indented 8px*/
text-decoration: none;
}

..urbangreymenu ul li a:visited{
color: white;
}

..urbangreymenu ul li a:hover{ /*hover state CSS*/
color: white;
background: black;
}

</style>
 
M

Murray

We would need to see the page and its CSS (you have shown us only the CSS).
Can you upload it and post a link?
 
S

sharsy

I don't know a way of just uploading one particular page to a website
- my boss would prefer me not too as he's worried about privacy etc.
I've attached the entire code for my navigation manu - I'm hoping that
this may be sufficient! If not, if you know of a free place to jsut
upload one page then that would be very helpful!

<html>

<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>CSS Library</title>
<base target="main">
</head>

<body bgcolor="#800080">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<script type="text/javascript" src="jquery-1.2.6.pack.js"></script>

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

/***********************************************
* Accordion Content script- (c) Dynamic Drive DHTML code library
(www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/

</script>

<script type="text/javascript">

ddaccordion.init({
headerclass: "headerbar", //Shared CSS class name of headers group
contentclass: "submenu", //Shared CSS class name of contents group
revealtype: "mouseover", //Reveal content when user clicks or
onmouseover the header? Valid value: "click" or "mouseover
mouseoverdelay: 200, //if revealtype="mouseover", set delay in
milliseconds before header expands onMouseover
collapseprev: true, //Collapse previous content (so only one open at
any time)? true/false
defaultexpanded: [0], //index of content(s) open by default [index1,
index2, etc] [] denotes no content
onemustopen: true, //Specify whether at least one header should be
open always (so never all headers closed)
animatedefault: false, //Should contents open by default be animated
into view?
persiststate: true, //persist state of opened contents within browser
session?
toggleclass: ["", "selected"], //Two CSS classes to be applied to the
header when it's collapsed and expanded, respectively ["class1",
"class2"]
togglehtml: ["", "", ""], //Additional HTML added to the header when
it's collapsed and expanded, respectively ["position", "html1",
"html2"] (see docs)
animatespeed: "normal", //speed of animation: integer in milliseconds
(ie: 200), or keywords "fast", "normal", or "slow"
oninit:function(headers, expandedindices){ //custom code to run when
headers have initalized
//do nothing
},
onopenclose:function(header, index, state, isuseractivated){ //custom
code to run whenever a header is opened or closed
//do nothing
}
})

</script>

<style type="text/css">

..urbangreymenu{
width: 190px; /*width of menu*/
}

..urbangreymenu .headerbar{
font: bold 14px Tahoma;
color: black;
background: #A5CF63 url(arrowstop.gif) no-repeat 8px 6px; /*last 2
values are the x and y coordinates of bullet image*/
margin-bottom: 0; /*bottom spacing between header and rest of
content*/
text-transform: uppercase;
padding: 7px 0 7px 8px; /*8px is left indentation of header text*/
}

..urbangreymenu .headerbar a{
text-decoration: none;
color: black;
display: block;
}

..urbangreymenu ul{
list-style-type: none;
margin: 0;
padding: 0;
margin-bottom: 0; /*bottom spacing between each UL and rest of
content*/
}

..urbangreymenu ul li{
padding-bottom: 2px; /*bottom spacing between menu items*/
}

..urbangreymenu ul li a{
font: bold 14px Tahoma;
color: white;
background: #800080;
display: block;
padding: 5px 0;
line-height: 17px;
padding-left: 8px; /*link text is indented 8px*/
text-decoration: none;
}

..urbangreymenu ul li a:visited{
color: white;
}

..urbangreymenu ul li a:hover{ /*hover state CSS*/
color: white;
background: black;
}

</style>

<body bgcolor="#800080">

<div class="urbangreymenu">

<h3 class="headerbar"><a href="http://www.dynamicdrive.com/
style/">Audit</a></h3>
<ul class="submenu">
<li><a href="Audit/BSA/BSA.htm">BSA</a></li>
<li><a href="Audit/Statutory/Statutory.htm">Statutory</a></li>
<li><a href="Audit/Trust Accounts/Trust Accounts.htm">Trust Accounts</
a></li>
</ul>

<h3 class="headerbar"><a href="http://
www.javascriptkit.com">Compliance</a></h3>
Activity Statements</a></li>
<li><a href="http://www.javascriptkit.com/javatutors/">Corp Sec</a></
li>
<li><a href="http://www.javascriptkit.com/jsref/">FBT</a></li>
<li><a href="http://www.javascriptkit.com/dhtmltutors/">Financial
statements</a></li>
<li><a href="http://www.javascriptkit.com/howto/">Tax</a></li>
</ul>

<h3 class="headerbar"><a href="http://www.javascriptkit.com">Financial
Planning</a></h3>
<ul class="submenu">
<li><a href="http://www.javascriptkit.com/cutpastejava.shtml" >TBA</
a></li>
<li><a href="http://www.javascriptkit.com/javatutors/">TBA</a></li>
<li><a href="http://www.javascriptkit.com/jsref/">TBA</a></li>
</ul>

<h3 class="headerbar"><a href="http://www.javascriptkit.com">Internal</
a></h3>
Administrative</a></li>
<li><a href="http://www.javascriptkit.com/javatutors/">Computers</a></
li>
<li><a href="http://www.javascriptkit.com/jsref/">HRM</a></li>
<li><a href="http://www.javascriptkit.com/dhtmltutors/">Management</
a></li>
<li><a href="http://www.javascriptkit.com/howto/">Training</a></li>
</ul>


<h3 class="headerbar"><a href="http://www.javascriptkit.com">Library</
a></h3>
<ul class="submenu">
<li><a href="http://www.javascriptkit.com/cutpastejava.shtml" >ABN</
a></li>
<li><a href="http://www.javascriptkit.com/javatutors/">ATR</a></li>
<li><a href="http://www.javascriptkit.com/jsref/">Solutions</a></li>
<li><a href="http://www.javascriptkit.com/dhtmltutors/">Special
Advice</a></li>
</ul>


<h3 class="headerbar"><a href="http://www.javascriptkit.com">Super
Funds</a></h3>
<ul class="submenu">
<li><a href="http://www.javascriptkit.com/cutpastejava.shtml" >Audit</
a></li>
<li><a href="http://www.javascriptkit.com/javatutors/">Financial
Statements</a></li>
<li><a href="http://www.javascriptkit.com/jsref/">Tax</a></li>
</ul>


</div>

</body>

</html>

</body>

</html>
 
M

Murray

If this is the code from your page, then it's badly structured -

<html>

<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>CSS Library</title>
<base target="main">
</head>

<body bgcolor="#800080">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<script type="text/javascript" src="jquery-1.2.6.pack.js"></script>

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

You cannot have HTML content ABOVE the doctype as you show here. Change
that to this -


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
<meta http-equiv="Content-Type" content="text/html;charset=windows-1252">
<title>CSS Library</title>
<base target="main">
<script type="text/javascript" src="jquery-1.2.6.pack.js"></script>

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

Then further down, change this -

</style>

<body bgcolor="#800080">

to this -

</style>
</head>
<body bgcolor="#800080">

and finally at the end of the page, change this -

</body>

</html>

</body>

</html>

to this -

</body>

</html>


--
Murray
MVP Expression Web


sharsy said:
I don't know a way of just uploading one particular page to a website
- my boss would prefer me not too as he's worried about privacy etc.
I've attached the entire code for my navigation manu - I'm hoping that
this may be sufficient! If not, if you know of a free place to jsut
upload one page then that would be very helpful!

<html>

<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>CSS Library</title>
<base target="main">
</head>

<body bgcolor="#800080">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<script type="text/javascript" src="jquery-1.2.6.pack.js"></script>

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

/***********************************************
* Accordion Content script- (c) Dynamic Drive DHTML code library
(www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/

</script>

<script type="text/javascript">

ddaccordion.init({
headerclass: "headerbar", //Shared CSS class name of headers group
contentclass: "submenu", //Shared CSS class name of contents group
revealtype: "mouseover", //Reveal content when user clicks or
onmouseover the header? Valid value: "click" or "mouseover
mouseoverdelay: 200, //if revealtype="mouseover", set delay in
milliseconds before header expands onMouseover
collapseprev: true, //Collapse previous content (so only one open at
any time)? true/false
defaultexpanded: [0], //index of content(s) open by default [index1,
index2, etc] [] denotes no content
onemustopen: true, //Specify whether at least one header should be
open always (so never all headers closed)
animatedefault: false, //Should contents open by default be animated
into view?
persiststate: true, //persist state of opened contents within browser
session?
toggleclass: ["", "selected"], //Two CSS classes to be applied to the
header when it's collapsed and expanded, respectively ["class1",
"class2"]
togglehtml: ["", "", ""], //Additional HTML added to the header when
it's collapsed and expanded, respectively ["position", "html1",
"html2"] (see docs)
animatespeed: "normal", //speed of animation: integer in milliseconds
(ie: 200), or keywords "fast", "normal", or "slow"
oninit:function(headers, expandedindices){ //custom code to run when
headers have initalized
//do nothing
},
onopenclose:function(header, index, state, isuseractivated){ //custom
code to run whenever a header is opened or closed
//do nothing
}
})

</script>

<style type="text/css">

.urbangreymenu{
width: 190px; /*width of menu*/
}

.urbangreymenu .headerbar{
font: bold 14px Tahoma;
color: black;
background: #A5CF63 url(arrowstop.gif) no-repeat 8px 6px; /*last 2
values are the x and y coordinates of bullet image*/
margin-bottom: 0; /*bottom spacing between header and rest of
content*/
text-transform: uppercase;
padding: 7px 0 7px 8px; /*8px is left indentation of header text*/
}

.urbangreymenu .headerbar a{
text-decoration: none;
color: black;
display: block;
}

.urbangreymenu ul{
list-style-type: none;
margin: 0;
padding: 0;
margin-bottom: 0; /*bottom spacing between each UL and rest of
content*/
}

.urbangreymenu ul li{
padding-bottom: 2px; /*bottom spacing between menu items*/
}

.urbangreymenu ul li a{
font: bold 14px Tahoma;
color: white;
background: #800080;
display: block;
padding: 5px 0;
line-height: 17px;
padding-left: 8px; /*link text is indented 8px*/
text-decoration: none;
}

.urbangreymenu ul li a:visited{
color: white;
}

.urbangreymenu ul li a:hover{ /*hover state CSS*/
color: white;
background: black;
}

</style>

<body bgcolor="#800080">

<div class="urbangreymenu">

<h3 class="headerbar"><a href="http://www.dynamicdrive.com/
style/">Audit</a></h3>
<ul class="submenu">
<li><a href="Audit/BSA/BSA.htm">BSA</a></li>
<li><a href="Audit/Statutory/Statutory.htm">Statutory</a></li>
<li><a href="Audit/Trust Accounts/Trust Accounts.htm">Trust Accounts</
a></li>
</ul>

<h3 class="headerbar"><a href="http://
www.javascriptkit.com">Compliance</a></h3>
Activity Statements</a></li>
<li><a href="http://www.javascriptkit.com/javatutors/">Corp Sec</a></
li>
<li><a href="http://www.javascriptkit.com/jsref/">FBT</a></li>
<li><a href="http://www.javascriptkit.com/dhtmltutors/">Financial
statements</a></li>
<li><a href="http://www.javascriptkit.com/howto/">Tax</a></li>
</ul>

<h3 class="headerbar"><a href="http://www.javascriptkit.com">Financial
Planning</a></h3>
<ul class="submenu">
<li><a href="http://www.javascriptkit.com/cutpastejava.shtml" >TBA</
a></li>
<li><a href="http://www.javascriptkit.com/javatutors/">TBA</a></li>
<li><a href="http://www.javascriptkit.com/jsref/">TBA</a></li>
</ul>

<h3 class="headerbar"><a href="http://www.javascriptkit.com">Internal</
a></h3>
Administrative</a></li>
<li><a href="http://www.javascriptkit.com/javatutors/">Computers</a></
li>
<li><a href="http://www.javascriptkit.com/jsref/">HRM</a></li>
<li><a href="http://www.javascriptkit.com/dhtmltutors/">Management</
a></li>
<li><a href="http://www.javascriptkit.com/howto/">Training</a></li>
</ul>


<h3 class="headerbar"><a href="http://www.javascriptkit.com">Library</
a></h3>
<ul class="submenu">
<li><a href="http://www.javascriptkit.com/cutpastejava.shtml" >ABN</
a></li>
<li><a href="http://www.javascriptkit.com/javatutors/">ATR</a></li>
<li><a href="http://www.javascriptkit.com/jsref/">Solutions</a></li>
<li><a href="http://www.javascriptkit.com/dhtmltutors/">Special
Advice</a></li>
</ul>


<h3 class="headerbar"><a href="http://www.javascriptkit.com">Super
Funds</a></h3>
<ul class="submenu">
<li><a href="http://www.javascriptkit.com/cutpastejava.shtml" >Audit</
a></li>
<li><a href="http://www.javascriptkit.com/javatutors/">Financial
Statements</a></li>
<li><a href="http://www.javascriptkit.com/jsref/">Tax</a></li>
</ul>


</div>

</body>

</html>

</body>

</html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top