-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
27 lines (27 loc) · 1008 Bytes
/
page.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php get_header(); ?>
<div class="page">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php the_content(''); ?>
<?php endwhile; ?>
<?php else : ?>
<div class="error">
<li style="font-size: 180px;text-align: center;color: #DDD;height: 250px;line-height: 250px;">404</li>
<li style="text-align: center;font-size:20px;width: 100%;height: 100px;line-height: 100px;">卧擦,页面找不到啦,有木有!,<span id="secondsDisplay">3</span> 秒钟之后返回首页。</FONT>
<script type="text/javascript">
var i = 3;
var intervalid;
intervalid = setInterval("fun()", 1000);
function fun() {
if (i == 0) {
window.location.href = "<?php bloginfo('url'); ?>";
clearInterval(intervalid);
}
document.getElementById("secondsDisplay").innerHTML = i;
i--;
}
</script>
</div>
<?php endif; ?>
</div>
<?php get_footer(); ?>