User:Pudding
From 2014.igem.org
(Difference between revisions)
Line 178: | Line 178: | ||
#pf li a:hover{ | #pf li a:hover{ | ||
color:deepskyblue; | color:deepskyblue; | ||
+ | } | ||
+ | |||
+ | #pudding{ | ||
+ | position:fixed; | ||
+ | bottom:100px; | ||
+ | left:-270px; | ||
} | } | ||
</style> | </style> | ||
+ | <script type="text/javascript"> | ||
+ | $(function() { | ||
+ | var pudding = $('#pudding'); | ||
+ | pudding.hide(); | ||
+ | $(window).scroll(function () { | ||
+ | if ($(this).scrollTop() > 10) {pudding.animate({left:'-70px'},200,'swing');} | ||
+ | else {top.animate({left:'-270px'},100,'linear');} | ||
+ | }); | ||
+ | pudding.click(function () { | ||
+ | $('#pudding').animate({left:'110%'}, 100, 'swing'); | ||
+ | return false; | ||
+ | }); | ||
+ | }); | ||
+ | |||
+ | </script> | ||
+ | |||
<div id="bgimg"> | <div id="bgimg"> | ||
<img src="https://static.igem.org/mediawiki/2011/a/a5/%E3%81%86%E3%81%99%E3%81%84%E7%B7%B4%E7%BF%92.gif"> | <img src="https://static.igem.org/mediawiki/2011/a/a5/%E3%81%86%E3%81%99%E3%81%84%E7%B7%B4%E7%BF%92.gif"> | ||
+ | </div> | ||
+ | <div id="pudding"> | ||
+ | <img src="https://static.igem.org/mediawiki/2014/b/b1/Pudding_opacity.png"> | ||
</div> | </div> | ||
<div id="p-container"> | <div id="p-container"> |
Revision as of 10:40, 13 September 2014
count down