I am in the final stages of creating a site, and the client needs a pop-up page. Mine should not doubt why, mine should pay and fly ...
So, here is the sequence of events I'm looking for:
The splash page opens. The logo disappears. Use the buttons to enter. The logo disappears. The first "real" page of the site opens.
I have the first three events, and the fourth. This makes the logo disappear before opening the first real page.
Here is what I have:
<div class="logo_container link" data="commercials.php">
<img src="images/logo_intro.jpg" alt="intro" />
</div>
<script type="text/javascript">
$(function() {
$('.logo_container').hide();
$('.logo_container').fadeIn(1000);
$(".link").click(function(e) {
$('.logo_container').fadeOut(1000);
window.location = $(this).attr("data");
});
});
</script>
</div>
But I do not get fadeOut. It just jumps to an attribute called in window.location, which is commercials.php.
Adam source
share