Webページ抽出リスト

22515 ワード

DOCTYPE HTML>  

<html>  

 <head>
<meta charset="utf-8">
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>   title>  
 head>  

  

 <body>  

    

<html>  

<head>  

<title> title>  

<style type="text/css">  

body {padding-top:100px;font:12px "\5B8B\4F53",sans-serif;text-align:center;}  

.result_box {margin:0 auto;width:700px;padding:100px 0;text-align:center;border:3px solid #40AA53;background:#efe;}  

.result_box #oknum {width:700px;color:#cc0000;font-size:50pt;font-family:Verdana;text-align:center;border:none;background:#efe;}  

.button_box {margin:50px 0 0 0;}  

.button_box .btn {cursor:pointer;padding:0 30px;margin:0 10px;color:#555;font-family:"\5B8B\4F53",sans-serif;font-size:40px;}  

style>  

head>     

<body>  

<script type="text/javascript">  

//

var alldata = " , , , , , , , , , , , , , ";    

var alldataarr = alldata.split(",");    

var num = alldataarr.length-1;  

var timer;  

function change(){     

    document.getElementById("oknum").value = alldataarr[GetRnd(0,num)];     

}  

function start(){     

    clearInterval(timer);     

    timer = setInterval('change()',-400); //

}  

function ok(){     

    clearInterval(timer);     

    // 

    alldata = alldata.replace(document.getElementById("oknum").value,"").replace(",,",",");  

    //  , ,  

    if (alldata.substr(0,1)==",")  

    {  

      alldata = alldata.substr(1,alldata.length);  

    }  

    if (alldata.substr(alldata.length-1,1)==",")  

    {  

      alldata = alldata.substring(0,alldata.length-1);  

    }  

    alldataarr = alldata.split(",");    


}   
function GetRnd(min,max){     

    return parseInt(Math.random()*(max-min+1));     

}  

script>  

<p class="result_box"><input type="text" id="oknum" name="oknum" value=" " />p>  

<p class="button_box">
    
    <button class="btn" onclick="start()" accesskey="s"> button>

    <button class="btn" onclick="ok()" accesskey="o"> button>p>  

body>     

html>  

 body>  

html>