Last active
August 29, 2015 14:05
-
-
Save Joseph7451797/1156b1d5827fbd1de81c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type='text/javascript'> // 網頁底端浮動視窗的js語法 | |
$(function(){ | |
$(window).scroll(function() { | |
if($(document).scrollTop() + $(window).height() >= $(document.body).height()) { | |
$("#popup").fadeIn('slow') | |
} | |
else if( $(document).scrollTop() < 400) { | |
$("#popup").fadeOut('slow') | |
} | |
}); | |
$(".cross").click(function(){ | |
$("#popup").fadeOut('fast') | |
}) | |
$(".closebutton").click(function(){ | |
$("#popup").fadeOut('fast') | |
}) | |
$(".goquestion").click(function(){ | |
$("#popup").fadeOut('fast') | |
}) | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment