User:Pudding

From 2014.igem.org

(Difference between revisions)
Line 190: Line 190:
</style>
</style>
<script type="text/javascript">
<script type="text/javascript">
-
$(function() {   
+
<script type="text/javascript">
-
              var pudding = $('#pudding');   
+
$(document).ready(function() {   
-
              $(window).scroll(function () {
+
setTimeout("animation()",1200);   
-
                if ($(this).scrollTop() > 50) {pudding.animate({'left':'-100px'},500,'swing');}
+
})
-
               else {pudding.animate({'left':'-270px'},100,'linear');}
+
function animation(){
-
       });
+
$("#pudding").animate({'left':'0px'},'slow','swing');
-
               $('#pudding a').click(function () {
+
}
-
                      $('#pudding').animate({'left':'0px'},100,'swing');
+
$(function(){
-
                 $('#pudding_on').css('display','inline');
+
$("#pudding a").click(  
-
       });
+
          function(){
 +
            $("#pudding").animate({'left':'-340px'},'slow','swing');
 +
});
});
});
</script>
</script>
Line 212: Line 214:
<div id="pudding">
<div id="pudding">
<img src="https://static.igem.org/mediawiki/2014/b/b1/Pudding_opacity.png">
<img src="https://static.igem.org/mediawiki/2014/b/b1/Pudding_opacity.png">
-
???「<a href="javascript:void(0);">邪魔だし消えて</a>」<br>
+
???「<a href="javascript:void(0);">邪魔だし消えて</a>」
-
<p id="pudding_on">ぷりん「ひどい・゚・(つД`)・゚・ ウェ―ン」</p>
+
</div>
</div>
</div>
</div>

Revision as of 14:20, 13 September 2014

count down

Pudding