 |
|
 |
|
Next: IE 7 bugs??? Clicks & Focus
|
| Author |
Message |
External

Since: Jun 05, 2006 Posts: 33
|
(Msg. 1) Posted: Mon Feb 05, 2007 8:40 am
Post subject: How to make navigation buttons appear on all pages? Archived from groups: alt>html, others (more info?)
|
|
|
I am designing a web site and would like to know how to make my navigation
buttons appear on every page of the site. Currently, I select the buttons
and I paste them on every single page, but this is getting annoying, since I
always have do changes to the buttons. I am using Web Page Maker V2. Thank
you very much.
Regards,
T.I. >> Stay informed about: How to make navigation buttons appear on all pages? |
|
| Back to top |
|
 |  |
External

Since: May 30, 2006 Posts: 2
|
(Msg. 2) Posted: Mon Feb 05, 2007 8:40 am
Post subject: Re: How to make navigation buttons appear on all pages? [Login to view extended thread Info.] Archived from groups: alt>www>webmaster (more info?)
|
|
|
On Feb 5, 5:49 am, "Talal Itani" <tit... DeleteThis @verizon.net> wrote:
> I am designing a web site and would like to know how to make my navigation
> buttons appear on every page of the site. Currently, I select the buttons
> and I paste them on every single page, but this is getting annoying, since I
> always have do changes to the buttons. I am using Web Page Maker V2. Thank
> you very much.
Something handy here would be to do what I've done on www.phirefast.com.
I've only 1 page, which is my template. Given the extension after the
domain (domain.com/?file=home) it will choose which outside content
file to insert.
Your web server will need to support php and I would recommend using
an editor like Dreamweaver to make your pages. It seems to make things
a lot easier sometimes.
PHP code for your index.php page:
<?php
if (file_exists(urlencode($_GET['p']).".php"))
include (urlencode($_GET['p']).".php");
else (
include('home.php'));
?>
Do you see the parts where it has [p]? Those are the parts in which
you can change the call. Like, if we want to have domain.com/?
blah=contact or domain.com/?something_else=contact, you would change
that [p] to [blah] or [something_else]
Now make some pages like contact.php and home.php, upload these files
and type in yourdomain.com/?whatever_you_changed_it_to=contact and it
will insert the (in this case) contact.php page in there.
Email me directly if you need any help. I'll be happy to walk you
through it. >> Stay informed about: How to make navigation buttons appear on all pages? |
|
| Back to top |
|
 |  |
External

Since: Feb 05, 2007 Posts: 11
|
(Msg. 3) Posted: Mon Feb 05, 2007 3:35 pm
Post subject: Re: How to make navigation buttons appear on all pages? [Login to view extended thread Info.] Archived from groups: alt>html, others (more info?)
|
|
|
Talal Itani wrote:
> I am designing a web site and would like to know how to make my navigation
> buttons appear on every page of the site. Currently, I select the buttons
> and I paste them on every single page, but this is getting annoying, since I
> always have do changes to the buttons. I am using Web Page Maker V2. Thank
> you very much.
If I understood, you need same buttons on every page.
That is easiest to do with SSI.
On every page where buttons should appear put include file. For example:
<!--#include file="buttons.txt" -->
Then, make a ordinary text file named buttons.txt, save it in the same
directory as web pages and in that text file write a peace of code you
would like to be on the pages. For example:
<ul>
<li><a href="index.asp">- Home Page </a></li>
<li><a href="search.asp">- Search Pages </a></li>
<li><a href="contact.asp">- Contact me </a></li>
<li><a href="links.asp">- Links </a></li>
</ul>
Every time page is loaded, server will change line:
<!--#include file="buttons.txt" --> with code in buttons.txt
When you need to add, or change some buttons, just change code in
buttons.txt, and this change will appear on every page.
Of course, your server needs to support SSI, but I think most servers do. >> Stay informed about: How to make navigation buttons appear on all pages? |
|
| Back to top |
|
 |  |
External

