Team:Duke
From 2009.igem.org
(Difference between revisions)
Line 24: | Line 24: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(document).ready(function() { | $(document).ready(function() { | ||
- | $(' | + | // hides the slickbox as soon as the DOM is ready |
- | $(' | + | // (a little sooner than page load) |
- | $( | + | $('#slickbox').hide(); |
+ | // shows the slickbox on clicking the noted link | ||
+ | $('a#slick-show').click(function() { | ||
+ | $('#slickbox').show('slow'); | ||
+ | return false; | ||
+ | }); | ||
+ | // hides the slickbox on clicking the noted link | ||
+ | $('a#slick-hide').click(function() { | ||
+ | $('#slickbox').hide('fast'); | ||
+ | return false; | ||
+ | }); | ||
+ | // toggles the slickbox on clicking the noted link | ||
+ | $('a#slick-toggle').click(function() { | ||
+ | $('#slickbox').toggle(400); | ||
+ | return false; | ||
}); | }); | ||
}); | }); | ||
Line 32: | Line 46: | ||
</head> | </head> | ||
- | < | + | <a onclick="#slick-show">toggle box</a> |
- | + | ||
- | + | <div id="slickbox"> | |
- | + | blahblahblah | |
- | + | ||
- | + | ||
- | + | ||
</div> | </div> | ||
Revision as of 04:12, 22 September 2009
toggle box
blahblahblah
Under Construction