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