<html>
<head><title>Connection Refresher JavaScript</title>
</head>
<body bgcolor="#000000" text="#FFFFFF">
<script language="JavaScript">
<!--
document.writeln("<form name='my_form' action=''><table border='1' bordercolor='#0000FF' bgcolor='#FFFFFF' cellpadding='5' cellspacing='0' width='200'><tr><td><center><font size='1' face='verdana'><input type='text' name='my_text' size='35'></font><br><font size='1' face='verdana' color='#0000FF'>Connection Refresher JavaScript <br>DaWorx Web Design</font></a></font></center></tr></td></table></form>");
var the_minutes = [ " 4", " 3", " 2", " 1", " 0" ] ;// ** add/remove quoted numbers in this line to increase/decrease page reload time - currently set to begin at 4 minutes 59 seconds
var the_seconds = [ "59", "58", "57", "56", "55", "54", "53", "52", "51", "50", "49", "48", "47", "46", "45", "44", "43", "42", "41", "40", "39", "38", "37", "36", "35", "34", "33", "32", "31", "30", "29", "28", "27", "26", "25", "24", "23", "22", "21", "20", "19", "18", "17", "16", "15", "14", "13", "12", "11", "10", "09", "08", "07", "06", "05", "04", "03", "02", "01", "00" ];
var index = 0;
var a = 0;
var my_timer;
function countDown(){
if (index <= the_seconds.length){window.document.my_form.my_text.value = " Page Will Refresh In" + the_minutes[a] + ":" + the_seconds[index] + " Minutes"; index++;};
if (index == the_seconds.length){a++; index = "0";};
if (a == the_minutes.length){window.location.reload()};
my_timer = setTimeout('countDown();', 1000)};
countDown();
//-->
</script>
<p>
<p>
<p>
<p>
<table border="3" bordercolor="#FFFF00" bgcolor="#FF0000">
<tr>
<td>
<!--将以下代码加入HTML的<Body></Body>之间-->
<form>
<p align="center"><input onclick="window.location = "view-source:" + window.location.href" type="button" value="查看本页源代码" style="background-color: #FF0000; color: #FFFF00; border-left-style: solid; border-left-color: #FFCCFF; border-right-style: solid; border-right-color: #660033; border-top-style: solid; border-top-color: #FFCCFF; border-bottom-style: solid; border-bottom-color: #660033">
</td>
</tr>
</table>
</body>
</html> |