]> granicus.if.org Git - docbook-dsssl/commitdiff
New parameters multiframe.top.bgcolor, multiframe.bottom.bgcolor for setting backgrou...
authorJirka Kosek <jirka@kosek.cz>
Tue, 17 Jul 2001 08:29:56 +0000 (08:29 +0000)
committerJirka Kosek <jirka@kosek.cz>
Tue, 17 Jul 2001 08:29:56 +0000 (08:29 +0000)
New parameter toc.hide.show adds icon for dynamic hiding/showing toc for IE5.

slides/browser/slides.css
slides/graphics/hidetoc.gif [new file with mode: 0644]
slides/graphics/showtoc.gif [new file with mode: 0644]
slides/xsl/frames.xsl
slides/xsl/slides.xsl

index 60670e97294933cd687d45df9e2b20a64c73be24..a17c1e2fc03208db44037392c54e53d2187fa356 100644 (file)
                        padding-top: 0pt;
                        margin-top: 0pt;
                       }
+.foil      h2.subtitle   { text-align: center;
+                        color: blue;
+                        font-family: Arial;
+                       padding-top: 0pt;
+                       margin-top: 0pt;
+                      }
 
 .mediaobject          { text-align: center;
                       }
diff --git a/slides/graphics/hidetoc.gif b/slides/graphics/hidetoc.gif
new file mode 100644 (file)
index 0000000..fb58394
Binary files /dev/null and b/slides/graphics/hidetoc.gif differ
diff --git a/slides/graphics/showtoc.gif b/slides/graphics/showtoc.gif
new file mode 100644 (file)
index 0000000..4cbe4a3
Binary files /dev/null and b/slides/graphics/showtoc.gif differ
index 702c13847e5c4313820c1987ffad2f76413af814..ea08fac77d437bad2c9808903da560f07084d7db 100644 (file)
@@ -10,6 +10,9 @@
 <xsl:param name="ie5" select="0"/>
 <xsl:param name="multiframe" select="0"/>
 
+<xsl:param name="multiframe.top.bgcolor" select="'white'"/>
+<xsl:param name="multiframe.bottom.bgcolor" select="'white'"/>
+
 <xsl:template match="slides">
   <xsl:variable name="title">
     <xsl:choose>
@@ -31,8 +34,8 @@
         <head>
           <title><xsl:value-of select="$title"/></title>
         </head>
-        <frameset border="1" cols="{$toc.width},*" name="topframe">
-          <frame src="toc.html" name="toc"/>
+        <frameset border="1" cols="{$toc.width},*" name="topframe" framespacing="0">
+          <frame src="toc.html" name="toc" frameborder="1"/>
           <frame src="{$titlefoil.html}" name="foil"/>
           <noframes>
             <body class="frameset" xsl:use-attribute-sets="body-attrs">
