Easier way to maintain website?

G

Guest

I have a website with many pages. Currently, if i make a change/update to the
script, i must manually go to every single page and make the changes.

Is there any easier way to update/maintain it? Example, i change one main
site and the rest will automatically change?
 
D

David Berry

What type of script? You could use Include Pages (Insert Web Component,
Include Page) to include duplicate content on all pages. Then you just
update the include page. If it's CSS or JavaScript you can put these in
external files called .css or .js and reference them on all pages. It
depends on what you need to update when you say "script"
 
S

Stefan B Rusynko

Depend on the script functions
- many times you can put it in a external .js file and link it to pages that use it

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| Please forgive me for not being clear. I am refering to Javascript.
|
| I had use Include Pages to duplicate content. However, it seem that the
| Javasript does not work on other pages except the original page.
|
| If it is Javascript, how can i put the code to reference them to the other
| pages? I am quite new to all these. And thanks for replying to my post.
|
| "David Berry" wrote:
|
| > What type of script? You could use Include Pages (Insert Web Component,
| > Include Page) to include duplicate content on all pages. Then you just
| > update the include page. If it's CSS or JavaScript you can put these in
| > external files called .css or .js and reference them on all pages. It
| > depends on what you need to update when you say "script"
| >
| >
| > | > >I have a website with many pages. Currently, if i make a change/update to
| > >the
| > > script, i must manually go to every single page and make the changes.
| > >
| > > Is there any easier way to update/maintain it? Example, i change one main
| > > site and the rest will automatically change?
| > >
| > >
| >
| >
| >
 
D

David Berry

You would save the script in a text file and name it .js (ex:scripts.js)
then switch to code view and add this line above the </head> tag

<script language="JavaScript" src="scripts.js"></script>

then you would only need to update the .js file
 
S

Stefan B Rusynko

From http://www.dynamicdrive.com/dynamicindex1/anylinkvertical.htm
Past everything (......) INSIDE the below tags (not the outer tags into a .js file)
<script type="text/javascript">
.......
</script>

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| Hi David,
|
| Thanks for the guide, but somehow, i get error message and is unable to use
| the javascript this way.
|
| I am using the this javascript "AnyLink Vertical Menu- © Dynamic Drive
| (www.dynamicdrive.com)
|
| If anyone is able to help solve this, i be most appreciative.
|
| "David Berry" wrote:
|
| > You would save the script in a text file and name it .js (ex:scripts.js)
| > then switch to code view and add this line above the </head> tag
| >
| > <script language="JavaScript" src="scripts.js"></script>
| >
| > then you would only need to update the .js file
| >
|
 

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

Top