RE: Static Text in Style Sheets

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

 Date:  Thu, 10 Feb 2000 10:58:31 -0800
 To:  "'Harshdeep S. Jawanda'" <harsh(at)pspl.co.in>,
HWG Techniques <hwg-techniques(at)hwg.org>
  todo: View Thread, Original
to have something in a separate file, i believe you'll have to either use a
server side include (if your server supports those) or use the <frame> or
<iframe> tags (i believe nn supports one of those and ie supports the other,
but i haven't done anything with them in ages, so i don't remember.

one thing with the <frame> stuff, though, is that i'm pretty sure you have
to define a set area on the page and if what you have goes beyond that, the
user will have to scroll, so this will only work if the text you want to
insert will remain fairly small...  

another thing you might look into is layers, but i'm not sure how widely
these are supported by browsers; i've never used 'em.

have fun!  
-rebecca
http://www.nerdygirl.com

-----Original Message-----
From: Harshdeep S. Jawanda [mailto:harsh(at)pspl.co.in]
Sent: Wednesday, February 09, 2000 7:26 PM
To: HWG Techniques
Subject: Re: Static Text in Style Sheets


Hi,

Rebecca Campbell wrote:

> 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");
> }

Yes, I understand this method. Is there any other, more elegant way to do
this?

> 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.

Can the *text* that I want to write using the aforementioned method be kept
in
a separate file? If so, how can javascript use it?

> hth,
> -rebecca

It did :-).

> 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.

TIA.

--
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.