Regenerated new Doxygen custom HTML header, footer, and stylesheet with 1.7.6, but only for use with Doxygen 1.7.4.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69958 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Bryan Petty
2011-12-08 15:45:41 +00:00
parent 079b6a775a
commit 20004800cf
14 changed files with 1114 additions and 825 deletions

View File

@@ -14,4 +14,5 @@
GENERATE_HTML = YES GENERATE_HTML = YES
SEARCHENGINE = YES SEARCHENGINE = YES
SERVER_BASED_SEARCH = NO

View File

@@ -13,6 +13,8 @@
DOXYFILE_ENCODING = UTF-8 DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = wxWidgets PROJECT_NAME = wxWidgets
PROJECT_NUMBER = 2.9.3 PROJECT_NUMBER = 2.9.3
PROJECT_BRIEF =
PROJECT_LOGO = logo.png
OUTPUT_DIRECTORY = out OUTPUT_DIRECTORY = out
CREATE_SUBDIRS = NO CREATE_SUBDIRS = NO
OUTPUT_LANGUAGE = English OUTPUT_LANGUAGE = English
@@ -321,16 +323,24 @@ IGNORE_PREFIX = wx
GENERATE_HTML = NO # Only change in format output configs GENERATE_HTML = NO # Only change in format output configs
HTML_OUTPUT = html HTML_OUTPUT = html
HTML_FILE_EXTENSION = .html HTML_FILE_EXTENSION = .html
HTML_HEADER = htmlheader.inc HTML_HEADER = custom_header.html
HTML_FOOTER = htmlfooter.inc HTML_FOOTER = custom_footer.html
HTML_STYLESHEET = HTML_STYLESHEET = custom_stylesheet.css
HTML_EXTRA_FILES =
HTML_COLORSTYLE_HUE =
HTML_COLORSTYLE_SAT = 255
HTML_COLORSTYLE_GAMMA = 100
HTML_TIMESTAMP = YES
HTML_ALIGN_MEMBERS = YES HTML_ALIGN_MEMBERS = YES
HTML_DYNAMIC_SECTIONS = YES HTML_DYNAMIC_SECTIONS = YES
DISABLE_INDEX = NO DISABLE_INDEX = NO
ENUM_VALUES_PER_LINE = 1 ENUM_VALUES_PER_LINE = 1
GENERATE_TREEVIEW = NONE GENERATE_TREEVIEW = NO
USE_INLINE_TREES = NO
TREEVIEW_WIDTH = 250 TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = YES
FORMULA_FONTSIZE = 10 FORMULA_FONTSIZE = 10
FORMULA_TRANSPARENT = YES
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
# configuration options related to the CHM output # configuration options related to the CHM output

View File

@@ -0,0 +1,21 @@
<!--BEGIN GENERATE_TREEVIEW-->
<li class="footer">
Page generated on $datetime by <!--[Doxygen 1.7.6+] $generatedby -->
<a href="http://www.doxygen.org/index.html" target="_new">Doxygen</a> $doxygenversion</li>
</ul>
</div>
<!--END GENERATE_TREEVIEW-->
<!--BEGIN !GENERATE_TREEVIEW-->
<hr class="footer"/>
<address class="footer">
<small>
Page generated on $datetime by <!--[Doxygen 1.7.6+] $generatedby -->
<a href="http://www.doxygen.org/index.html" target="_new">Doxygen</a> $doxygenversion
</small>
</address>
<!--END !GENERATE_TREEVIEW-->
<script src="wxwidgets.js" type="text/javascript"></script>
</body>
</html>

View File

