有什么问题请到<a href='/bbs/forums.php?fid=21'>论坛</a>中发表<br>
<!--# 特效来源:http://www.webjx.com/js -->
<!-- 第一步:把如下代码加入<body>区域中 -->
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function getInfo() {
doyou = confirm("考虑一下选择哪个哟? (OK = Yes Cancel = No)"); //Your question.
if (doyou == true)
alert("呵呵,你选择了'Yes',你真勇敢哟"); //If your question is answered Yes.
else
if (doyou == false)
alert("怎么能选择'NO'呢?难道你不怕倒霉吗?"); //If your question is answered No.
if (doyou == false)
history.go(-1); //After answered No, the action. (In < this < case, it sends you back 1 page!)
}
// End -->
</script>
<!-- 第二步:把如下代码加入<body>区域中 -->
<body onLoad="getInfo()">
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]