Template:Team:Cambridge/CAM 2012 TEMPLATE HEAD PROJECT
From 2012.igem.org
(Difference between revisions)
Pdmallaband (Talk | contribs) |
Pdmallaband (Talk | contribs) |
||
Line 36: | Line 36: | ||
function Swap(id,nu){ | function Swap(id,nu){ | ||
document.getElementById(id).src=MapAry[nu].src; | document.getElementById(id).src=MapAry[nu].src; | ||
+ | } | ||
+ | |||
+ | function ScrollBit(x, y){ | ||
+ | window.scrollTo(100,900); | ||
+ | |||
} | } | ||
Line 88: | Line 93: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(document).ready(function() { | $(document).ready(function() { | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
+ | ScrollBit(); | ||
- | |||
var top = $('#cam_top_logos').offset().top - parseFloat($('#cam_top_logos').css('marginTop').replace(/auto/, 0)); | var top = $('#cam_top_logos').offset().top - parseFloat($('#cam_top_logos').css('marginTop').replace(/auto/, 0)); | ||
$(window).scroll(function (event) { | $(window).scroll(function (event) { |
Revision as of 13:54, 26 September 2012