13 |
|
<meta name="htdig-noindex" content="noindex,nofollow"> |
14 |
|
<meta name="robots" content="noindex,nofollow"> |
15 |
|
|
16 |
< |
<? if ($scroll == "true") { ?> |
16 |
> |
<? if (preg_match("/^[1-9]$/", $scroll)) { ?> |
17 |
|
<script language="javascript"><!-- |
18 |
|
function pScroll(){ |
19 |
< |
window.scrollBy(0,1); |
19 |
> |
window.scrollBy(0, <?=$scroll?>); |
20 |
|
if (document.body.scrollTop >= document.body.scrollHeight - document.body.clientHeight - 1) { |
21 |
|
waitThenReload(); |
22 |
|
} |
23 |
|
setTimeout("pScroll();", 50); |
24 |
|
} |
25 |
|
function waitThenReload() { |
26 |
< |
setTimeout("location.reload();", 2000); |
26 |
> |
if (document.body.clientHeight + 100 > document.body.scrollHeight) { |
27 |
> |
setTimeout("location.reload();", 10000); |
28 |
> |
} |
29 |
> |
else { |
30 |
> |
location.reload(); |
31 |
> |
} |
32 |
|
} |
33 |
|
//--> |
34 |
|
</script> |
45 |
|
|
46 |
|
</head> |
47 |
|
|
48 |
< |
<body bgcolor="#ffffff" text="#000000"<? if ($scroll == "true") echo ' onload="javascript:pScroll();"'; ?>> |
48 |
> |
<body bgcolor="#ffffff" text="#000000"<? if (preg_match("/^[1-9]$/", $scroll)) echo ' onload="javascript:pScroll();"'; ?>> |
49 |
|
<basefont size="<?=$fontsize?>" face="arial,sans-serif" color="#000000"> |
50 |
|
|
51 |
|
|