请选择您喜欢的人物头像JS代码

转载 2012年03月30日 17:12:37
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="css/style.css">
<script language="javascript">
function select_face()
{
var somevalue;
somevalue=window.showModalDialog("browse.php","请选择您喜欢的人物头像", "dialogWidth='310px';dialogHeight='240px';status='no';help='no';scrollbars='no'");
document.form_regist.user_src.src="images/head/"+somevalue+".gif";
 }
</script>
<table width="524" height="23" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="524"><img src="images/top.gif" width="524" height="23"></td>
  </tr>
</table>
<table width="522" height="44" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="522" height="44" bgcolor="#2369DE"><table width="522" border="0" align="center" cellpadding="0" cellspacing="1">
      <tr>
        <td width="520" height="25" background="images/menubar.gif" bgcolor="#FFFFFF"><div align="left">&nbsp;&nbsp;&nbsp;<img src="images/menubar_left.gif" width="9" height="9">&nbsp;&nbsp;<strong>用户注册</strong></div></td>
      </tr>
      <tr>
        <td height="324" bgcolor="#FFFFFF"><table width="480" height="327" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="480" height="327" valign="top"><table width="484" border="0" align="center" cellpadding="0" cellspacing="0">
                <form method="post"  name="form_regist">
                  <tr>
                    <td width="123" height="30">
                      <div align="center">用户昵称:&lt;/div></td>
                    <td width="361"><div align="left">
                        <input type="text" name="user_name" size="25" maxlength="20" class="buttoncss">
                *&nbsp;</div></td>
                  </tr>
                  <tr>
                    <td height="30"><div align="center">注册密码:&lt;/div></td>
                    <td height="30"><div align="left">
                        <input type="password" name="user_pwd1" size="25" maxlength="20" class="buttoncss">
                *</div></td>
                  </tr>
                  <tr>
                    <td height="30"><div align="center">E-mail:&lt;/div></td>
                    <td height="30"><div align="left">
                        <input type="text" name="user_email" size="25" maxlength="100" class="buttoncss" />
                *请输入真实的E-mail地址</div></td>
                  </tr>
                  <tr>
                    <td height="30"><div align="center">真实姓名:&lt;/div></td>
                    <td height="30"><div align="left">
                        <input type="text" name="user_truename" size="25" maxlength="20" class="buttoncss" />
                *</div></td>
                  </tr>
                  <tr>
                    <td height="30"><div align="center">职&amp;nbsp;&nbsp;业:</div></td>
                    <td height="30"><div align="left">
                        <select name="user_zy" id="user_zy">
                          <option value="请选择">请选择</option>
                          <option value="教师">教师</option>
                          <option value="司机">司机</option>
                          <option value="军人">军人</option>
                          <option value="学生">学生</option>
                          <option value="职员" selected>职员</option>
                          <option value="干部">干部</option>
                          <option value="其他">其他</option>
                        </select>
                *</div></td>
                  </tr>
                  <tr>
                    <td height="100" rowspan="2"><div align="center">头&amp;nbsp;&nbsp;像:</div></td>
                    <td height="63"><div align="left"><img id="user_src" src="images/head/0.gif" width="60" height="60" /></div></td>
                  </tr>
                  <tr>
                    <td height="24">[<a href="#" onclick="select_face()" class="a1">头像选择</a>]</td>
                  </tr>
                  <tr>
                    <td height="30"><div align="center">QQ号码:&lt;/div></td>
                    <td height="30"><div align="left">
                        <input type="text" name="user_qq" size="25" maxlength="20" class="buttoncss">
                *</div></td>
                  </tr>
                  <tr>
                    <td height="30"><div align="center">联系电话:&lt;/div></td>
                    <td height="30"><div align="left">
                        <input name="user_tel" type="text" class="buttoncss" id="user_tel" size="25" maxlength="20">
                *</div></td>
                  </tr>
                  <tr>
                    <td height="40" colspan="2"><div align="center">
                        <input name="submit" type="submit" class="buttoncss" value="立即注册">
&nbsp;&nbsp;
                <input name="reset" type="reset" class="buttoncss" value="全部重写">
                    </div></td>
                  </tr>
                </form>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
另一文件:
 
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
function selectface(ICQ)
{
window.returnValue=ICQ;
window.close();
}
</script>
<title>请选择您喜欢的人物头像</title>
<table width="300" height="200" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="150" height="67"><div align="center"><img src="images/head/0.gif" width="60" height="60" onclick="selectface(0)"/></div></td>
    <td width="150"><div align="center"><img src="images/head/1.gif" width="60" height="60" onclick="selectface(1)"/></div></td>
    <td width="150"><div align="center"><img src="images/head/2.gif" width="60" height="60" onclick="selectface(2)"/></div></td>
    <td width="150"><div align="center"><img src="images/head/3.gif" width="60" height="60" onclick="selectface(3)"/></div></td>
  </tr>
  <tr>
    <td height="66"><div align="center"><img src="images/head/4.gif" width="60" height="60" onclick="selectface(4)"/></div></td>
    <td><div align="center"><img src="images/head/5.gif" width="60" height="60" onclick="selectface(5)"/></div></td>
    <td><div align="center"><img src="images/head/6.gif" width="60" height="60" onclick="selectface(6)"/></div></td>
    <td><div align="center"><img src="images/head/7.gif" width="60" height="60" onclick="selectface(7)"/></div></td>
  </tr>
  <tr>
    <td height="63"><div align="center"><img src="images/head/8.gif" width="60" height="60"onclick="selectface(8)"/></div></td>
    <td><div align="center"><img src="images/head/9.gif" width="60" height="60" onclick="selectface(9)"/></div></td>
    <td><div align="center"><img src="images/head/10.gif" width="60" height="60" onclick="selectface(10)"/></div></td>
    <td><div align="center"><img src="images/head/11.gif" width="60" height="60" onclick="selectface(11)"/></div></td>
  </tr>
</table>


相关文章推荐

微信js sdk 授权上传头像下载代码片段和注意事项

应用微信js sdk首先需要对页面进行授权,上传接口需要localIds转为字符串 res.localIds.toString();,上传后只有三天有效期,长时间使用需下载到自己服务器上...

人物头像下载

  • 2007年08月30日 13:39
  • 140KB
  • 下载

Android 图片截取人物头像(仿逗拍)

要求根据给定的头部模板,截取资源图。分析定义剪切浮层,实现背景资源图的操作view实现 绘制剪切浮层 /** * 初始化绘制笔 */ private void initRe...
  • Jarlen
  • Jarlen
  • 2015年03月22日 19:37
  • 1453

精美卡通人物论坛头像27张

  • 2005年12月27日 09:38
  • 83KB
  • 下载

【Photoshop】把人物头像转为搞笑的大头漫画效果

本教程介绍比较特别的大头像处理方法。大致过程:选好素材后,需要把头部单独抠出来,用液化滤镜进行变形处理(可以参考一些大头像图片)。变形后再适当磨皮并强化暗部即可。 原图: 最终效果: 详...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:请选择您喜欢的人物头像JS代码
举报原因:
原因补充:

(最多只允许输入30个字)