Since: Jan 28, 2007 Posts: 13
|
(Msg. 4) Posted: Mon Feb 05, 2007 7:20 pm
Post subject: Re: How to make navigation buttons appear on all pages? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Jul 26, 2003 Posts: 2
|
(Msg. 5) Posted: Mon Feb 05, 2007 7:58 pm
Post subject: Re: How to make navigation buttons appear on all pages? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
In article <eq7fbo$ass$1@ss408.t-com.hr>, Shija says...
> Talal Itani wrote:
> > I am designing a web site and would like to know how to make my navigation
> > buttons appear on every page of the site. Currently, I select the buttons
> > and I paste them on every single page, but this is getting annoying, since I
> > always have do changes to the buttons. I am using Web Page Maker V2. Thank
> > you very much.
>
> If I understood, you need same buttons on every page.
> That is easiest to do with SSI.
>
> On every page where buttons should appear put include file. For example:
>
> <!--#include file="buttons.txt" -->
>
> Then, make a ordinary text file named buttons.txt, save it in the same
> directory as web pages and in that text file write a peace of code you
> would like to be on the pages. For example:
>
> <ul>
> <li><a href="index.asp">- Home Page </a></li>
> <li><a href="search.asp">- Search Pages </a></li>
> <li><a href="contact.asp">- Contact me </a></li>
> <li><a href="links.asp">- Links </a></li>
> </ul>
>
> Every time page is loaded, server will change line:
> <!--#include file="buttons.txt" --> with code in buttons.txt
> When you need to add, or change some buttons, just change code in
> buttons.txt, and this change will appear on every page.
>
> Of course, your server needs to support SSI, but I think most servers do.
Don't you have to use the ending *.shtml for that?
--
Alfred Molon
http://www.molon.de - Photos of Asia, Africa and Europe >> Stay informed about: How to make navigation buttons appear on all pages? |
|
| Back to top |
|
 |  |
External

Since: Feb 05, 2007 Posts: 20
|
(Msg. 6) Posted: Mon Feb 05, 2007 8:59 pm
Post subject: Re: How to make navigation buttons appear on all pages? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Mon, 5 Feb 2007 19:58:44 +0100, Alfred Molon wrote:
> In article <eq7fbo$ass$1@ss408.t-com.hr>, Shija says...
>> Talal Itani wrote:
>>> I am designing a web site and would like to know how to make my navigation
>>> buttons appear on every page of the site. Currently, I select the buttons
>>> and I paste them on every single page, but this is getting annoying, since I
>>> always have do changes to the buttons. I am using Web Page Maker V2. Thank
>>> you very much.
>>
>> If I understood, you need same buttons on every page.
>> That is easiest to do with SSI.
>>
>> On every page where buttons should appear put include file. For example:
>>
>> <!--#include file="buttons.txt" -->
>>
>> Then, make a ordinary text file named buttons.txt, save it in the same
>> directory as web pages and in that text file write a peace of code you
>> would like to be on the pages. For example:
>>
>> <ul>
>> <li><a href="index.asp">- Home Page </a></li>
>> <li><a href="search.asp">- Search Pages </a></li>
>> <li><a href="contact.asp">- Contact me </a></li>
>> <li><a href="links.asp">- Links </a></li>
>> </ul>
>>
>> Every time page is loaded, server will change line:
>> <!--#include file="buttons.txt" --> with code in buttons.txt
>> When you need to add, or change some buttons, just change code in
>> buttons.txt, and this change will appear on every page.
>>
>> Of course, your server needs to support SSI, but I think most servers do.
>
> Don't you have to use the ending *.shtml for that?
add to your .htaccess and you can do what you want for includes.
AddType text/html .shtml .shtm .htm .html
AddHandler server-parsed .shtml .shtm .htm .html
AddType text/html .mobi
the last i add to fuk em up a little.
--
Secretary of Altered States
Governement of the Mens Room >> Stay informed about: How to make navigation buttons appear on all pages? |
|
| Back to top |
|
 |  |
External

Since: Oct 19, 2006 Posts: 16
|
(Msg. 7) Posted: Tue Feb 06, 2007 10:44 am
Post subject: Re: How to make navigation buttons appear on all pages? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
In article <5CGxh.2512$6P4.2044@trnddc06>,
"Talal Itani" <titani DeleteThis @verizon.net> wrote:
> I am designing a web site and would like to know how to make my navigation
> buttons appear on every page of the site. Currently, I select the buttons
> and I paste them on every single page, but this is getting annoying, since I
> always have do changes to the buttons. I am using Web Page Maker V2. Thank
> you very much.
>
> Regards,
> T.I.
I notice you have been given the best advice already. But I am
curious because I managed for literally years using Search and
Replace functions (over multiple pages), whole sites being decked
out with changes in a few secs. True, it was longer uploading the
changes to a web server - but not all that long for html files...
I mention this because it annoys me that you might actually take
the good advice and not go through the Luddite stage I went
through. It seems slightly unfair. Like an undeserved leg up.
What have you done to deserve it? I slaved away for years. Please
pause and consider the low tech solution I am alluding to.
--
dorayme >> Stay informed about: How to make navigation buttons appear on all pages? |
|
| Back to top |
|
 |  |
