Code:
<script type="text/javascript">
$(document).ready(function(){
$("a.external").click(function(){
$('div.overlay').show();
var href = $(this).attr('href').attr("target", "_blank");
setTimeout(function() {window.location = href}, 5000);
return false;
});
});
</script>
Warum wird das Fenster sofort geöffnet und nicht nach 5 Sekunden wie hier:
Code:
<script type="text/javascript">
$(document).ready(function(){
$("a.external").click(function(){
$('div.overlay').show();
var href = $(this).attr('href');
setTimeout(function() {window.location = href}, 5000);
return false;
});
});
</script>
was kann man da machen ?