寫的比較弱,只能處理50道以內的選項為a-d的單選題,正確答案自己輸進去,必須要大寫,不能有空格和逗號,提交會出分,錯誤的題號和答案會console.log()出來.
html>
>
>
>>
.rowline
.answer
.num p
#solution#btn
>
>
>
學生答案:p>
name="txt" class="num">1~5:>
div>
name="txt" class="num">6~10:>
div>
name="txt" class="num">11~15:>
div>
name="txt" class="num">16~20:>
div>
name="txt" class="num">21~25:>
div>
name="txt" class="num">26~30:>
div>
name="txt" class="num">31~35:>
div>
name="txt" class="num">36~40:>
div>
name="txt" class="num">41~45:>
div>
name="txt" class="num">46~50:>
div>
form>
>
>
var rowline = document.getelementsbyclassname("rowline");
var solution = document.getelementbyid("solution");
var btn = document.getelementbyid("btn");
var count = 0;
for (var i = 0 ; i < rowline.length ; i++)
}//建立下拉選項函式
function creatoption(op)
//建立新增下拉框函式
function adds()
var confirmresult = null;
var result1 = null;
var result2 = null;
var result3 = null;
var result4 = null;
var result5 = null;
//輸入並判斷答案函式
function writein()
//布局結束後再輸入答案並判斷
window.addeventlistener("domcontentloaded",function()else
}alert("分數是"+count);
}}else
},false);
>
乙個小判卷系統
寫的比較弱,只能處理50道以內的選項為a d的單選題,正確答案自己輸進去,必須要大寫,不能有空格和逗號,提交會出分,錯誤的題號和答案會console.log 出來.html var rowline document.getelementsbyclassname rowline 建立下拉選項函式 fu...
乙個小作業系統
1 1 chapter1 a boot.asm 乙個 作業系統 可以只有20行 把下面這段 用nasm編譯一下 nasm boot.asm o boot.bin org 07c00h 告訴編譯器程式載入到7c00處 mov ax,cs mov ds,ax mov es,ax call dispstr...
乙個小爬蟲
usr bin env python coding utf 8 sina小爬蟲 site http 不能少哦 reptile sina reptitle site print getting the urls.n reptile sina.get urls site reptile sina.sto...