Hi Carl,
I find it useful to use CDATA sections with javascript, e.g.
<script language="javascript">
<![CDATA[<!--
//body of script
-->]]>
</script>
Perhaps this will help. If you need to dynamically generate portions
of the script, it can get a little ugly
<script language="javascript">
<![CDATA[<!--
//body of script
var myVar = ']]><xsl:value-of select="$myVar"/><![CDATA[';
-->]]>
</script>
-Alex
On Nov 29, 2004, at 9:40 AM, Carl Barrow wrote:
> Hi Alex/Adam
>
> whilst this isn't really a HyperContent question I was hoping you
> might have come across something similar whilst building your sites
> there at Columbia.
>
> My sites here at Hull output a text only version. I've have some
> javascript in the html <head> tag that allows the user to change the
> text and background colour to whatever they feel best.
> <SCRIPT LANGUAGE="JavaScript">
> function text() {
> document.body.text=(""+ colc.textcolour.value +"");
> document.body.link=(""+ colc.textcolour.value +"");
> }
> </script>
>
> I have been having a few problems getting this into the template. I
> think the </script> tag is being turned into a <script /> leaving the
> top tag without it's end tag.
>
> Is this something you've seen and managed to over come?
>
> Many thanks
> Carl
>
> --
> ************************************
>
> Carl Barrow
> Web Developer
> e-Services
> The University of Hull
> Cottingham Road
> Hull
> HU6 7RX
> Ext. 6838
> ************************************
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real
> users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> Hypercontent-users mailing list
> Hyp...@li...
> https://lists.sourceforge.net/lists/listinfo/hypercontent-users
>
|