Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Is this possible? I constantly find myself entering the same html script into multiple pages. Isn't there a program somewhere that will just take the script I want and enter it into all my webpages? This would be an extremly useful tool, I imagine it exists somewhere. Can someone point me to a URL

I've never used them, but I believe the Server-Side Includes (SSI) might do the trick for you. I did a google search on "HTML SSI" and below is one of the many returns.
http://www.carleton.ca/~dmcfet/html/ssi.html
Also, if you use a server side language like JSP, PHP, Coldfusion, etc., you can include files in those languages also.

I am not sure if I was unclear. Is there any program that will take for example this script
<javascript>
Hello World
</script>And insert into every page I specify into a specific place within each html?
So I want to insert this script:
<javascript>
Hello World
</script>
In this location of every page:<html>
<head>
-----> X <-----
</head><body>
</body></html>
Looking more for a program, not a programming language if possible. I know it exists, and it would be extremly usful, and probably save me ALOT of time.
Thanks for any help offered!

I can only think of:
dreamweaver's templating
- create page
- create "editable region(s)"
- save as templatethen you can create as many pages as you like with the above template... but one thing for sure, the code will be bloated because of dreamweacer's comment (needed by them to understand the templating)...
Don Arnett's reading you clear, you should try his advice about SSI, it's the simplest templating method...
I dont think a "program" that will do the template for you is good... dreamweaver IMO is the best tool right now, but still I won't use their "program" to create a site template... too bloated
^o^
are you in Asia? do you watch Animax Asia? Please Vote

Thanks for the help. I am really suprised that someone has written a program to do this yet. I mean, it really wouldn't be that hard to input a file in something like c++ and check the file until it hits <head> then after that line enter a predetermined code, or scan the file for the <body> and insert the predefined code there. Maybe if I have some free time I will just write the program, I know it would save a ton of overhead time in the long run!

If yo uare dealiing with javascript just link to the external javascript in each page. then you can just ediit the .js file to alter all the pages at once.
-Ryan Adams
Ryan's
Custom Cables

Laler is right if you use something like Dreamweaver...seems to be pretty good. If you have server-side scripting (ASP, PHP, JSP, SSI) you can use includes. For instance, I use the same PHP header and footer in all my pages using the PHP include() function...you can also use include_once(), require() and require_once(). Not sure if that's what you're looking for, just an alternate solution...

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |