473,387 Members | 1,440 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

CSS + JavaScript Web Page Menu for public comment and use!

Howdy All!

I have just finished developing a menu template for easy use in an any
web page!

The example uses CSS and JavaScript.

The url is:
http://phd.netcomp.monash.edu.au/RobertMarkBram/menu/

This example is free for anyone to use, comment or criticise - just
leave my name in it somewhere if you use it in your site!

Rob
:)
Jul 20 '05 #1
5 1870
On 7 Aug 2003 23:06:04 -0700, re********@optusnet.com.au
(re********@optushome.com.au) wrote:
http://phd.netcomp.monash.edu.au/RobertMarkBram/menu/

This example is free for anyone to use, comment or criticise - just
leave my name in it somewhere if you use it in your site!


Any script which hides key navigation content in javascript (which is
not always enabled obviously) is generally a bad idea, a more sensible
approach is to transform an unordered list or something similar that
has considerable meaning and doesn't break the accessibility of your
script when JS was disabled. Perhaps even more importantly it doesn't
hide your links from Google.

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #2
Hi Jim!
Any script which hides key navigation content in javascript (which is
not always enabled obviously) is generally a bad idea, a more sensible
approach is to transform an unordered list or something similar that
An unordered list kept where?

JavaScript cannot open an external file and once I put the list into the
html file I am stuck with having to duplicate that list on every page that
requires a menu - precisely the maintenance task I want to avoid with a
script like this.

I was thinking that frames could be used - the navigation frame document
could be the place to store the list in html, but CSS positioned elements
cannot display accross frame borders, so that won't work either.
has considerable meaning and doesn't break the accessibility of your
script when JS was disabled.
Well, if JavsScript is disabled the whole script is broken... visitors must
have JavaScript turned on to access the example: to be honest I do not think
this is an unrealistic expectation.
Perhaps even more importantly it doesn't
hide your links from Google.


Yes, this is a very good point

Thank you for your feedback!

Rob
:)
Jul 20 '05 #3
Howdy!
I am looking for something to put into a "default header" to make mod_layout produce a header I can use on all my future pages - like the ones I use in
http://ketil.homeunix.net/tegneserie/ and
http://ketil.homeunix.net/logg/nettsted/tegneserie.html


If you are after some way to output the same <head > element into multiple
documents, I believe a server side language would be very good for that. In
fact, if were not for the fact that I wanted to produce a JavaScript
example, I would have used JSP - that way I could obey some of quite valid
points raised by Jim.

My example uses JavaScript to insert content - but it requires a few
insertions into the standard HTML of a document to place it there.

Rob
:)

Jul 20 '05 #4
ketil V. wrote:
Jim Ley wrote:
Any script which hides key navigation content in javascript (which is
not always enabled obviously) is generally a bad idea, a more sensible
approach is to transform an unordered list or something similar that
has considerable meaning and doesn't break the accessibility of your
script when JS was disabled. Perhaps even more importantly it doesn't
hide your links from Google.


Don't mean to intrude here (or...) but do you got a refference to
somewhere telling how this is done?


http://www.gazingus.org/
http://jibbering.com/
http://tom.me.uk/

and http://www.alistapart.com have an article titled "Taming Lists"
--
Iso.
FAQs: http://html-faq.com http://alt-html.org http://allmyfaqs.com/
Recommended Hosting: http://www.affordablehost.com/
Web Standards: http://www.webstandards.org/
Jul 20 '05 #5
On Sat, 9 Aug 2003 01:58:02 +1000, "Robert Mark Bram"
<re********@remove.this.optusnet.com.au> wrote:
Any script which hides key navigation content in javascript (which is
not always enabled obviously) is generally a bad idea, a more sensible
approach is to transform an unordered list or something similar that
An unordered list kept where?


Within the document, the problem with author once, see in multiple
URI's is a seperate one, you shouldn't combine them, since javascript
for content is simply too unreliable, so while javascript includes
might've been a solution the %age of clients where it won't work
(including key clients like google of course) makes it inefficient.

There's 2 obviousapproaches, the SSI/server generated one, where you
have each page served by a script on the website, including the
content, SSI is the simplest method of this and it's supported very
widely.

Certain webhosts don't support it, and I'd say go find another if
that's the case, however you might not always be able to do this, or
the site might be such high volume that you don't want the processor
hit (if this is genuinely the case you can probably get funding for
better hardware from somewhere - after all someone's happy to pay for
the bandwidth)

In that case though you can pre-process the documents to static HTML,
probably best to still use SSI for development (since you can run a
suitable webserver on your development box) then you can run a tool
when you publish which combines everything - the main cost is that you
need to upload everything after doing this (or generate on the server,
but that's unlikely if you've not got SSI on the server) So upload
costs are higher.
precisely the maintenance task I want to avoid with a
script like this.
There are better solutions without the problem, a ciwa.site-design or
ciwa.cgi will probably be the place to ask if you need more help after
googling.
Well, if JavsScript is disabled the whole script is broken... visitors must
have JavaScript turned on to access the example: to be honest I do not think
this is an unrealistic expectation.


In the real world, I'm afraid it's very unrealistic to expect
javascript, Google especially would have trouble, running javascript
in a robot is tough, you have to make sure the javascript can't do
anything nasty to your poor little robot.

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

53
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is...
7
by: Marci | last post by:
I found this script for cascading menus, however, I cannot reach the author to solve the bug I am having when I add a second menu to it. My problem is this: If I click on the first link, the...
4
by: jmensch | last post by:
I'm reasonably new to JavaScript and DHTML, so I'm sorry if this is an obvious mistake. The following snippet of code is intended to make the menu -- the absolute-positioned <div> section --...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
7
by: e | last post by:
I've been having an extremely difficult time finding an answer to this in IE / js groups, so I thought I'd try here. I've got an aspx page that delivers loads of report data into custom-named...
8
by: chrisdude911 | last post by:
how do i add video into a javascript web page with my own custom buttons?
3
by: akristensen | last post by:
I am new to this site, so be patient if I do not ask the question correctly. Current Target Platform: Browser: MS IE, script language: Javascript (will use VBScript, but JS is preferred), External...
9
by: mevryck | last post by:
Greetings I have a huge Javascript with inclusion of external scripts and all. I got this by doing a XSLT . Now I have the contents in a Javascript variable, but I'm not able to update the...
1
by: Louis | last post by:
Thanks in advance for any comment and suggestion... On one of my web pages, I use javascript to pop up a context menu box when the right-mouse button is clicked on a link. It works fine in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.