Team:Groningen/menu.html
From 2011.igem.org
(Difference between revisions)
Line 28: | Line 28: | ||
persiststate: true, //persist state of opened contents within browser session? | persiststate: true, //persist state of opened contents within browser session? | ||
toggleclass: ["", ""], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"] | toggleclass: ["", ""], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"] | ||
- | togglehtml: ["suffix", "<img src=' | + | togglehtml: ["suffix", "<img src='https://static.igem.org/mediawiki/2011/a/a7/Groningen2011menuplus.png' class='statusicon' />", "<img src='minus.gif' class='statusicon' />"], //Additional HTML added to the header when it's collapsed and expanded, respectively ["position", "html1", "html2"] (see docs) |
animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow" | animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow" | ||
oninit:function(headers, expandedindices){ //custom code to run when headers have initalized | oninit:function(headers, expandedindices){ //custom code to run when headers have initalized |
Revision as of 08:35, 19 August 2011
Assuming the current page is named "current.htm", the below links when navigated to expands a particular header on that page:
- Expand 1st header within "submenuheader" header group