遗失的美好 发表于 2007-4-27 11:39:21

***测试搜索***这是eq测试题 (也可以用来测试做某事的成功率) 测试一下你的情 ...

把下列代码加到网页的<body></body>标签之间 从google下载我的照片管理软件
要完成此效果把如下代码加入到<body>区域中

<script language=javascript><!--



function getresult(form) {



var score = 0



if (form.q01.checked) { score += -1 }

if (form.q01.checked) { score += 3 }



if (form.q02.checked) { score += -1 }


if (form.q02.checked) { score += 0 }

if (form.q02.checked) { score += 3 }





if (form.q03.checked) { score += 3 }

if (form.q03.checked) { score += 0 }



if (form.q04.checked) { score += 3 }

if (form.q04.checked) { score += 0 }

if (form.q04.checked) { score += -1 }



if (form.q05.checked) { score += -1 }

if (form.q05.checked) { score += 3 }



if (form.q06.checked) { score += 3 }

if (form.q06.checked) { score += -1 }



if (form.q07.checked) { score += 3 }

if (form.q07.checked) { score += 0 }



if (form.q08.checked) { score += 3 }

if (form.q08.checked) { score += 0 }



if (form.q09.checked) { score += 3 }

if (form.q09.checked) { score += -1 }



if (form.q10.checked) { score += 3 }

if (form.q10.checked) { score += -1 }



score1=score*100/30

if (score1 > 60) { alert('恭喜恭喜!你的成功率是'+score1+'好兆头,不是吗? ')}

if (score1 > 30 && score1 <61) { alert('你的成功率是'+score1+'。怎么办?加把劲吧!') }

if (score1 < 31 ) { alert('你的成功率只有'+score1+'。你还是放弃吧...') }

}



// --></script>



<p><font color=#ff8000 size=4><strong>你的恋爱成功率 </strong></font></p>

<form name=pt1>

<ol>

<li>与情人相处,能否直接询问对方是不是爱你?

<p><input checked name=q01 type=radio value=1>能 <input name=q01 type=radio

value=2>不能 </p>

<li>恋爱结婚主要是解决:

<p><input checked name=q02 type=radio value=1>性欲 <input name=q02 type=radio

value=2>生活 <input name=q02 type=radio value=3>亲密伴侣</p>

<li>从恋爱到结婚时间是否需要长一点?

<p><input checked name=q03 type=radio value=1>要 <input name=q03 type=radio

value=2>不要</p>

<li>嫉妒是什么信号?

<p><input checked name=q04 type=radio value=1>爱 <input name=q04 type=radio

value=2>不安 <input name=q04 type=radio value=3>竞争</p>

<li>可以在情人面前与别的异性过于亲热吗?

<p><input checked name=q05 type=radio value=1>可以 <input name=q05 type=radio

value=2>不可以 </p>

<li>能同时和两个人要好吗?

<p><input checked name=q06 type=radio value=1>不能 <input name=q06 type=radio

value=2>能 </p>

<li>许多人对婚后生活满怀奢望,结果常常落空,是这样吗?

<p><input checked name=q07 type=radio value=1>是 <input name=q07 type=radio

value=2>不是 </p>

<li>哪种人最经不起失恋和孤寂之苦,女人还是男人?

<p><input checked name=q08 type=radio value=1>女人 <input name=q08 type=radio

value=2>男人 </p>

<li>忠贞是搞好婚姻的重要原则吗?

<p><input checked name=q09 type=radio value=1>是 <input name=q09 type=radio

value=2>不是 <br></p>

<li>忠贞是搞好婚姻的重要原则吗?

<p><input checked name=q10 type=radio value=1>是 <input name=q10 type=radio

value=2>不是 <br></p>

</li></ol>

<p>  <input name=finish onclick=getresult(this.form) type=button value=eq解码> <input type=reset value=" reset "></p></form>
      










--------------------------------------

http://www.huoyue.com.cn 活跃网,活跃人群的论坛,访问活跃网,将给您带来意想不到的收获,还可以免费为您开论坛,让您免费拥有与朋友、网友交流的论坛。你是年轻人吗?你活跃你就上!
页: [1]
查看完整版本: ***测试搜索***这是eq测试题 (也可以用来测试做某事的成功率) 测试一下你的情 ...