updating fast

They have: 314 posts

Joined: Nov 1999

I am in the process of redesigning my site and would like to make it so that if ever I want to update again it will be as simple as possible. So can someone help me out with these:

1. I need to be able update my navbar which will be on each page by odifying one document. SSI I hear you Cry (liek the rhyme?) ) but my server doesnt support it (or have a cgi-bin) so are ther any alternatives?

2. I would like to change the coulours of links with underlines and onmouseover stuff with css but dont want the code on each page. I know this can be done externally but I dont know how. Could somneone show me the way to a decent tutorial and also what is the code to pull in a css file from another location????

Well, that's it unless you can think of ways of updating a site faster. If you fo, please tell me!!

------------------
Thomas Minton
The JavaScript Place
Get paid $20 - $160 an hour for viewing adverts

They have: 59 posts

Joined: Mar 2000


  1. Can you just work in frames and have one frame as your navbar? That sounds like the obvious solution to have only one navbar file to edit (I don't know what SSI is).
  2. Here's some information on linking style sheets

Phyllis

[This message has been edited by phyllis (edited 13 April 2000).]

They have: 314 posts

Joined: Nov 1999

i am definitely not going to use frames. I do not like them at all. Thanks for the info on css though.

BTW, SSI is where you can call in a webpage (or cgiscript etc) from another page so they will be displayed together.

------------------
Thomas Minton
The JavaScript Place
Get paid $20 - $160 an hour for viewing adverts

They have: 47 posts

Joined: Apr 2000

I think you should wsitch hosts then. Even Angelfire supports cgi!

Get signed up with Virtual Ave, they support it.

------------------
-RJ D'Angelo (Formerly "dangelo")
D'Angelo Web Design
The Sopranos Fan Site

They have: 314 posts

Joined: Nov 1999

yeah, but the domain i got was free a free .co.uk and free hosting and I WOULD like to chnage hosts but it costs (wait for it.....) £90 to get away from them!!!!! I didn't read the fine print till after I had signed up and still then I didnt care because I was not exeperienced with cgi and had no need for it. Now i do but cant use it through my site.

I have already signed up with free.prohosting.com.

Back to the subject. Is there a way to update the navbar by only changing one file??? I really need this!!

------------------
Thomas Minton
The JavaScript Place
Get paid $20 - $160 an hour for viewing adverts

AndyB's picture

They have: 344 posts

Joined: Aug 1999

Create a javascript file that uses document.write to write out the complete code for your navbar.

Save it as 'navbar.js'

In each html file, add

script language="javascript" src="navbar.js
/script

Then each succesive html page will get the navbar.js source code from their cache, and you only need to edit the single navbar.js file to change all the navbars

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

Andy has the only solution left for you without cgi/ssi/etc. if you want to edit only one file.

If you don't have a ton of pages, you could also get an html editor with a global search & replace utility. That would make the same changes on every page. The downside is uploading all the pages each time though.

They have: 26 posts

Joined: Mar 2000

How about using a html editor such as Dreamweaver which allows for 'Templates' to be created which will update your whole site. It is expensive though.....

Thanks

Nemes

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi Tom,

Take a look at the code at my site, most if not all use some form *.js file.

(That, and you could post it at The Javascript Place forum -- I'm pretty sure the new moderator [clap, clap] would be willing to give you some free help Smiling

Vinny

------------------
GrassBlade: cut&paste javascript
The Javascript Place Forums

Where the world once stood
the blades of grass cut me still

They have: 231 posts

Joined: Feb 2000

Another solution would be to use ASP or PERL to generate your pages offline, then upload them manually. You could create a simple script which you execute to update each page of your site. You could also create new files.

:: Lloyd Hassell :: http://www14.brinkster.com/lloydh ::

They have: 314 posts

Joined: Nov 1999

Ok, well, i didnt use any of your advice though i did learn alot, so thanks for that!!

The way i opted for, the most dumb but the way thast i decided to do was to use ultraedit and search each each pageto find and replace. I realised i only needed it to replace the sponsers and partners on each page so it workls fine, onkly about 20 pages to upload. Once (if)i move my site i will use ssi though, and a script if i can find one that i can write in a text boc like this and it will be uploadd to the page, i think if i learn perl i will write a bulletin board which only ican post to and noone can reply. It wont even look like a bulletin board.

But thanks anyway

------------------
Thomas Minton
The JavaScript Place
Get paid $20 - $160 an hour for viewing adverts

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.