@@ -0,0 +1,37 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<!--BEGIN PROJECT_NAME--><title>$projectname: $title</title><!--END PROJECT_NAME-->
<!--BEGIN !PROJECT_NAME--><title>$title</title><!--END !PROJECT_NAME-->
<link href="$relpath$tabs.css" rel="stylesheet" type="text/css"/>
<link href="$relpath$custom_stylesheet.css" rel="stylesheet" type="text/css" />
$treeview
$search
$mathjax
</head>
<body>
<div id="top"><!-- do not remove this div! -->
<!--BEGIN TITLEAREA-->
<div id="titlearea">
<table cellspacing="0" cellpadding="0" style="width: 100%;">
<tbody>
<tr>
<!--BEGIN PROJECT_LOGO-->
<td id="projectlogo"><a href="http://www.wxwidgets.org/" target="_new"><img alt="Logo" src="$relpath$$projectlogo"/></a></td>
<!--END PROJECT_LOGO-->
<td style="padding: 0.5em; text-align: right;">
<!--BEGIN PROJECT_NUMBER--><span id="projectnumber">Version: $projectnumber</span><!--END PROJECT_NUMBER-->
</td>
<!--BEGIN DISABLE_INDEX-->
<!--BEGIN SEARCHENGINE-->
<td>$searchbox</td>
<!--END SEARCHENGINE-->
<!--END DISABLE_INDEX-->
</tr>
</tbody>
</table>
</div>
<!--END TITLEAREA-->

File diff suppressed because it is too large Load Diff

View File

@@ -1,25 +0,0 @@
<!-- ******************************************************* -->
<!-- Standard wxWidgets footer -->
<!-- NOTE: <br/> must go inside <p> but <hr/> must go outside -->
<p><br/></p><hr/>
<table width="100%" border="0">
<tr>
<td align="left">
<a href="http://www.wxwidgets.org" style="margin-left: 0px">
<img src="powered-by-wxwidgets.png" alt="wxWidgets logo" border="0"/>
</a>
</td>
<td valign="middle" align="center"><p class="footer">Page generated <tt>$datetime</tt> by <a href="http://www.doxygen.org">Doxygen</a> $doxygenversion</p></td>
<td valign="middle" align="right"><p>[ <a href="#top" class="top">top</a> ]</p></td>
</tr>
</table>
<script src="wxwidgets.js" type="text/javascript"></script>
</body>
</html>
<!-- ***************************************************** -->
<!-- End of wxWidgets standard footer -->

View File

@@ -1,21 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- ****************************************************** -->
<!-- Standard wxWidgets header -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>$title</title>
<meta name="author" content="wxWidgets team"/>
<meta name="created" content="$datetime"/>
<meta name="keywords" content="wxWidgets"/>
<link href="wxwidgets.css" rel="stylesheet" type="text/css"/>
<link href="wxtabs.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- End of wxWidgets standard header -->
<!-- *************************************************** -->

BIN
docs/doxygen/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

