<html><head>
<title>带警告的测试</title>
<script type="text/javascript">
<!--
function answer(sourceobj){
msg=sourceobj.value; //得到提示的内容
alert(msg); //弹出提示窗口
}
-->
</script>
</head><body><table border="1" width="100%" bordercolorlight="#000000" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF">
<tr>
<td width="100%" colspan="3">日本首都在哪里?答案是:</td>
</tr>
<tr>
<td width="34%">
<form>
<input type="radio" name="radio" value="说的好像是英国的首都吧?您答错了......" onclick="answer(this)">伦敦
</form>
</td>
<td width="33%">
<input type="radio" name="radio" value="嗯......这个答案和正确答案接近了一点,还需要加油!" onclick="answer(this)">巴格达
</td>
<td width="33%">
<input type="radio" name="radio" value="啊......你太有才了!" onclick="answer(this)">珍珠岛
</td>
</form>
</tr>
</table></body></html>上面选择内容纯个人娱乐...
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货