Jsp/html the image on the page immediately after uploading the image

Source: Internet
Author: User
Tags jquery library

Uploadpreview.js
support Ie7-ie10 Google Firefox and other browsers
based on the jquery extension, the jquery library needs to be referenced.
How to use:

xml/html code?

123 <div>        <imgid="ImgPr"width="120"height="120"/></div>    <inputtype="file"id="up"/>


      the IMG tag that needs to be previewed   sets a div  then gives the upload control ID uploadpreview event
     

xml/html code ?

1 $ ("#up"). Uploadpreview ({ img:  "IMGPR",  width: 120, height: 120, imgtype:  ["GIF",  "JPEG",  "JPG",  "BMP",  "PNG"], callback: function  ()  {  }});  


This article is from the "Exist" blog, make sure to keep this source http://exist.blog.51cto.com/10305882/1959809

Jsp/html the image on the page immediately after uploading the image

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.