[Webdev] very poor html q

Gav gav at doesnotcompute.net
Fri Jun 16 13:20:15 IST 2000


if you mean for just inserting a bit of javascript, like the date/counter
you were talking about you can place the code:

<script language="JavaScript" src="stuff.js" type="text/javascript">
</script>

in your page wherever you want the javascript to appear
the file "stuff.js" should contain all the javascript that you would
nomally put inbetween <script> and </script>

hth,
gav

On Fri, 16 Jun 2000, Lars Hecking wrote:

> MC writes:
> > I will try to get this one in quick while the list is new! (but it has me stuck a while). Maybe just html.
> > Is there an easy way to get a page to pull in another file (like maybe to put
> > something like a sig at the bottom of every page, rather than inserting it
> > into every .html file)? This occurred to me while trying to access a script
> > (e.g. to print time and date/counter), but without typing the script in every
> > page. I can see how to include jpgs, and so forth... but text has me stumped.
> > hope this doesn't lower the tone too much,
> 
>  One way of doing this is SSI, server side includes. E.g. at the bottom of
>  every page:
> 
>  <!--#include virtual="/common/trailer.shtml" -->
> 
>  Check out the mod_include section in the Apache manual.
> 
>  SSI is quite neat. It allows, for instance, to set variables at the top
>  of every page, and then, in trailer.shtml, take different paths depending
>  on the values of these variables.
> 
> 
> _______________________________________________
> Webdev mailing list
> Webdev at linux.ie
> http://www.linux.ie/mailman/listinfo/webdev
> 





More information about the Webdev mailing list