diff options
author | Joey Hagedorn <hagedorn@mcs.anl.gov> | 2005-11-25 10:01:42 +0000 |
---|---|---|
committer | Joey Hagedorn <hagedorn@mcs.anl.gov> | 2005-11-25 10:01:42 +0000 |
commit | 93ed73d6469134a1d570c67fda5ceb8b97540151 (patch) | |
tree | b7ba8f8ea02bf1390259ee12b936ad582b3c9176 /reports/xsl-transforms/xsl-transform-includes/main-js.xsl | |
parent | f77b645867e746b79456daa77f515ae997cae39c (diff) | |
download | bcfg2-93ed73d6469134a1d570c67fda5ceb8b97540151.tar.gz bcfg2-93ed73d6469134a1d570c67fda5ceb8b97540151.tar.bz2 bcfg2-93ed73d6469134a1d570c67fda5ceb8b97540151.zip |
(Logical change 1.365)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1526 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'reports/xsl-transforms/xsl-transform-includes/main-js.xsl')
-rw-r--r-- | reports/xsl-transforms/xsl-transform-includes/main-js.xsl | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/reports/xsl-transforms/xsl-transform-includes/main-js.xsl b/reports/xsl-transforms/xsl-transform-includes/main-js.xsl index e69de29bb..b112504b4 100644 --- a/reports/xsl-transforms/xsl-transform-includes/main-js.xsl +++ b/reports/xsl-transforms/xsl-transform-includes/main-js.xsl @@ -0,0 +1,33 @@ +<?xml version="1.0"?> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + +<xsl:output method="html" indent="no"/> +<xsl:variable name="main-js"> + +<script language="JavaScript"><xsl:comment> +function toggleLayer(whichLayer) + { + if (document.getElementById) + { + // this is the way the standards work + var style2 = document.getElementById(whichLayer).style; + style2.display = style2.display? "":"block"; + } + else if (document.all) + { + // this is the way old msie versions work + var style2 = document.all[whichLayer].style; + style2.display = style2.display? "":"block"; + } + else if (document.layers) + { + // this is the way nn4 works + var style2 = document.layers[whichLayer].style; + style2.display = style2.display? "":"block"; + } + } +// </xsl:comment></script> +</xsl:variable> +</xsl:stylesheet> + |