What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » How do I edit multiple html files simultaneously?

Pages: (2): « First [ 1 ] 2 » Last »
How do I edit multiple html files simultaneously?
Author: Message:
.Roy
Veteran Member
*****

Avatar

Posts: 1526
Reputation: 11
20 / Male / –
Joined: Aug 2004
O.P. How do I edit multiple html files simultaneously?
Well at my site GetBleach.com I have a navigation menu at the right and I want to add something new to the navigation menu... How do I add that to all the current html pages on my website? I don't want to go through each page and copy and paste thousands of times :P.
08-29-2007 10:58 AM
Profile PM Web Find Quote Report
MattyRid
Veteran Member
*****

Avatar
Red Bull Racing Australia

Posts: 1321
Reputation: 21
– / Male / Flag
Joined: Jan 2006
Status: Away
RE: How do I edit multiple html files simultaneously?
Layers maybe?

I know a few websites I have done recently I have used layers for navigation and sub menus.
Red Bull Racing Australia - Triple Eight Race Engineering - Holden
08-29-2007 11:00 AM
Profile PM Find Quote Report
Nathan
Veteran Member
*****

Avatar
Yeah, "large dimensions" ;)

Posts: 2984
Reputation: 76
– / Male / Flag
Joined: Apr 2005
RE: How do I edit multiple html files simultaneously?
Where this is
code:
<h2>Navigation</h2>
<div id="spidnav">
<a href="index.html">Home</a>
<a href="forums">GetBleach Forums</a>
<a href="epicfights.html">Bleach Epic Battles</a>

Add
code:
<a href="your_page.html">Title Name</a>


Add that to all of your html pages

Alternatively you could have one index.php with all of those pages in it but you would need to know PHP.

Otherwise There is no other easy way.
Touch Innovation - touch friendly programs/applications for the windows mobile!


08-29-2007 11:02 AM
Profile E-Mail PM Web Find Quote Report
.Roy
Veteran Member
*****

Avatar

Posts: 1526
Reputation: 11
20 / Male / –
Joined: Aug 2004
O.P. RE: How do I edit multiple html files simultaneously?
Napbree do you take me for stupid? I just said I don't want to add it to all my html pages. sheesh.

edit: I obviously made the website so I would obviously know how to do it this way T_T, you just want +1 post count...

This post was edited on 08-29-2007 at 11:07 AM by .Roy.
08-29-2007 11:07 AM
Profile PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: How do I edit multiple html files simultaneously?
quote:
Originally posted by Napbree
Alternatively you could have one index.php with all of those pages in it but you would need to know PHP.

If you have php, make one page with all the navigation menu in it and then use
code:
<? include("navigation.php"); ?>
where you want the navigation to be
<Eljay> "Problems encountered: shit blew up" :zippy:
08-29-2007 11:07 AM
Profile PM Find Quote Report
Nathan
Veteran Member
*****

Avatar
Yeah, "large dimensions" ;)

Posts: 2984
Reputation: 76
– / Male / Flag
Joined: Apr 2005
RE: How do I edit multiple html files simultaneously?
quote:
Originally posted by .Roy
Napbree do you take me for stupid? I just said I don't want to add it to all my html pages. sheesh.

edit: I obviously made the website so I would obviously know how to do it this way T_T, you just want +1 post count...
Don't be so fucking rude.
I just attempted to help you, the least you could do is show some gratitude.

The way you have done it you are going to have to include a php file or make just one index.php with all of the pages in it and include the header and the footer.

The way spunky love muff showed you would take even more time, becuase you would have to rename your files to be .php.

Touch Innovation - touch friendly programs/applications for the windows mobile!


08-29-2007 11:20 AM
Profile E-Mail PM Web Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: How do I edit multiple html files simultaneously?
If you want to do it in normal HTML then you always have the option of creating the Navigation area or editing it using a common Javascript document.  This method is by far not the easiest, and many people don't seem to appreciate the use of Javascript, but it will work and give you the result you are after.

code:
var element = getElementById('spidnav');
element.innerHTML = element.innerHTML + '<a href="another_page.html">Click this link for yet another page to go to</a>';
[Image: markee.png]
08-29-2007 11:44 AM
Profile PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: How do I edit multiple html files simultaneously?
Markee, don't forget you're "document.(...)"! ;)
code:
var element = document.getElementById('spidnav');
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
08-29-2007 11:49 AM
Profile E-Mail PM Web Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: How do I edit multiple html files simultaneously?
quote:
Originally posted by Mattike
Markee, don't forget you're "document.(...)"! ;)
code:
var element = document.getElementById('spidnav');

Maybe I just assumed it was encapsulated within a with statement :P.  Also, after having a look at your source code again, it still won't stop you from having to edit all the files because there isn't a javascript file with them yet anyway so you'd need to add that in and you would have to make sure that the function occurred either on load of the body or at the very least after the creation of the DIV.
[Image: markee.png]
08-29-2007 11:52 AM
Profile PM Find Quote Report
.Roy
Veteran Member
*****

Avatar

Posts: 1526
Reputation: 11
20 / Male / –
Joined: Aug 2004
O.P. RE: How do I edit multiple html files simultaneously?
How do i make a navigation bar in php?
08-29-2007 11:53 AM
Profile PM Web Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On