Creating Java/DHTML Vertical Navigation Menu in FrontPage
Sharsy 17 September 2008 02:06:33
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.
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?
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. -- Trevor Lawrence Canberra Web Site http://trevorl.mvps.org
_____________________________________________ SBR @ ENJOY [ Microsoft MVP - FrontPage ] "Warning - Using the F1 Key will not break anything!" (-; _____________________________________________
"Ronx" <ronx917@hotmail.com> wrote in message news:eGABLKJGJHA.1020@TK2MSFTNGP06.phx.gbl... | 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 | | | | | "sharsy" <shari@ptpartners.net.au> wrote in message | news:e3817fc3-700b-4a7e-aa57-d3a140a5c2dd@n33g2000pri.googlegroups.com: | | > 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! |
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).
-- Murray MVP Expression Web
"Stefan B Rusynko" <sbr_enjoy@hotmail.com> wrote in message news:%23zCaSzJGJHA.1268@TK2MSFTNGP05.phx.gbl...
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.
//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!!!
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" <shari@ptpartners.net.au> wrote in message news:09fa7537-d87d-4002-8044-5b9e17c59076@n33g2000pri.googlegroups.com...
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.
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.
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.
Trevor Lawrence 24 September 2008 06:59:33 [ permanent link ]
Reply in-line
"sharsy" <shari@ptpartners.net.au> wrote in message news:a4db98e1-3e9d-483a-9dc6-a911c3317e1a@a8g2000prf.googlegroups.com...
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" <shari@ptpartners.net.au> wrote in message news:09fa7537-d87d-4002-8044-5b9e17c59076@n33g2000pri.googlegroups.com...
........................................................ 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.
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 Site http://trevorl.mvps.org
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.
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.
-- Ron Symonds - Microsoft MVP (FrontPage) Reply only to group - emails will be deleted unread.
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!
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.
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*/ }
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!
/*********************************************** * 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*/ }
ok I've done that now (I sourced the code of a website), so do you 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. your assistance would be greatly appreciated
and then on each page, embed a small stylesheet that allows you to specify the "highlight" properties for that particular button, for example, on the home page, you might have -
This would only work if your 'buttons' were CSS styled text links. If you are using GRAPHIC links, then you have to either convert them to CSS links (where the graphic is a background image, and you are specifying a different background image on hover), or use some custom javascript to specify the correct image to use for the highlighted button.
-- Murray MVP Expression Web
"sharsy" <shari@ptpartners.net.au> wrote in message news:63029cb9-78df-4fad-b51d-a00d3cdbafaa@i24g2000prf.googlegroups.com...
ok I've done that now (I sourced the code of a website), so do you
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. your assistance would be greatly appreciated
but this isn't working for me - no button highlights and I'm not using graphics. Would you like me to post my entire code again for you to look at what I've done wrong? This is so confusing for me...