uploadify上传图片
来源:互联网 发布:java报表管理系统源码 编辑:程序博客网 时间:2024/06/06 19:43
1、实现源码
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <title>uploadify上传图片</title> <meta http-equiv="pragma" content="no-cache"><meta http-equiv="cache-control" content="no-cache"><meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"><meta http-equiv="description" content="This is my page"><link type="text/css" rel="stylesheet" href="../../js/uploadify/uploadify.css"/><script type="text/javascript" src="../../js/jquery-1.12.3.js"></script><script type="text/javascript" src="../../js/uploadify/jquery.uploadify.js"></script><script type="text/javascript">$(function(){ $("#upload").uploadify({ 'height': 25, 'width': 100, 'auto': true, 'removeTimeout' : 10, 'buttonText': '上传图片', 'fileTypeExts': '*.gif; *.jpg; *.png', 'fileSizeLimit' : '1MB', 'swf': '../../js/uploadify/uploadify.swf', 'uploader': '../../js/uploadify/uploadify.php', 'cancelImg': '../../js/uploadify/uploadify-cancel.png', 'buttonImage' : '../../images/img.PNG', 'multi': false, 'onUploadSuccess':function(file){ console.log(file.name); $("#imgs").css("display","block"); $("#imgs").attr("src",file.name); } });});</script> </head> <body> <input type="file" name="upload" id="upload" /> <img id="imgs" style="width:100px; height: 100px; display: none;"> </body></html>
2、实现结果
0 0
- uploadify上传图片
- uploadify上传多图片
- uploadify java上传图片
- 插件Uploadify图片上传
- 图片上传uploadify
- uploadify上传图片
- uploadify批量上传图片
- uploadify 图片上传demo
- SSM uploadify 图片上传
- 图片上传插件jquery.uploadify
- uploadify批量文件、图片上传
- PHP Uploadify图片上传裁剪
- jquery uploadify简单图片上传
- Uploadify 控件上传图片 + 预览
- uploadify struts2实现图片上传
- uploadify插件单图片上传
- Jquery+uploadify异步上传图片
- 上传图片插件之---uploadify
- HDU1058Humble Numbers
- BestCoder Round #81 (div.2)-String(尺取法)
- 前端笔记 CSS 5
- 学习新技术知识的方法
- 【图-二分图染色】NOIP提高组2008双栈排序
- uploadify上传图片
- 【codevs】基础合集(一)
- Linux下用户组、文件权限详解
- BlogLife
- 读远--下电子书的好地方
- HDU 5670 Machine——BestCoder Round #81(div.2)
- Ruby元编程-学习笔记(二)-方法
- Android ADT 下载代理
- ZooKeeper典型应用场景一览