Team:Peking/js/inside.js
From 2014.igem.org
(Difference between revisions)
(Created page with "$(document).ready(function(){ $("#sidenav").css( "height", $("#insidemid ").height() ); $("#list").pin({ containerSelector: "#sidenav" }); jumpupposition();...") |
|||
Line 33: | Line 33: | ||
$("#jumpup").css('right',right); | $("#jumpup").css('right',right); | ||
$("#jumpdown").css('right',right); | $("#jumpdown").css('right',right); | ||
- | alert(right); | + | //alert(right); |
}; | }; |
Revision as of 02:39, 14 October 2014
$(document).ready(function(){
$("#sidenav").css( "height", $("#insidemid ").height()
);
$("#list").pin({
containerSelector: "#sidenav"
});
jumpupposition(); $('#jumpup').hover(function(){ $("#jumpup img").attr({"src":""});
},function(){
$("#jumpup img").attr({"src":""}); }); $('#jumpdown').hover(function(){ $("#jumpdown img").attr({"src":""});
},function(){
$("#jumpdown img").attr({"src":""});
});
});
function jumpupposition()
{
var right=($("body").width()-$("#mainbody").width())/2-80;
if(right<0){ right=0; } $("#jumpup").css('right',right);
$("#jumpdown").css('right',right); //alert(right);
};