@@ -9,7 +9,7 @@
/** /**
@mainpage Reference manual @mainpage Documentation
@author Julian Smart, Robert Roebling, Vadim Zeitlin, Robin Dunn, @author Julian Smart, Robert Roebling, Vadim Zeitlin, Robin Dunn,
Stefan Csomor, Francesco Montorsi, Bryan Petty, et al Stefan Csomor, Francesco Montorsi, Bryan Petty, et al
@date December, 2011 @date December, 2011

View File

@@ -24,11 +24,6 @@ copy images\wxmsw\*.png out\html\wxmsw 2>&1 >NUL
copy images\wxmac\*.png out\html\wxmac 2>&1 >NUL copy images\wxmac\*.png out\html\wxmac 2>&1 >NUL
copy wxwidgets.js out\html 2>&1 >NUL copy wxwidgets.js out\html 2>&1 >NUL
REM these CSS are not automatically copied by Doxygen because they're
REM included by our custom html header...
copy wxwidgets.css out\html 2>&1 >NUL
copy wxtabs.css out\html 2>&1 >NUL
REM set cfgfile variable to the right doxyfile to use, REM set cfgfile variable to the right doxyfile to use,
REM using MS broken batch scripting REM using MS broken batch scripting
setlocal enableextensions setlocal enableextensions

View File

@@ -38,11 +38,6 @@ cp images/wxgtk/*png out/html/wxgtk
cp images/generic/*png out/html/generic cp images/generic/*png out/html/generic
cp wxwidgets.js out/html cp wxwidgets.js out/html
# these CSS are not automatically copied by Doxygen because they're
# included by our custom html header...
cp wxwidgets.css out/html
cp wxtabs.css out/html
# which configuration should we use? # which configuration should we use?
if [[ -z "$1" ]]; then if [[ -z "$1" ]]; then
cfgfile="Doxyfile_all" cfgfile="Doxyfile_all"
@@ -147,9 +142,7 @@ fi
currpath=`pwd`/ currpath=`pwd`/
interfacepath=`cd ../../interface && pwd`/ interfacepath=`cd ../../interface && pwd`/
cat doxygen.log | sed -e "s|$currpath||g" -e "s|$interfacepath||g" > temp cat doxygen.log | sed -e "s|$currpath||g" -e "s|$interfacepath||g" > temp
cat temp > doxygen.log
# Doxygen warnings are not completely sorted for filename; enforce correct sorting:
cat temp | sort >doxygen.log
rm temp rm temp
# return to the original folder from which this script was launched # return to the original folder from which this script was launched

View File

@@ -1,217 +0,0 @@
/*****************************************************************************
** Name: wxtabs.css
** Purpose: The wxWidgets documentation CSS
** Author: Doxygen team
** RCS-ID: $Id$
** Licence: wxWindows licence
*****************************************************************************/
/*
Doxygen classic tabs styles, based on http://www.alistapart.com/articles/slidingdoors
*/
DIV.tabs
{
float : left;
width : 100%;
background : url("tab_b.gif") repeat-x bottom;
margin-bottom : 4px;
}
DIV.tabs UL
{
margin : 0px;
padding-left : 10px;
list-style : none;
}
DIV.tabs LI, DIV.tabs FORM
{
display : inline;
margin : 0px;
padding : 0px;
}
DIV.tabs FORM
{
float : right;
}
DIV.tabs A
{
float : left;
background : url("tab_r.gif") no-repeat right top;
border-bottom : 1px solid #84B0C7;
font-size : 80%;
font-weight : bold;
text-decoration : none;
}
DIV.tabs A:hover
{
background-position: 100% -150px;
}
DIV.tabs A:link, DIV.tabs A:visited,
DIV.tabs A:active, DIV.tabs A:hover
{
color: #1A419D;
}
DIV.tabs SPAN
{
float : left;
display : block;
background : url("tab_l.gif") no-repeat left top;
padding : 5px 9px;
white-space : nowrap;
}
DIV.tabs INPUT
{
float : right;
display : inline;
font-size : 1em;
}
DIV.tabs TD
{
font-size : 80%;
font-weight : bold;
text-decoration : none;
}
/* Commented Backslash Hack hides rule from IE5-Mac \*/
DIV.tabs SPAN {float : none;}
/* End IE5-Mac hack */
DIV.tabs A:hover SPAN
{
background-position: 0% -150px;
}
DIV.tabs LI.current A
{
background-position: 100% -150px;
border-width : 0px;
}
DIV.tabs LI.current SPAN
{
background-position: 0% -150px;
padding-bottom : 6px;
}
DIV.navpath
{
background : none;
border : none;
border-bottom : 1px solid #84B0C7;
text-align : center;
margin : 2px;
padding : 2px;
}
/*
NOTE: since v. 1.7.0 Doxygen uses new style names for some tabs... and in particular uses "tabs2" for
the CSS style names of the "Class List, Class Index, Class Hierarchy, Class Members" tabs.
For now we keep for "tabs2" tabs the same style used with other ones.
*/
DIV.tabs2
{
float : left;
width : 100%;
background : url("tab_b.gif") repeat-x bottom;
margin-bottom : 4px;
}
DIV.tabs2 UL
{
margin : 0px;
padding-left : 10px;
list-style : none;
}
DIV.tabs2 LI, DIV.tabs2 FORM
{
display : inline;
margin : 0px;
padding : 0px;
}
DIV.tabs2 FORM
{
float : right;
}
DIV.tabs2 A
{
float : left;
background : url("tab_r.gif") no-repeat right top;
border-bottom : 1px solid #84B0C7;
font-size : 80%;
font-weight : bold;
text-decoration : none;
}
DIV.tabs2 A:hover
{
background-position: 100% -150px;
}
DIV.tabs2 A:link, DIV.tabs2 A:visited,
DIV.tabs2 A:active, DIV.tabs2 A:hover
{
color: #1A419D;
}
DIV.tabs2 SPAN
{
float : left;
display : block;
background : url("tab_l.gif") no-repeat left top;
padding : 5px 9px;
white-space : nowrap;
}
DIV.tabs2 INPUT
{
float : right;
display : inline;
font-size : 1em;
}
DIV.tabs2 TD
{
font-size : 80%;
font-weight : bold;
text-decoration : none;
}
/* Commented Backslash Hack hides rule from IE5-Mac \*/
DIV.tabs2 SPAN {float : none;}
/* End IE5-Mac hack */
DIV.tabs2 A:hover SPAN
{
background-position: 0% -150px;
}
DIV.tabs2 LI.current A
{
background-position: 100% -150px;
border-width : 0px;
}
DIV.tabs2 LI.current SPAN
{
background-position: 0% -150px;
padding-bottom : 6px;
}

