RE: Static Text in Style Sheets

by Rebecca Campbell <rcampbel(at)standard.com>

 Date:  Wed, 9 Feb 2000 09:37:02 -0800
 To:  "'Harshdeep S. Jawanda'" <harsh(at)pspl.co.in>,
HWG Techniques <hwg-techniques(at)hwg.org>
  todo: View Thread, Original
to have javascript write text in the way i think you're wanting to, you'll
have to define a function.  off the top of my head, i think it should look
something like this:

function writeStuff() {
  document.write("this is the stuff i want to write");
}

that's about all there is to it...  then, on your page, you can call the
function:

<script language="javascript">
  writeStuff();
</script>

if you put the javascript in a separate file, you can call it on all your
pages and change the text once for all your pages.  

hth,
-rebecca
http://www.nerdygirl.com
-----Original Message-----
From: Harshdeep S. Jawanda [mailto:harsh(at)pspl.co.in]
Sent: Wednesday, February 09, 2000 5:27 AM
To: HWG Techniques
Subject: Re: Static Text in Style Sheets



WebProgrmr(at)aol.com wrote:

> [snip]
> You can also do this same thing with JavaScript but I'm not a JS code
monkey.
>
> The benefit of JS is that it's not server dependent.  You can likely make
it
> do what SSI does with less hassles.
> [snip]

Can anybody give me any idea of how this can be done in JS? Also, does
anybody
know whether Geocities allows SSI on their *free* web pages?

> >  Is there a way to place static test in a style sheet that will be
> > displayed
> >  on all pages linked to that style sheet using HTML commands?  I am a
little
> >  new to style sheets and not sure if this is even possible.

--
Regards,
Er. Harshdeep Singh Jawanda.

The covers of this book are too far apart.
-Ambrose Bierce, reviewing a book.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Alternate E-mail: harshdeep(at)graffiti.net

Web page: http://www.pspl.co.in/~harsh
          http://www.geocities.com/hsjawanda
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.