External

Since: Feb 05, 2007 Posts: 20
|
(Msg. 8) Posted: Tue Feb 06, 2007 10:44 am
Post subject: Re: How to make navigation buttons appear on all pages? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Tue, 06 Feb 2007 13:24:20 GMT, Talal Itani wrote:
> Thanks for the very many suggestions. I think I will stick with what I have
> been doing. Which is, copy the buttons to the clipboard, then visit the 10
> or so pages, one at a time, and past the buttons. That is the current limit
> of my knowledge. Thanks to all the group members who participated.
rofl
--
Secretary of Altered States
Governement of the Mens Room >> Stay informed about: How to make navigation buttons appear on all pages? |
|
| Back to top |
|
 |  |
External

Since: Dec 27, 2006 Posts: 4
|
(Msg. 9) Posted: Tue Feb 06, 2007 11:43 am
Post subject: Re: How to make navigation buttons appear on all pages? [Login to view extended thread Info.] Archived from groups: alt>www>webmaster (more info?)
|
|
|
On Feb 6, 8:24 am, "Talal Itani" <tit....RemoveThis@verizon.net> wrote:
> Thanks for the very many suggestions. I think I will stick with what I have
> been doing. Which is, copy the buttons to the clipboard, then visit the 10
> or so pages, one at a time, and past the buttons. That is the current limit
> of my knowledge. Thanks to all the group members who participated.
If you're going to stick with that method, you might as well make it
easy on yourself if your editor doesn't allow you to replace multiple
lines over multiple files:
http://www.orbit.org/replace/
It's a low tech solution, but it's a great program for just your kind
of situation.
>
> >>> I am designing a web site and would like to know how to make my
> >>> navigation buttons appear on every page of the site. Currently, I
> >>> select the buttons and I paste them on every single page, but this is
> >>> getting annoying, since I always have do changes to the buttons. I
> >>> am using Web Page Maker V2. Thank you very much.
>
> >>> Regards,
> >>> T.I.
>
> >> I notice you have been given the best advice already. It seems
> >> slightly unfair. Like an undeserved leg up.
> >> What have you done to deserve it? I slaved away for years. Please
> >> pause and consider the low tech solution I am alluding to.
>
> > Take heart! There's always the possibility that SSI is not available to
> > the OP. BTW, I did the same thing for a long, long time.
>
> > --
> > Adrienne Boswell at Home
> > Arbpen Web Site Design Services
> >http://www.cavalcade-of-coding.info
> > Please respond to the group so others can share >> Stay informed about: How to make navigation buttons appear on all pages? |
|
| Back to top |
|
 |  |
External

Since: Jun 05, 2006 Posts: 33
|
(Msg. 10) Posted: Tue Feb 06, 2007 1:24 pm
Post subject: Re: How to make navigation buttons appear on all pages? [Login to view extended thread Info.] Archived from groups: alt>html, others (more info?)
|
|
|
Thanks for the very many suggestions. I think I will stick with what I have
been doing. Which is, copy the buttons to the clipboard, then visit the 10
or so pages, one at a time, and past the buttons. That is the current limit
of my knowledge. Thanks to all the group members who participated.
>>> I am designing a web site and would like to know how to make my
>>> navigation buttons appear on every page of the site. Currently, I
>>> select the buttons and I paste them on every single page, but this is
>>> getting annoying, since I always have do changes to the buttons. I
>>> am using Web Page Maker V2. Thank you very much.
>>>
>>> Regards,
>>> T.I.
>>
>>
>> I notice you have been given the best advice already. It seems
>> slightly unfair. Like an undeserved leg up.
>> What have you done to deserve it? I slaved away for years. Please
>> pause and consider the low tech solution I am alluding to.
>>
>
> Take heart! There's always the possibility that SSI is not available to
> the OP. BTW, I did the same thing for a long, long time.
>
> --
> Adrienne Boswell at Home
> Arbpen Web Site Design Services
> http://www.cavalcade-of-coding.info
> Please respond to the group so others can share
> >> Stay informed about: How to make navigation buttons appear on all pages? |
|
| Back to top |
|
 |  |
