forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: xml-forrest/src/resources/skins/krysalis-site/xslt/html site2xhtml.xsl
Date Wed, 23 Jul 2003 13:12:43 GMT
nicolaken    2003/07/23 06:12:43

  Modified:    src/resources/skins/krysalis-site/scripts menu.js
               src/resources/skins/krysalis-site/css page.css
               src/resources/skins/krysalis-site/xslt/html site2xhtml.xsl
  Log:
  Added initial support for changing the icon og the collapsible menu
  titles. Strangely substituting the css image does not work (the image disappears).
  
  Revision  Changes    Path
  1.2       +8 -1      xml-forrest/src/resources/skins/krysalis-site/scripts/menu.js
  
  Index: menu.js
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/skins/krysalis-site/scripts/menu.js,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- menu.js	22 Jul 2003 15:49:20 -0000	1.1
  +++ menu.js	23 Jul 2003 13:12:41 -0000	1.2
  @@ -4,7 +4,7 @@
                      The Apache Software License, Version 1.1
    ============================================================================
   
  - Copyright (C) @skinconfig.year@ The Apache Software Foundation. All rights reserved.
  + Copyright (C) 2002-2003 The Apache Software Foundation. All rights reserved.
   
    Redistribution and use in source and binary forms, with or without modifica-
    tion, are permitted provided that the following conditions are met:
  @@ -67,14 +67,21 @@
   {
     if(document.getElementById)  {
       var el = document.getElementById(obj);
  +    var title = document.getElementById(obj+'Title');
   
       if(obj=="selected"&&el.style.display == ""){
  +      //nicolaken: doesn't work :-(
  +      //title.style.backgroundImage = "url('images/chapter_open.gif')";
         el.style.display = "block";
       }
   
       if(el.style.display != "block"){ 
  +      //nicolaken: doesn't work :-(
  +      //title.style.backgroundImage = 'url([url]images/chapter_open.gif[/url])';
         el.style.display = "block";
       }else{
  +      //nicolaken: doesn't work :-(
  +      //title.style.backgroundImage = "url('images/chapter.gif')";
         el.style.display = "none";
       }
     }// end -  if(document.getElementById) 
  
  
  
  1.15      +1 -1      xml-forrest/src/resources/skins/krysalis-site/css/page.css
  
  Index: page.css
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/skins/krysalis-site/css/page.css,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- page.css	22 Jul 2003 15:49:20 -0000	1.14
  +++ page.css	23 Jul 2003 13:12:41 -0000	1.15
  @@ -34,7 +34,7 @@
   .menutitle { 
           cursor:pointer;
           padding: 0px 3px 5px 10px;  
  -        background-image: url('images/chapter_open.gif');
  +        background-image: url('images/chapter.gif');
           background-repeat: no-repeat;
           background-position: center left;
           font-weight : bold;}
  
  
  
  1.18      +1 -1      xml-forrest/src/resources/skins/krysalis-site/xslt/html/site2xhtml.xsl
  
  Index: site2xhtml.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/skins/krysalis-site/xslt/html/site2xhtml.xsl,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- site2xhtml.xsl	22 Jul 2003 15:49:20 -0000	1.17
  +++ site2xhtml.xsl	23 Jul 2003 13:12:42 -0000	1.18
  @@ -372,7 +372,7 @@
       </xsl:variable>
       
       
  -    <div class="menutitle" onclick="SwitchMenu('{$tagid}')"><xsl:value-of select="font"/></div>
  +    <div class="menutitle" id="{$tagid}Title" onclick="SwitchMenu('{$tagid}')"><xsl:value-of
select="font"/></div>
         <div class="{$whichGroup}" id="{$tagid}">
           <xsl:for-each select= "ul/li">
   
  
  
  

Mime
View raw message