@@ -341,9 +344,9 @@ if (selectBrowser() == "ie5") {
   </xsl:variable>
 
   <frameset rows="25,*,25" border="0" name="foil" framespacing="0">
-    <frame src="top-{$thissection}" name="top" marginheight="0" scrolling="no"/>
-    <frame src="body-{$thissection}" name="body" marginheight="0"/>
-    <frame src="bot-{$thissection}" name="bottom" marginheight="0" scrolling="no"/>
+    <frame src="top-{$thissection}" name="top" marginheight="0" scrolling="no" frameborder="0"/>
+    <frame src="body-{$thissection}" name="body" marginheight="0" frameborder="0"/>
+    <frame src="bot-{$thissection}" name="bottom" marginheight="0" scrolling="no" frameborder="0"/>
     <noframes>
       <body class="frameset" xsl:use-attribute-sets="body-attrs">
         <p>
@@ -380,7 +383,7 @@ if (selectBrowser() == "ie5") {
             </script>
           </xsl:if>
         </head>
-        <body class="navigation">
+        <body class="navigation" bgcolor="{$multiframe.top.bgcolor}">
           <xsl:call-template name="section-top-nav">
             <xsl:with-param name="prev-target" select="'foil'"/>
             <xsl:with-param name="next-target" select="'foil'"/>
@@ -496,7 +499,7 @@ if (selectBrowser() == "ie5") {
             </script>
           </xsl:if>
         </head>
-        <body class="navigation">
+        <body class="navigation" bgcolor="{$multiframe.bottom.bgcolor}">
           <xsl:call-template name="section-bottom-nav"/>
         </body>
       </html>
@@ -675,7 +678,7 @@ if (selectBrowser() == "ie5") {
       <xsl:value-of select="$nextfoil"/>
       <xsl:text>')</xsl:text>
     </xsl:attribute>
-    <frame src="top-{$thisfoil}" name="top" marginheight="0" scrolling="no">
+    <frame src="top-{$thisfoil}" name="top" marginheight="0" scrolling="no" frameborder="0">
       <xsl:attribute name="onkeypress">
         <xsl:text>navigate('</xsl:text>
         <xsl:value-of select="$prevfoil"/>
@@ -684,7 +687,7 @@ if (selectBrowser() == "ie5") {
         <xsl:text>')</xsl:text>
       </xsl:attribute>
     </frame>
-    <frame src="body-{$thisfoil}" name="body" marginheight="0">
+    <frame src="body-{$thisfoil}" name="body" marginheight="0" frameborder="0">
       <xsl:attribute name="onkeypress">
         <xsl:text>navigate('</xsl:text>
         <xsl:value-of select="$prevfoil"/>
@@ -693,7 +696,7 @@ if (selectBrowser() == "ie5") {
         <xsl:text>')</xsl:text>
       </xsl:attribute>
     </frame>
-    <frame src="bot-{$thisfoil}" name="bottom" marginheight="0" scrolling="no">
+    <frame src="bot-{$thisfoil}" name="bottom" marginheight="0" scrolling="no" frameborder="0">
       <xsl:attribute name="onkeypress">
         <xsl:text>navigate('</xsl:text>
         <xsl:value-of select="$prevfoil"/>
@@ -736,7 +739,7 @@ if (selectBrowser() == "ie5") {
             </script>
           </xsl:if>
         </head>
-        <body class="navigation">
+        <body class="navigation" bgcolor="{$multiframe.top.bgcolor}">
           <xsl:call-template name="foil-top-nav">
             <xsl:with-param name="prev-target" select="'foil'"/>
             <xsl:with-param name="next-target" select="'foil'"/>
@@ -801,7 +804,7 @@ if (selectBrowser() == "ie5") {
             </script>
           </xsl:if>
         </head>
-        <body class="navigation">
+        <body class="navigation" bgcolor="{$multiframe.bottom.bgcolor}">
           <xsl:call-template name="foil-bottom-nav"/>
         </body>
       </html>
index 87c7a8f7cb57bdaeb16bbe7b31138ccbd3b7918f..228f2f82cd4eddc0ea1dc3341ec80f04461f118c 100644 (file)
@@ -2,7 +2,7 @@
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">
 
-<xsl:import href="/sourceforge/docbook/xsl/html/chunk.xsl"/>
+<xsl:import href="../../xsl/html/chunk.xsl"/>
 
 <xsl:output method="html"/>
 
@@ -25,6 +25,9 @@
 
 <xsl:param name="toc.bg.color">#FFFFFF</xsl:param>
 <xsl:param name="toc.width">250</xsl:param>
+<xsl:param name="toc.hide.show" select="0"/>
+
+<xsl:param name="ie5" select="0"/>
 
 <xsl:attribute-set name="body-attrs">
   <xsl:attribute name="bgcolor">white</xsl:attribute>
     <table width="100%" border="0" cellpadding="0" cellspacing="0"
            summary="Navigation">
       <tr>
+        <xsl:call-template name="generate.toc.hide.show"/>
         <td align="left" width="10%">
           <xsl:choose>
             <xsl:when test="$prevfoil != ''">
     <table width="100%" border="0" cellpadding="0" cellspacing="0"
            summary="Navigation">
       <tr>
+        <xsl:call-template name="generate.toc.hide.show"/>
         <td align="left" width="10%">
           <xsl:choose>
             <xsl:when test="$prevfoil != ''">
   </div>
 </xsl:template>
 
+<xsl:template name="generate.toc.hide.show">
+  <xsl:if test="$toc.hide.show=1 and $ie5=1">
+    <td>    
+      <img hspace="4">
+       <xsl:attribute name="src">
+         <xsl:call-template name="graphics.dir"/>
+         <xsl:text>/</xsl:text>
+         <xsl:value-of select="'hidetoc.gif'"/>
+       </xsl:attribute>
+       <xsl:attribute name="onClick">
+if (parent.parent.document.all.topframe.cols=="0,*") 
+{ 
+   parent.parent.document.all.topframe.cols="<xsl:value-of select="$toc.width"/>,*"; 
+   this.src = "<xsl:call-template name="graphics.dir"/>
+              <xsl:text>/</xsl:text>
+              <xsl:value-of select="'hidetoc.gif'"/>";
+}
+else 
+{
+   parent.parent.document.all.topframe.cols="0,*";
+   this.src = "<xsl:call-template name="graphics.dir"/>
+              <xsl:text>/</xsl:text>
+              <xsl:value-of select="'showtoc.gif'"/>";
+};              
+       </xsl:attribute>
+      </img>
+    </td>
+  </xsl:if>
+</xsl:template>
+
 <!-- ============================================================ -->
 
 <xsl:template name="chunk">