Batch Processing in FP2003?

S

Sitara Lal

If I would like to add a script to all the pages on my site, is there some
kind of a tool that will help me accomplish that automatically rather than
doing it manually one file at a time?

If yes, how does one determine where the script is to be inserted? [I don't
really care, so long as it is somewhere within the body of the page and not
in the header section]
 
S

Stefan B Rusynko

You can Either us an Include page (say at the bottom of the page before the </body> tag)
or if the script is short use Search & Replace
Search for say: </body>
and replace with: script text here</body>

--

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


| If I would like to add a script to all the pages on my site, is there some
| kind of a tool that will help me accomplish that automatically rather than
| doing it manually one file at a time?
|
| If yes, how does one determine where the script is to be inserted? [I don't
| really care, so long as it is somewhere within the body of the page and not
| in the header section]
|
|
 
D

David Berry

Another way to do it is to use an external include file. For example, if
it's JavaScript you could put all the script in an external .js file (ex:
myscripts.js) and then include that on each page. You'd put that before the
</head> tag. Ex:

<script language="javascript" src="myscripts.js"></script>

If it's ASP code or server-side functions you could put those in an external
file as well and include them like this:

<!-- #include virtual="mycode.asp" -->

if it's CSS then you would put that in an external .css file and in the
<head> section put:

<link rel="stylesheet" type="text/css" href="mystyles.css"/>
 
Top