External

Since: Feb 06, 2007 Posts: 2
|
(Msg. 11) Posted: Tue Feb 06, 2007 2:21 pm
Post subject: Re: How to make navigation buttons appear on all pages? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"Talal Itani" <titani DeleteThis @verizon.net> wrote in message
news:5CGxh.2512$6P4.2044@trnddc06...
>
> I am designing a web site and would like to know how to make my navigation
> buttons appear on every page of the site. Currently, I select the buttons
> and I paste them on every single page, but this is getting annoying, since
> I always have do changes to the buttons. I am using Web Page Maker V2.
> Thank you very much.
>
> Regards,
> T.I.
-----
I too went through the "cut-and-paste" phase, and quickly went into a
"JavaScript" phase before actually figuring out how to do SSI. There are
plenty of JS examples on the web, but I'll see if I can quickly describe the
way I did it. (I know it might not be the best, but it worked for me for
years, and I still currently have sites out there using it.)
1) create a text file containing the HTML of your buttons.
(Whether your HTML uses a table, simple text buttons, or list, it doesn't
matter.)
2) At the top of the file, put a line "<!-- Begin" (no outer quotes... The
comment tag ("<!--" hides the file from non-scripting browsers, and "Begin"
is just for you, I believe)
3) At the beginning of each line, put "document.write('" (no outer quotes)
4) At the end of each line, put "');" (again, no outer quotes)
5) At the end of the file, put "// End -->" (no outer ... get the idea? I
think all that's really needed is the close comment "-->")
6) Save the file with the extension ".js" (I suggest putting it in your root
directory (www.xxx.com))
NOTE: If there are any apostrophes within the button HTML, there's another
step (creating variables and adding them into the lines) which isn't that
difficult, but, hopefully, you have cleaner button HTML than I did.
And you should also "escape" any close-tag slashes (e.g.: instead of "</p>"
use "<\/p">) as it seems some browsers will take the first non-escaped "/"
they run across as an end-tag for the JavaScript.
Now, in each HTML file, where you wish for the navigation to go, put the
following:
<SCRIPT LANGUAGE="JavaScript" src="navigationfilename.js"
type="text/javascript"></script>
This line, also, should probably be "hidden" from non-scripting browsers, by
commenting it out "<!--" line "-->", though I have pages that work and it's
not.
Any CSS formatting in this file will translate, as in this case,
document.write is done when loading the page. (The HTML between the
apostrophes is written to your main-page HTML)
Now, when you need to add buttons, all you have to edit is the .js file,
cut-and-paste a copy of one of them where you wish the new one to go, and
make your changes to the pasted text.
Be aware that in non-scripting browsers or those with it turned off, the
navigation will not be available. This is one of the reasons you see those
text links in a "linkbar" or simply added at the bottom of pages. (With at
least one link to ... say ... the Sitemap page, where links to every page
are organized...)
All I know is this method worked/works for me.
Ok... I think I'm ready ... All you "experts" - Tell me if (I'm sure some of
you guys simply assume "what") I did or described wrong, or provide further
descriptions.
BigDaddyBS >> Stay informed about: How to make navigation buttons appear on all pages? |
|
| Back to top |
|
 |  |
External

