CSS Menu

L

Lourenco Junior

Hi Folks!
I'd like to do a menu for my HTML/XHTML pages.

There are about 50 files. The Menu list is the same for all of them.

I wouldn't like to insert the code for menu in each file. I'd like to
avoid the code redundance.

I want to use HTML/XHTML and CSS only. I don't want to use Frame or
iFrame tag.

Does anybody know how to do it?
Does anybody know a tutorial or anything like that?

Thanks
[]'s
Lourenco Junior
 
L

Lourenco Junior

Thanks Leo.

Leonard said:

Let me explain my case.

My white public will view my page in a CD - read stand alone.
So I can't use SSI (Server Side Include), SSC (Server Side Scripting).

Preprocessor tool, so-so.

If someday I need to change I'll open a single file (HTML, XHTML, CSS,
XML, something like that) and update its content. And everything will
be done =)

is it possible?

Thanks.
[]'s
Lourenco Junior
 
D

David Dorward

Lourenco said:
My white public will view my page in a CD - read stand alone.
So I can't use SSI (Server Side Include), SSC (Server Side Scripting).
If someday I need to change I'll open a single file (HTML, XHTML, CSS,
XML, something like that) and update its content. And everything will
be done =)

A preprocessor is the best option here. Update file, run program, done.
 
D

dorayme

David Dorward said:
A preprocessor is the best option here. Update file, run program, done.

Are there reliable easy to use preprocessors for Mac OS X that
anyone uses and can recommend?
 
N

Neredbojias

To further the education of mankind, "Lourenco Junior"
Thanks Leo.



Let me explain my case.

My white public will view my page in a CD - read stand alone.
So I can't use SSI (Server Side Include), SSC (Server Side Scripting).

Are you a nazi?
 
P

Philip

Are there reliable easy to use preprocessors for Mac OS X that
anyone uses and can recommend?

Hi,
I use one called Spyce (http://spyce.sourceforge.net/) which I like a
lot but may not fit your definition of "easy to use". It accepts input
of HTML mixed with Python code (as well as some Spyce primitives) and
can output, well, anything you want, but the obvious thing to do with it
is to create an HTML page. You can run it from the command line but you
can also use it as a Web server to build dynamic pages. Installation for
command-line only usage, however, wouldn't require a Web server.

If all you want to do is include a file, it is overkill. If you have
more complex needs and you like Python, it's worth a look.

Oh yeh, it is written in Python so it works anywhere that Python works.
 
D

David

Lourenco said:
Hi Folks!
I'd like to do a menu for my HTML/XHTML pages.

There are about 50 files. The Menu list is the same for all of them.

I wouldn't like to insert the code for menu in each file. I'd like to
avoid the code redundance.

I want to use HTML/XHTML and CSS only. I don't want to use Frame or
iFrame tag.

Does anybody know how to do it?
Does anybody know a tutorial or anything like that?

Thanks
[]'s
Lourenco Junior
how about using a php include

<?php include("/path/to/your/file") ?>
 
L

Lourenco Junior

Thanks David
David Dorward wrote:
A preprocessor is the best option here. Update file, run program, done.

==>> Well, I don't want to use extra tools for it. Only HTML/XHTML,
CSS, maybe XML. <<==

But I am not a HTML/XHTML/CSS/XML/etc master.
I'll try to use preprocessor tool until to get the solution that I
want. If this solution exists :)

Thanks.
[]'s
Lourenco Junior
 
J

jojo

David said:
how about using a php include

<?php include("/path/to/your/file") ?>

Or, if your server doesn't support PHP you can try SSI:

<!--#include virtual="/path/to/your/file"-->
 
D

dorayme

<[email protected]
t.rr.com>,
Philip said:
I use one called Spyce (http://spyce.sourceforge.net/) which I like a
lot but may not fit your definition of "easy to use". It accepts input
of HTML mixed with Python code (as well as some Spyce primitives) and
can output, well, anything you want, but the obvious thing to do with it
is to create an HTML page. You can run it from the command line but you
can also use it as a Web server to build dynamic pages. Installation for
command-line only usage, however, wouldn't require a Web server.

If all you want to do is include a file, it is overkill.

Thanks, I took a quick look and it looks like overkill, all I
want is to include and I can do this via an external server. I
have yet to set one up in my office... I did rather like the
sound of this preprocessor business but I don't want a headache...
 

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

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top