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

Processing methods and codes for images in web pages_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:41:03997browse

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="">
 
 

 
Statement:
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