脚本特效展示
你的恋爱成功率
与情人相处,能否直接询问对方是不是爱你?
能
不能
恋爱结婚主要是解决:
性欲
生活
亲密伴侣
从恋爱到结婚时间是否需要长一点?
要
不要
嫉妒是什么信号?
爱
不安
竞争
可以在情人面前与别的异性过于亲热吗?
可以
不可以
能同时和两个人要好吗?
不能
能
许多人对婚后生活满怀奢望,结果常常落空,是这样吗?
是
不是
哪种人最经不起失恋和孤寂之苦,女人还是男人?
女人
男人
忠贞是搞好婚姻的重要原则吗?
是
不是
忠贞是搞好婚姻的重要原则吗?
是
不是
以下代码加入<head>区域
以下代码加入<body>区域
<script language=javascript><!-- function getresult(form) { var score = 0 if (form.q01[0].checked) { score += -1 } if (form.q01[1].checked) { score += 3 } if (form.q02[0].checked) { score += -1 } if (form.q02[1].checked) { score += 0 } if (form.q02[2].checked) { score += 3 } if (form.q03[0].checked) { score += 3 } if (form.q03[1].checked) { score += 0 } if (form.q04[0].checked) { score += 3 } if (form.q04[1].checked) { score += 0 } if (form.q04[2].checked) { score += -1 } if (form.q05[0].checked) { score += -1 } if (form.q05[1].checked) { score += 3 } if (form.q06[0].checked) { score += 3 } if (form.q06[1].checked) { score += -1 } if (form.q07[0].checked) { score += 3 } if (form.q07[1].checked) { score += 0 } if (form.q08[0].checked) { score += 3 } if (form.q08[1].checked) { score += 0 } if (form.q09[0].checked) { score += 3 } if (form.q09[1].checked) { score += -1 } if (form.q10[0].checked) { score += 3 } if (form.q10[1].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>