Team:St Andrews/defaulttemplate
From 2010.igem.org
(Difference between revisions)
Line 135: | Line 135: | ||
<script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js"></script> | <script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js"></script> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | $(function() { | + | $(document).ready(function(){ |
- | $(' | + | $('#slideshow').cycle({ |
- | fx: | + | fx: 'fade', |
- | + | pause: 1, | |
- | + | random: 0, | |
- | + | next: '#next', | |
- | + | prev: '#prev', | |
+ | timeout: 6000 | ||
}); | }); | ||
+ | |||
+ | // Ajax - pulls in events from /news sidebar. | ||
+ | $('#include').load('/news/index.html ul#event_list'); | ||
}); | }); | ||
Revision as of 19:19, 6 September 2010