JavaScript翻頁程式

來源:互聯網
上載者:User
不知道你們最近忙不忙,反正我是忙得夠嗆。
要組織班上的活動,還要折騰我的新機器。(我新買的電腦,沒買音效卡,更可氣的是沒法上網)
昨天晚上看《鹿鼎記》覺得翻頁太不舒服了,自己寫了一個翻頁的,JavaScript不能對一個text/plain類型的進行scroll,只好結合ASP來做了。
Reader.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb_2312-80">
<title>Text Auto Scroll Reader</title>
<base target="main">
head>
<body background="_themes/blends/blegtext.gif">
<form action="read.asp" method="post" name="test" onSubmit="init()" target="display">
    檔案名稱:<input type="file" name="filename" size="15">     
    <input type="submit" value="View" name="b1">  
    <input type="button" name="b2" value="Stop" onClick="stop()">  
    卷滾速度:<input type="text" name="speed" value="1" size="2">  
    <input type="button" value="改變速度" name="b3" onClick="change()">
</form>
<script Language="JavaScript">
    var y = 0
    var flag = 0
    var speed = 1
    function init(){
        setTimeout("scrolling()",2000);
        flag = 1;
        y = 0;
        return true;
    }

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.