[Javascript] printing blocks of text

Alan Easton alan.easton at unn.ac.uk
Fri Aug 1 07:42:24 CDT 2003


I have done this kind of thing in the past:

<script language=javascript>
var oeTags = '<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'WIDTH="222" HEIGHT="38"'
    +
'CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.c
ab">'
    + '<PARAM NAME="MOVIE" VALUE="contact.swf">'
    + '<PARAM NAME="PLAY" VALUE="true">'
    + '<PARAM NAME="LOOP" VALUE="false">'
    + '<PARAM NAME="QUALITY" VALUE="high">'
    + '<PARAM NAME="MENU" VALUE="false">'
    + '<PARAM NAME="bgcolor" VALUE="#009966">'
    + '<EMBED SRC="contact.swf"'
    + 'WIDTH="222" HEIGHT="38"'
    + 'PLAY="true"'
    + 'LOOP="false"'
    + 'QUALITY="high"'
    + 'BGCOLOR="#009966"'
    + 'MENU="false"'
    + 'TYPE="application/x-shockwave-flash"'
    +
'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod
_Version=ShockwaveFlash">'
    + '</EMBED>'
    + '</OBJECT>';

    document.write(oeTags);
</script>

Don't know if it helps, but you get the idea........

Alan...


-----Original Message-----
From: Chris Tifer [mailto:christ at saeweb.com]
Sent: 01 August 2003 13:34
To: [JavaScript List]
Subject: Re: [Javascript] printing blocks of text


None that I know of. Not with JavaScript.

Chris Tifer
http://emailajoke.com

----- Original Message -----
From: "Chris Basken" <chriz at basken.com>
To: <javascript at LaTech.edu>
Sent: Thursday, July 31, 2003 4:37 PM
Subject: [Javascript] printing blocks of text


> Hey all,
>
> In Perl, you can do things like:
>
>    print qq*
>
>    BUNCH OF PLAIN TEXT HERE
>
>    *;
>
> Is there a way to do something similar in JS?  If I have line after line
of
> HTML I want to write, I've usually just done lots of document.writes, but
> that involves escaping quotes and whatnot.  Is there a better way?
>
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript


More information about the Javascript mailing list