Home > Web Front-end > JS Tutorial > Processing methods and codes for images in web pages_javascript skills

Processing methods and codes for images in web pages_javascript skills

WBOY
Release: 2016-05-16 18:41:03
Original
1000 people have browsed it

1 Image processing to remove links


2 Automatically reduce large images
I often see some pictures that are so large that they fill the screen after being uploaded. The following example detects the width of the image. If the width of the image is greater than "screen width-350",

will make the image display the size of "screen width-350".

Original image

Image with set size
 

3 Disable automatic reduction of large-sized images in IE6

Original The image will be automatically reduced
 
Set not to reduce the size
;



4 Remove the area wireframe and hyperlink wireframe on the hotspot map

Copy code The code is as follows:


5 Can control the size of uploaded images


JS that handles the size of uploaded images
Copy code The code is as follows:




Copy code The code is as follows:


 
  

 
  " name="file1" value="">
 
 

 
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template