Since: Mar 24, 2006 Posts: 248
|
(Msg. 12) Posted: Tue Feb 06, 2007 2:51 pm
Post subject: Re: How to make navigation buttons appear on all pages? [Login to view extended thread Info.] Archived from groups: alt>www>webmaster (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Oct 14, 2006 Posts: 13
|
(Msg. 13) Posted: Tue Feb 06, 2007 5:07 pm
Post subject: Re: How to make navigation buttons appear on all pages? [Login to view extended thread Info.] Archived from groups: alt>html, others (more info?)
|
|
|
BigDaddyBS wrote:
> I too went through the "cut-and-paste" phase, and quickly went into a
> "JavaScript" phase before actually figuring out how to do SSI. There are
> plenty of JS examples on the web, but I'll see if I can quickly describe the
> way I did it. (I know it might not be the best, but it worked for me for
> years, and I still currently have sites out there using it.)
>
<snip code>
Although JavaScript is very seductive for this application it is a *very
bad* idea for many reasons. First and foremost if the use has JavaScript
disabled your site cannot be navigated! (It is like giving someone a
book sealed in a glass box, you can read the first page but cannot turn
the page to read the book!) Secondly, search engines to not execute
JavaScript so the search engine will not 'see' your links either and
will not traverse you site and will not rank it well, interconnection
with relevant data help in page ranking. Thirdly, since JavaScript would
be interjecting the markup at 'runtime' it is easy to make markup errors
and difficult to debug. Web Developers Bar with "Generated Source" helps
but mistakes are hard to find...
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com >> Stay informed about: How to make navigation buttons appear on all pages? |
|
| Back to top |
|
 |  |
External

Since: Oct 13, 2006 Posts: 5
|
(Msg. 14) Posted: Tue Feb 06, 2007 8:29 pm
Post subject: Re: How to make navigation buttons appear on all pages? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
BigDaddyBS wrote:
> NOTE: If there are any apostrophes within the button HTML, there's another
> step (creating variables and adding them into the lines) which isn't that
> difficult, but, hopefully, you have cleaner button HTML than I did.
The apostrophes can also be dealt with with a backslash, e.g.:
"can't" becomes
"can\'t"
I use the technique you describe on my site's menus. Yeah, I understand
the issues surrounding javascript being turned off on the client side.
But, using server-side solutions is not an option. For instance, I get
175 Mb of hosting space included in my basic ISP's plan (Comcast). They
don't provide any server-side solutions (PHP etc.) and it really doesn't
make any sense for me to toss that freebie away and pay for hosting when
my site(s) are simply a hobby and not a business. YMMV.
--
Ed Mullen
http://edmullen.net
http://mozilla.edmullen.net
http://abington.edmullen.net
Erotic is using a feather. Kinky is using the whole chicken. >> Stay informed about: How to make navigation buttons appear on all pages? |
|
| Back to top |
|
 |  |
External

Since: Sep 21, 2004 Posts: 170
|
(Msg. 15) Posted: Wed Feb 07, 2007 3:06 am
Post subject: Re: How to make navigation buttons appear on all pages? [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Mon, 05 Feb 2007 13:49:53 +0000, Talal Itani wrote:
>
> I am designing a web site and would like to know how to make my navigation
> buttons appear on every page of the site. Currently, I select the buttons
> and I paste them on every single page, but this is getting annoying, since I
> always have do changes to the buttons. I am using Web Page Maker V2. Thank
> you very much.
Can we say, "Preprocessor."
http://www.htmlhelp.com/links/preprocessors.html
Or, can we say, "Generate server side.
Learn a bit of Perl or PHP?
Forget Web Page Maker V2, or V. any_damn_number.
Learn some (X)HTML. >> Stay informed about: How to make navigation buttons appear on all pages? |
|
| Back to top |
|
 |  |
| Related Topics: | Making Buttons (0/1) - I need to make some buttons for my site. An example of the size and shape of what I am looking for is attached. Does anyone know a freeware or shareware program on the Internet that expedites this? Thanks, Fred
Graphics Buttons and Forms - I did a stupid thing...I told someone, if they wanted, I'd use graphics buttons in place of the usual submit button on a form. I had a form with three different submit buttons...each with a different value and each value passed to a php script, then a..
flash buttons won't work on a redirect..help - I have a header which has some flash buttons. My main url http://corrobex.com has an index.cgi script which redirects the opening page to an index.php within a folder i.e. http://corrobex.com/photopost/index.php . The redirect works OK but the flash..
a js to "hide" the rest of the options (radio buttons) - I know there is such a script, maybe you guys can give away the snippet: I have a multiple choice form, with radio buttons. Each option has a few other option of itself, with checks. Wha i need is to "gray out" the other radio options as soon...
Upgrade firewall, lose validator buttons - hello hello, it's happened twice. ZoneAlarm upgrades and it starts stripping W3C validator buttons from my and other websites (all remote). now we put validator buttons LOCALLY on the sites we build. like they aren't being pulled from W3C's servers.. |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|