<script type="text/javascript">
$(document).ready(function() {
$("body").css("display", "none");
$("body").fadeIn("slow");
$("a.link").click(function(event){
event.preventDefault();
linkLocation = this.href;
$("body").fadeOut("slow", redirectPage);
});
function redirectPage() {
window.location = linkLocation;
}
});
</script>
「onclick」を使用する場合、「fadeOut」は機能しません。「href」を使用せずに実装できるように?
<a class="link" onclick="window.location='index.php'">index.php</a>