|
发表于 2011-1-28 18:26:27
|
显示全部楼层
11# Cyvre
试了下
-
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html>
- <head>
- <meta http-equiv="Content-type" content="text/html; charset=utf-8">
- <title>Inverse Symbolic Calculator</title>
- <script type="text/javascript" src="clean-all.js"></script>
- <script type="text/javascript" charset="utf-8">
- function get(url, consumer, progress_bar, cache){
- var message = Clean.createSimpleMessage(url, consumer, error);
- if(cache != null)
- message.cache = cache;
- if(progress_bar != null){
- var progress = new EmbeddedProgressBar(document, progress_bar);
- message.progressBar = progress;
- }
- Clean.doGet(message);
- }
- function send_request(){
- var user_input = document.getElementById("user_input");
- document.getElementById("results_go_here").innerHTML="<div id='load_text'>Chug chug chug...</div>"
- get('submit_std.php?user_input='+ user_input.value.replace(/\+/g,"%2B") ,'results_go_here','progress');
- }
- function error(){
- alert("Javascript decided there was an error.");
- }
- function try_it_out(num){
- document.getElementById("user_input").value=num;
- send_request();
- }
- function start(){
- var number = gup('number');
- if (number != "" ){
- document.getElementById("user_input").value=number;
- send_request();
- }
- }
- function set_default(){
- document.getElementById("results_go_here").innerHTML= " "
- +"<p>Here are some fun numbers to try:</p>"
- +"<p><b>5.85987448204884</b> <a onClick='try_it_out(5.85987448204884)'>[try it]</a></p>"
- +"<p><b>3.146264370</b> <a onClick='try_it_out(3.146264370)'>[try it]</a></p>"
- +"<p><b>19.999099979189475768</b> <a onClick='try_it_out(19.999099979189475768)'>[try it]</a></p>";
- }
- function gup( name ){ // get url paras
- name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
- var regexS = "[\\?&]"+name+"=([^&#]*)";
- var regex = new RegExp( regexS );
- var results = regex.exec( window.location.href );
- if( results == null )
- return "";
- else
- return results[1];
- }
- </script>
- <link rel="stylesheet" href="style.css" type="text/css" media="screen" title="stylesheet" charset="utf-8">
- </head>
- <body onLoad="set_default();start();"> <!--onLoad="clean_environment.debug = true;"-->
- <div id="main2">
- <div class="bgImg"></div>
- <div id="main">
- <div class="right bar">
- <p> The ISC presently accepts either floating point expressions or correct Maple syntax as input. However, for Maple syntax requiring too long for evaluation, a timeout has been implemented.<p>
- </div>
- <div class="left bar">
- <!--<p>The Inverse Symbolic Calculator, or ISC, is a tool that will try to detect a closed
- form approximation of a decimal number. It is largely magical, and the inner workings
- of it are known only to the most high of the math sages.</p>-->
- <p>The Inverse Symbolic Calculator (ISC) uses a combination of lookup tables and integer relation algorithms in order to associate with a user-defined, truncated decimal expansion (represented as a floating point expression) a closed form representation for the real number.</p>
- </div>
- <div class="sponsor_div">
- <img src="images/ddrive.png" class='sponsor' alt="ddrive" title="ddrive" />
- <img src="images/nserc.png" class='sponsor' alt="nserc" title="nserc" />
- <img src="images/maplesoft.png" class='sponsor' alt="maplesoft" title="maplesoft" />
- </div>
- <h1><a href='index.html'>Inverse Symbolic Calculator</a></h1>
- <div id='form'>
- <p id='invite'>Type in a number or Maple<sup>©</sup> expression.</p>
- <form method="get" accept-charset="utf-8" id="isc" onSubmit="return false;">
- <input type="text" name="user_input" value="" id="user_input" size="40">
- <input type="button"
- value="Inverse Calculate!"
- onClick="send_request();">
- </form>
- </div>
- <div id="progress_bar_spot"><img id="progress" src="images/gloos.gif" style="display:none" /></div>
- <div id="results_go_here">
-
-
- </div>
- <div id="footer">
- <img src="images/oldISC.gif" alt="Original ISC" title="Original ISC" /> <a href="The'>http://oldweb.cecm.sfu.ca/projects/ISC/ISCmain.html">The original ISC</a>
- </div>
- </div>
- </div>
- </body>
- </html>
复制代码
谁来解释下什么意思???? |
|