81,092
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body>
<input type="file" name="uploadFile" onchange="geturl(this)" style="width:200px;" ><br/>
<img src="" id="imagphoto" style="height:198px;width:200px;border-width:0px;" />
</body>
</html>
<script language="javascript" type="text/javascript">
function geturl(file)
{
alert(file.value);
document.getElementById("imagphoto").src=file.value;
}
</script>
<%@ page language="java" import="java.util.*" pageEncoding="GB18030"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body>
<input type="file" name="uploadFile" onchange="geturl(this)" style="width:200px;" ><br/>
<img src="" id="imagphoto" style="height:198px;width:200px;border-width:0px;" />
</body>
</html>
<script language="javascript" type="text/javascript">
function geturl(file)
{
alert(file.value);
document.getElementById("imagphoto").src=file.value;
}
</script>