| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 573 人关注过本帖
标题:如何实现“弹出提示框”
只看楼主 加入收藏
lyg540612
Rank: 1
等 级:新手上路
帖 子:14
专家分:0
注 册:2008-8-12
收藏
 问题点数:0 回复次数:2 
如何实现“弹出提示框”
各位高手,我是个菜鸟,下面的代码在没有正确输入是如何实现“弹出错误提示框”
<form ACTION="<%=MM_editAction%>" METHOD="POST" name="form2" onSubmit="MM_validateForm('name','','R','email','','RisEmail','qq','','RisNum','pwd','','R');MM_validateForm('name','','R','email','','RisEmail','qq','','RisNum','msn','','NisEmail','pwd','','R');return document.MM_returnValue">
            <table width="754" border="1" bgcolor="#CCFFFF">
        <tr>
          <th width="341" rowspan="9" scope="col">
            <table align="center" bgcolor="#CCFFFF">
              <tr valign="baseline">
                <td align="right" nowrap class="style4"><span class="style5">用户名</span></td>
                <td>                <input name="name" type="text" value="" size="32"></td>
              </tr>
              <tr valign="baseline">
                <td align="right" nowrap class="style4"><span class="style5">密码</span></td>
                <td>
                  <input name="pwd" type="password" value="" size="35">
</td>
              </tr>
              <tr valign="baseline">
                <td align="right" nowrap class="style4"><span class="style5">电子邮件</span></td>
                <td>
                  <input name="email" type="text" value="" size="32">
                </td>
              </tr>
              <tr valign="baseline">
                <td align="right" nowrap class="style4"><span class="style5">密码提示问题</span></td>
                <td>
                  <input name="question" type="text" value="" size="32">
                </td>
              </tr>
              <tr valign="baseline">
                <td align="right" nowrap class="style4"><span class="style5">密码提示答案</span></td>
                <td>
                  <input name="answer" type="text" value="" size="32">
                </td>
              </tr>
              <tr valign="baseline">
                <td align="right" nowrap class="style4"><span class="style5">QQ</span></td>
                <td>
                  <input name="qq" type="text" value="" size="32">
</td>
              </tr>
              <tr valign="baseline">
                <td align="right" nowrap class="style4"><span class="style5">MSN</span></td>
                <td>
                  <input name="msn" type="text" value="" size="32">
                </td>
              </tr>
              <tr valign="baseline">
                <td align="right" nowrap class="style4"><span class="style5">个人主页</span></td>
                <td>
                  <input name="url" type="text" value="" size="32">
                </td>
              </tr>
              <tr valign="baseline">
                <td nowrap align="right"><span class="style5"></span></td>
                <td>
                  <div align="right" class="style5">
                    <input name="submit" type="submit" value="提交注册">
                    <input type="reset" name="Submit" value="重置">
                </div></td>
              </tr>
            </table>
          </th>
          <th width="431" height="19" class="style4" scope="col"><div align="left" class="style31 style46 style58">必填项</div></th>
        </tr>
        <tr>
          <th height="17" class="style4" scope="col"><div align="left" class="style58">
            <div align="left" class="style31  style59">必填项</div>
          </div></th>
        </tr>
        <tr>
          <th height="17" class="style4" scope="col"><div align="left" class="style31 style46 style58">必填项“您的邮箱”</div></th>
        </tr>
        <tr>
          <th height="17" class="style4" scope="col"><div align="left" class="style31 style46 style58">可选项:忘记密码时取回密码用,如:“我的名字”</div></th>
        </tr>
        <tr>
          <th height="17" class="style4" scope="col"><div align="left" class="style58"><span class="style49"><span class="style31 style46 style58">可选项:</span>填上名字,如:“王杰”</span></div></th>
        </tr>
        <tr>
          <th height="19" class="style4" scope="col"><div align="left" class="style31 style46 style58">必填项</div></th>
        </tr>
        <tr>
          <th height="19" class="style4" scope="col"><div align="left" class="style58"><span class="style49"><span class="style31 style46 style58">可选项:</span>必需是MSN邮箱</span></div></th>
        </tr>
        <tr>
          <th class="style4" scope="col"><div align="left" class="style58"><span class="style49"><span class="style31 style46 style58">可选项:</span>个人网页链接</span></div></th>
        </tr>
        <tr>
          <th scope="col">&nbsp;</th>
        </tr>
      </table>
  
            <input type="hidden" name="MM_insert" value="form2">
</form>
搜索更多相关主题的帖子: 弹出提示框 
2008-08-17 17:30
yms123
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:209
帖 子:12488
专家分:19042
注 册:2004-7-17
收藏
得分:0 
MM_validateForm
楼主的网页是使用Dreamweaver MX自动生成的代码?
2008-08-17 21:06
lyg540612
Rank: 1
等 级:新手上路
帖 子:14
专家分:0
注 册:2008-8-12
收藏
得分:0 
是的,不知怎么改呀?
2008-08-18 07:59
快速回复:如何实现“弹出提示框”
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017865 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved