Team:Groningen/menu.html
From 2011.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
+ | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | ||
Line 5: | Line 6: | ||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | ||
- | <script type="text/javascript" src=" | + | <script type="text/javascript" src="ddaccordion.js"> |
/*********************************************** | /*********************************************** | ||
Line 14: | Line 15: | ||
</script> | </script> | ||
+ | |||
<script type="text/javascript"> | <script type="text/javascript"> | ||
+ | |||
ddaccordion.init({ | ddaccordion.init({ | ||
Line 28: | Line 31: | ||
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='plus.gif' 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", | + | 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 | ||
//do nothing | //do nothing | ||
Line 37: | Line 40: | ||
} | } | ||
}) | }) | ||
+ | |||
</script> | </script> | ||
+ | |||
<style type="text/css"> | <style type="text/css"> | ||
Line 114: | Line 119: | ||
<div class="glossymenu"> | <div class="glossymenu"> | ||
<a class="menuitem" href="http://www.dynamicdrive.com/">Dynamic Drive</a> | <a class="menuitem" href="http://www.dynamicdrive.com/">Dynamic Drive</a> | ||
- | <a class="menuitem submenuheader" href=" | + | <a class="menuitem submenuheader" href="http://www.dynamicdrive.com/style/" >CSS Examples</a> |
<div class="submenu"> | <div class="submenu"> | ||
<ul> | <ul> | ||
<li><a href="http://www.dynamicdrive.com/style/csslibrary/category/C1/">Horizontal CSS Menus</a></li> | <li><a href="http://www.dynamicdrive.com/style/csslibrary/category/C1/">Horizontal CSS Menus</a></li> | ||
<li><a href="http://www.dynamicdrive.com/style/csslibrary/category/C2/">Vertical CSS Menus</a></li> | <li><a href="http://www.dynamicdrive.com/style/csslibrary/category/C2/">Vertical CSS Menus</a></li> | ||
- | <li><a href=" | + | <li><a href="http://www.dynamicdrive.com/style/csslibrary/category/C4/">Image CSS</a></li> |
<li><a href="http://www.dynamicdrive.com/style/csslibrary/category/C6/">Form CSS</a></li> | <li><a href="http://www.dynamicdrive.com/style/csslibrary/category/C6/">Form CSS</a></li> | ||
<li><a href="http://www.dynamicdrive.com/style/csslibrary/category/C5/">DIVs and containers</a></li> | <li><a href="http://www.dynamicdrive.com/style/csslibrary/category/C5/">DIVs and containers</a></li> | ||
Line 127: | Line 132: | ||
</ul> | </ul> | ||
</div> | </div> | ||
- | <a class="menuitem" href=" | + | <a class="menuitem" href="http://www.javascriptkit.com/jsref/">JavaScript Reference</a> |
- | <a class="menuitem" href=" | + | <a class="menuitem" href="http://www.javascriptkit.com/domref/">DOM Reference</a> |
<a class="menuitem submenuheader" href="http://www.cssdrive.com">CSS Drive</a> | <a class="menuitem submenuheader" href="http://www.cssdrive.com">CSS Drive</a> | ||
<div class="submenu"> | <div class="submenu"> | ||
Line 146: | Line 151: | ||
<p>Assuming the current page is named "current.htm", the below links when navigated to expands a particular header on that page:</p> | <p>Assuming the current page is named "current.htm", the below links when navigated to expands a particular header on that page:</p> | ||
<p> | <p> | ||
- | - <a href=" | + | - <a href="current.htm?submenuheader=0">Expand 1st header within "submenuheader" header group</a><br /> |
</p> | </p> | ||
+ | <p>Helpful links: </p> | ||
+ | <p> | ||
+ | - <a href="http://www.dynamicdrive.com/dynamicindex17/ddaccordion_suppliment.htm">Adding arbitrary links hat expand/ collapse the contents</a><br /> | ||
+ | - <a href="http://www.dynamicdrive.com/dynamicindex17/ddaccordion_suppliment2.htm">Taking advantage of the oninit() and onopenclose() event handlers</a><br /> | ||
+ | </p> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 08:40, 19 August 2011
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
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
Helpful links:
- Adding arbitrary links hat expand/ collapse the contents
- Taking advantage of the oninit() and onopenclose() event handlers