Add script to all pages help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to add ascript to all of the pages of my Website. Can anyone tell me a
quick and easy way to do this other than going through every single page
individually?


Thanks!!
 
Use find and replace if the script is to go in the same place in each
page. Tick Source Code and All pages
Example:

Find:

</head>

Replace with:

<script>
Blah blah blah
</script>
</head>

Even better if using JavaScript, place the script in an external file,
say scripts.js
Then use Find and Replace:
Find
</head>
Replace:
<script type="text/javascript" src="scripts.js"></script>

If any pages are in folders use View->Problems->Hyperlinks to correct
the links to the scripts file for those pages.

--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp

FrontPage Support: http://www.frontpagemvps.com/
 
Use an external script. Create a .js file and use the following in your
<head> tag:

<script type="text/javascript" src="scripts/whatever.js"></script>

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
 
Hi Kevin thanks, but even if I create an external js file I still would have
to add the script type tag to every page. I have my own anayltics program
running, but am trying to add on googles analytics to see if there are any
differences in data. So I am looking for a quick way to add their script to
each page.
 
Back
Top