pbwest      2003/03/24 07:44:38

  Modified:    targets/fop/design/alt.design FOPropertySets.html
                        FoXMLEvent.html SyncedFoXmlEventsBuffer.html
                        XMLNamespaces.html codedisplay.js
  Log:
  alt.design updates
  
  Revision  Changes    Path
  1.13      +0 -0      
xml-site/targets/fop/design/alt.design/FOPropertySets.html
  
  Index: FOPropertySets.html
  ===================================================================
  RCS file: 
/home/cvs/xml-site/targets/fop/design/alt.design/FOPropertySets.html,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  
  
  
  1.4       +0 -0      xml-site/targets/fop/design/alt.design/FoXMLEvent.html
  
  Index: FoXMLEvent.html
  ===================================================================
  RCS file: /home/cvs/xml-site/targets/fop/design/alt.design/FoXMLEvent.html,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  
  
  
  1.4       +0 -0      
xml-site/targets/fop/design/alt.design/SyncedFoXmlEventsBuffer.html
  
  Index: SyncedFoXmlEventsBuffer.html
  ===================================================================
  RCS file: 
/home/cvs/xml-site/targets/fop/design/alt.design/SyncedFoXmlEventsBuffer.html,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  
  
  
  1.4       +0 -0      xml-site/targets/fop/design/alt.design/XMLNamespaces.html
  
  Index: XMLNamespaces.html
  ===================================================================
  RCS file: 
/home/cvs/xml-site/targets/fop/design/alt.design/XMLNamespaces.html,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  
  
  
  1.3       +59 -1     xml-site/targets/fop/design/alt.design/codedisplay.js
  
  Index: codedisplay.js
  ===================================================================
  RCS file: /home/cvs/xml-site/targets/fop/design/alt.design/codedisplay.js,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- codedisplay.js    17 Mar 2003 23:29:14 -0000      1.2
  +++ codedisplay.js    24 Mar 2003 15:44:37 -0000      1.3
  @@ -1 +1,59 @@
  -<html><head><title>Resource not Found</title><STYLE><!--H1{font-family : 
sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} 
BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color : 
white;} B{color : white;background-color : #0086b2;} HR{color : #0086b2;} 
--></STYLE> </head><body><h1>Cocoon 2 - Resource not Found</h1><hr size="1" 
noshade="noshade"/><p><b>type</b> resource-not-found</p><p><b>message</b> 
<u>Page Not Available.</u></p><p><b>description</b> <u>The requested resource 
couldn't be found.</u></p><p><b>sender</b> 
org.apache.cocoon.Main</p><p><b>source</b> Cocoon commandline 
(Main.java)</p><p><b>request-uri</b><pre>design/alt.design/codedisplay.js</pre></p><p><b>missing-file</b><pre>/usr/serverlocal/forrestbot/scripts/work/build/bot/xml-fop/site/design/alt.design/codedisplay.js</pre></p><hr
 size="1" noshade="true"/></body></html>
  \ No newline at end of file
  +// $Id$
  +var showing = new Array();
  +var x = new Array(); // scrollX
  +var y = new Array(); // scrollY
  +
  +function toggleCode(id, src, height, width) {
  +    //alert('In toggleCode');
  +    if (showing[id]) {
  +        hideCode(id);
  +    } else {
  +        showCode(id, src, height, width);
  +    }
  +}
  +
  +function showCode(id, src, height, width) {
  +    //alert('In showCode');
  +    if (showing[id]) { return; }
  +    if (document.getElementById && document.createElement) {
  +        if (window.scrollX != undefined) {
  +            x[id] = window.scrollX;
  +            y[id] = window.scrollY;
  +        }
  +        var parent = document.getElementById(id);
  +        var span = document.createElement('SPAN');
  +        parent.appendChild(span);
  +        var br = document.createElement('BR');
  +        var iframe = document.createElement('IFRAME');
  +        iframe.setAttribute('src', src);
  +        iframe.setAttribute('height', height);
  +        iframe.setAttribute('width', width);
  +        span.appendChild(br);
  +        span.appendChild(iframe);
  +        //parent.replaceChild(iframe, parent.lastChild);
  +        // window.scrollTo(x[id],y[id]);
  +        showing[id] = true;
  +    } else {
  +        alert(
  +                "Requires Navigator >= 7, Mozilla >= 1.2.1 or IE >= 6");
  +        return;
  +    }
  +}
  +
  +function hideCode(id) {
  +    //alert('In hideCode');
  +    if ( ! showing[id]) { return; }
  +    if (document.getElementById && document.createElement) {
  +        var parent = document.getElementById(id);
  +        parent.removeChild(parent.lastChild);
  +        if (x[id] != undefined) {
  +            window.scrollTo(x[id],y[id]);
  +        }
  +        showing[id] = false;
  +    } else {
  +        alert(
  +                "Requires Navigator >= 7, Mozilla >= 1.2.1 or IE >= 6");
  +        return;
  +    }
  +}
  +
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to