View File

@@ -1,494 +0,0 @@
/*****************************************************************************
** Name: wxwidgets.css
** Purpose: The wxWidgets documentation CSS; a customized version of
** the standard Doxygen CSS
** Author: Doxygen team
** RCS-ID: $Id$
** Licence: wxWindows licence
*****************************************************************************/
/*
Doxygen classic styles
======================
*/
BODY,H1,H2,H3,H4,H5,H6,P,CENTER,TD,TH,UL,DL,DIV {
font-family: Geneva, Arial, Helvetica, sans-serif;
}
BODY,TD {
font-size: 90%;
}
H1 {
text-align: center;
font-size: 160%;
border-top: 1em;
}
H2 {
font-size: 120%;
padding-top: 1em;
border-top: 3px solid #AAA;
}
H3 {
text-align: center;
font-size: 100%;
}
CAPTION {
font-weight: bold
}
DIV.qindex {
width: 100%;
background-color: #e8eef2;
border: 1px solid #84b0c7;
text-align: center;
margin: 2px;
padding: 2px;
line-height: 140%;
}
DIV.navpath {
width: 100%;
background-color: #e8eef2;
border: 1px solid #84b0c7;
text-align: center;
margin: 2px;
padding: 2px;
line-height: 140%;
}
DIV.navtab {
background-color: #e8eef2;
border: 1px solid #84b0c7;
text-align: center;
margin: 2px;
margin-right: 15px;
padding: 2px;
}
TD.navtab {
font-size: 70%;
}
A.qindex {
text-decoration: none;
font-weight: bold;
color: #1A419D;
}
A.qindex:visited {
text-decoration: none;
font-weight: bold;
color: #1A419D
}
A.qindex:hover {
text-decoration: none;
background-color: #ddddff;
}
A.qindexHL {
text-decoration: none;
font-weight: bold;
background-color: #6666cc;
color: #ffffff;
border: 1px double #9295C2;
}
A.qindexHL:hover {
text-decoration: none;
background-color: #6666cc;
color: #ffffff;
}
A.qindexHL:visited {
text-decoration: none;
background-color: #6666cc;
color: #ffffff
}
A.el {
text-decoration: none;
font-weight: bold
}
A.elRef {
font-weight: bold
}
A.code:link {
text-decoration: none;
font-weight: normal;
color: #0000FF
}
A.code:visited {
text-decoration: none;
font-weight: normal;
color: #0000FF
}
A.codeRef:link {
font-weight: normal;
color: #0000FF
}
A.codeRef:visited {
font-weight: normal;
color: #0000FF
}
A:hover {
text-decoration: none;
background-color: #f2f2ff
}
DL.el {
margin-left: -1cm
}
.fragment {
font-family: monospace, fixed;
font-size: 95%;
}
PRE.fragment {
border: 1px solid #CCCCCC;
background-color: #f5f5f5;
margin: 4px 8px 4px 2px;
padding: 4px 6px;
}
DIV.ah {
background-color: black;
font-weight: bold;
color: #ffffff;
margin-bottom: 3px;
margin-top: 3px
}
DIV.groupHeader {
margin-left: 16px;
margin-top: 12px;
margin-bottom: 6px;
font-weight: bold;
}
DIV.groupText {
margin-left: 16px;
font-style: italic;
font-size: 90%
}
BODY {
background: white;
color: black;
margin-right: 20px;
margin-left: 20px;
}
TD.indexkey {
background-color: #e8eef2;
font-weight: bold;
padding: 2px 10px;
margin: 2px 0px;
border: 1px solid #CCCCCC;
}
TD.indexvalue {
background-color: #e8eef2;
font-style: italic;
padding: 2px 10px;
margin: 2px 0px;
border: 1px solid #CCCCCC;
}
TR.memlist {
background-color: #f0f0f0;
}
P.formulaDsp {
text-align: center;
}
IMG.formulaDsp {
}
IMG.formulaInl {
vertical-align: middle;
}
SPAN.keyword { color: #008000 }
SPAN.keywordtype { color: #604020 }
SPAN.keywordflow { color: #e08000 }
SPAN.comment { color: #800000 }
SPAN.preprocessor { color: #806020 }
SPAN.stringliteral { color: #002080 }
SPAN.charliteral { color: #008080 }
SPAN.vhdldigit { color: #ff00ff }
SPAN.vhdlchar { color: #000000 }
SPAN.vhdlkeyword { color: #700070 }
SPAN.vhdllogic { color: #ff0000 }
/* Doxygen Member Description Style 1.5.7 */
.mdescLeft, .mdescRight,
.memItemLeft, .memItemRight,
.memTemplItemLeft, .memTemplItemRight, .memTemplParams {
background-color: #FAFAFA;
border: none;
margin: 4px;
padding: 1px 0 0 8px;
}
.mdescLeft, .mdescRight {
padding: 0px 8px 4px 8px;
color: #555;
}
.memItemLeft, .memItemRight, .memTemplParams {
border-top: 1px solid #ccc;
}
.memTemplParams {
color: #606060;
}
/*******************************************/
TD.tiny {
font-size: 75%;
}
a {
color: #1A41A8;
}
a:visited {
color: #2A3798;
}
.dirtab {
padding: 4px;
border-collapse: collapse;
border: 1px solid #84b0c7;
}
TH.dirtab {
background: #e8eef2;
font-weight: bold;
}
HR {
/*
height: 3px;
margin-top: 1.5em;
margin-bottom: 1.5em;
*/
height: 0px;
margin: 0;
border: 0px;
}
/* Style for detailed member documentation */
.memtemplate {
font-size: 80%;
color: #606060;
font-weight: normal;
margin-left: 3px;
}
.memnav {
background-color: #e8eef2;
border: 1px solid #84b0c7;
text-align: center;
margin: 2px;
margin-right: 15px;
padding: 2px;
}
.memitem {
padding: 0;
}
.memname {
white-space: nowrap;
font-weight: bold;
padding: 2px 2px;
}
.memproto, .memdoc {
border: 1px solid #84b0c7;
}
.memproto {
padding: 0;
background-color: #d5e1e8;
font-weight: bold;
-webkit-border-top-left-radius: 8px;
-webkit-border-top-right-radius: 8px;
-moz-border-radius-topleft: 8px;
-moz-border-radius-topright: 8px;
}
.memdoc {
padding: 5px 8px;
background-color: #eef3f5;
border-top-width: 0;
-webkit-border-bottom-left-radius: 8px;
-webkit-border-bottom-right-radius: 8px;
-moz-border-radius-bottomleft: 8px;
-moz-border-radius-bottomright: 8px;
}
.memdoc p, .memdoc dl, .memdoc ul {
margin: 6px 0;
}
.paramkey {
text-align: right;
}
.paramtype {
white-space: nowrap;
}
.paramname {
color: #602020;
white-space: nowrap;
}
.paramname em {
font-style: normal;
}
/* End Styling for detailed member documentation */
/* for the tree view */
.ftvtree {
font-family: sans-serif;
margin:0.5em;
}
.directory {
font-size: 9pt;
font-weight: bold;
}
.directory h3 {
margin: 0px;
margin-top: 1em;
font-size: 11pt;
}
.directory > h3 {
margin-top: 0;
}
.directory p {
margin: 0px;
white-space: nowrap;
}
.directory div {
display: none;
margin: 0px;
}
.directory img {
vertical-align: -30%;
}
/* these are for tree view when not used as main index */
.directory-alt {
font-size: 100%;
font-weight: bold;
}
.directory-alt h3 {
margin: 0px;
margin-top: 1em;
font-size: 11pt;
}
.directory-alt > h3 {
margin-top: 0;
}
.directory-alt p {
margin: 0px;
white-space: nowrap;
}
.directory-alt div {
display: none;
margin: 0px;
}
.directory-alt img {
vertical-align: -30%;
}
/*
wxWidgets docs specific styles
==============================
*/
H2 > A.anchor {
text-decoration: none;
background-color: none;
color: black;
}
H3 > A.anchor {
text-decoration: none;
background-color: none;
color: black;
}
H4 > A.anchor {
text-decoration: none;
background-color: none;
color: black;
}
IMG {
margin: 20px;
}
IMG.logo {
float: right;
margin: 20px;
}
IMG.appearance {
margin: 20px;
}
.dynheader IMG {
margin: 0px;
}
TABLE.appearance {
width: 100%;
text-align: center;
font-style: italic;
font-size: 90%;
/*font-weight: bold;*/
}
TD.green { color: green; }
TD.orange { color: #ff8000; }
TD.red { color: red; }
SPAN.literal {
text-decoration: none;
font-weight: bold;
font-family: monospace, fixed;
}
/* we make all the following <span> tags render the text just like
the standard Doxygen @remarks, @see tags do, to obtain a uniform
look and feel */
SPAN.itemdef, SPAN.lib, SPAN.category, SPAN.stdobj, SPAN.styles, SPAN.events, SPAN.flags, SPAN.appearance, SPAN.impl, SPAN.avail {
font-weight: bold;
line-height: 130%;
}
SPAN.style, SPAN.event, SPAN.flag {
font-weight: bold;
color: #880000;
}
DIV.styleDesc, DIV.eventDesc, DIV.flagDesc {
margin-left: 3%;
margin-bottom: 1ex;
}
DIV.eventHandler {
margin: 1em;
text-indent: 3%;
}
DIV.eventHandler SPAN {
padding: 5px;
background-color: #eeeeee;
font-family: monospace, fixed;
}
/* Doxygen defaults the top navigation tabs to a small, bold font,
so we reset it here to a larger, normal font. */
DIV.navigation A SPAN {
font-size: 100%;
font-weight: normal;
}
LI {
line-height: 115%;
}
CODE {
font-size: 110%;
color: #444444;
}

View File

@@ -31,55 +31,17 @@ function setCookie(c_name,value,expiredays)
((expiredays==null) ? '' : ';expires='+exdate.toGMTString()); ((expiredays==null) ? '' : ';expires='+exdate.toGMTString());
} }
// Reimplementation of changeDisplayState $(function() {
function mychangeDisplayState( e )
{
var num=this.id.replace(/[^[0-9]/g,'');
var button=this.firstChild;
var sectionDiv=document.getElementById('dynsection'+num);
if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
sectionDiv.style.display='block';
button.src='open.gif';
}else{
sectionDiv.style.display='none';
button.src='closed.gif';
}
setCookie( 'sectionDiv.style.display', sectionDiv.style.display );
}
window.onload = function myinitDynSections()
{
var divs=document.getElementsByTagName('div');
var sectionCounter=1;
for(var i=0;i<divs.length-1;i++){
if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
var header=divs[i];
var section=divs[i+1];
var button=header.firstChild;
if (button!='IMG'){
divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
button=document.createElement('img');
divs[i].insertBefore(button,divs[i].firstChild);
}
header.style.cursor='pointer';
header.onclick=mychangeDisplayState;
header.id='dynheader'+sectionCounter;
section.id='dynsection'+sectionCounter;
var display = getCookie('sectionDiv.style.display'); var display = getCookie('sectionDiv.style.display');
if ( display == '' || display == 'block' ) { if ( display == '' || display == 'block' ) {
section.style.display='block'; // default $('div.dynheader').each(function() { toggleVisibility(this); });
button.src='open.gif'; setCookie('sectionDiv.style.display', 'block');
}else{
section.style.display='none';
button.src='closed.gif';
} }
setCookie( 'sectionDiv.style.display', section.style.display );
section.style.marginLeft='14px'; $('div.dynheader').click(function() {
sectionCounter++; var display = $('#' + $(this).attr('id') + '-content').css('display');
} setCookie('sectionDiv.style.display', display);
} });
}
});