第一步:把如下代碼加入區(qū)域中:
<script LANGUAGE="JavaScript">
var text = "在輸入欄里您輸入什么我就能顯示什么!!!";
var total_length = 60; // length of string+spaces
function doShoot(msg) {
var status_message = "";
var assembling = "";
this.status = status_message;
var index = 0;
var location = 0, i;
// now shoot one letter at a time
for(i=0; i < msg.length; i++) { // moves through the message
for(j=total_length-status_message.length; j > -1;j--) {
// see how many spaces have to be added
assembling = "";
for(var k=0; k < j; k++)
assembling += " ";
assembling += msg.charAt(i);
this.status=status_message +assembling;
}
status_message += assembling;
}
}
</script>
第二步:把中的內(nèi)容改為