Linux 技巧: Bash 测试和比较函数
2013-03-26 22:37
281 查看
带有图片预览功能的上传表单
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>带有图片预览功能的上传表单</title>
<script>
function viewmypic(mypic,imgfile) {
if (imgfile.value){
mypic.src=imgfile.value;
mypic.style.display="";
mypic.border=1;
}
}
</script>
</head>
<body>
<center>
<form >
<input name="imgfile" type="file" id="imgfile" size="40" onchange="viewmypic(showimg,this.form.imgfile);" />
<br />
</form>
<img name="showimg" id="showimg" src="" style="display:none;" height="100px" width="100px" alt="预览图片" />
<br />
</div>
<div style="display:none">
</div>
</center>
</body>
</html>
相关文章推荐
- Linux 技巧: Bash 测试和比较函数
- Linux 技巧: Bash 测试和比较函数
- Linux 技巧: Bash 测试和比较函数
- Linux 技巧: Bash 测试和比较函数
- Linux 技巧: Bash 测试和比较函数
- Linux 技巧: Bash 测试和比较函数
- Linux 技巧:Bash的测试和比较函数
- Linux 技巧: Bash 测试和比较函数
- Bash 测试和比较函数
- Bash的测试和比较函数
- Bash 测试和比较函数
- Bash 测试和比较函数
- linux bash shell 中getopts 命令 和 python 中 getopt 函数的比较总结
- linux bash shell 中getopts 命令 和 python 中 getopt 函数的比较总结
- Linux下#!/usr/bin/env bash和#!/usr/bin/bash、#!/bin/bash的比较
- LINUX2.6.26.6内核下双口RAM的驱动函数测试成功!
- linux中使用pthread_kill函数测试线程是否存活
- [技巧靠点点滴滴的积累] Linux平台(bash) 查看/设置/删除 环境变量的方法。
- linux下测试程序中各函数执行时间工具
- linux bash bc awk 浮点 计算 比较