小小代码
自动滚屏
原代码如下,把它放在html的<head></head>之间。
<script language="JavaScript">
<!--
locate = 0;
function scroller() {
if (locate !=500 ) {
locate++;
scroll(0,locate);
clearTimeout(timer);
var timer = setTimeout("scroller()",3);
timer;
}
}
// -->
</script>
修改<body>语句为:
<body OnLoad="Scroller()">
可通过改动locate的数值来控制显示页面的长度(原代码中为locate!=600)。将“setTimeout("scroller()",3);”中的“3”改为其它的数字可控制速度。
上下翻页
<body>
<form method="post">
<p><input type="button" value="上一页" onclick="history.go( -1 );return true;"><input type="button" value="下一页" onclick="history.go( 1 );return true;"></p>
</form>
</body>
停留时间
将下列原代码加入html的<head></head>之间:
<script language="JAVASCRIPT">
<!--
var ap_name = navigator.appName;
var ap_vinfo = navigator.appVersion;
var ap_ver = parseFloat(ap_vinfo.substring(0,ap_vinfo.indexOf('(')));
var time_start = new Date();
var clock_start = time_start.getTime();
var dl_ok=false;
function init ()
{
if(ap_name=="Netscape" && ap_ver>=3.0)
dl_ok=true;
return true;
}
function get_time_spent ()
{
var time_now = new Date();
return((time_now.getTime() - clock_start)/1000);
}
function show_secs () // show the time user spent on the side
{
var i_total_secs = Math.round(get_time_spent());
var i_secs_spent = i_total_secs % 60;
var i_mins_spent = Math.round((i_total_secs-30)/60);
var s_secs_spent = "" + ((i_secs_spent>9) ? i_secs_spent : "0" + i_secs_spent);
var s_mins_spent = "" + ((i_mins_spent>9) ? i_mins_spent : "0" + i_mins_spent);
document.fm0.time_spent.value = s_mins_spent + ":" + s_secs_spent;
window.setTimeout('show_secs()',1000);
}
// -->
</script>
修改<body>语句为:
<BODY onLoad="init(); window.setTimeout('show_secs()',1);">
将下列原代码加入<body></body>之间:
<FORM name="fm0" onSubmit="0"><FONT COLOR="#6060FF">停留时间:
</FONT><INPUT type="text" name="time_spent" size=7 onFocus="this.blur()"></FORM>
支持AE视频模板区,以后额就在那里混了

每天清晨一睁开眼,我就精心策划着这场谋杀,工作打牌看电影这些都是我的凶器,目的只为杀死心灵里的那道黑影.