Javascript enables instant display of uploaded thumbnails

Source: Internet
Author: User

Javascript allows you to instantly display uploaded thumbnails and record them here for future use! Note that only javascript is used to achieve this effect, that is, after you select the file to be uploaded, you only need to call the local file address of the image stored in js and then display it. This process does not upload images to the server. This is different from the uploadify plug-in. The uploadify upload plug-in uploads images to the server during file selection, files displayed in real time are also files on the server.

If you need to know the uploadify plug-in, refer to this article:

Detailed configuration of Uploadify (JQuery upload plug-in)

The following is an example:

The specific code is as follows:

<Html xmlns =" http://www.phpernote.com/javascript-function/61.html "> <Head> <meta content =" text/html; charset = UTF-8 "http-equiv = content-type> <meta name = author content =" Laruence (www.laruence.com) "> <title> instant display of uploaded thumbnails </title> Articles you may be interested in

 
  • How to Use jquery to control the display of user-uploaded pictures with too much width
  • Js address bar special effects (display the size of all images with links on the page and view the height of the current browser)
  • JavaScript retrieves the current date and time and displays the day of the week at the same time
  • PHP analyzes the file header information to determine the type of the uploaded file
  • Php reads the Directory and lists the functions that display the files in the directory.
  • Php summarizes the methods for obtaining the time interval. php displays the time interval of Forum posts.
  • How php generates image thumbnails
  • CSS intercepts strings to automatically add ellipsis

Related Article

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.