jquery implementation Mobile End Click picture View big Picture special effects _jquery

Source: Internet
Author: User

The requirements of this article is very simple: Click on the picture to see the big picture, and then point to hide the big picture. More for the mobile end, because the mobile side screen is small, you may need to view the larger image.

Specific implementation code

<! DOCTYPE html>  

jquery implementation Mobile End Click picture to see the big picture special effects need to use the skill
Need to click on the picture 1, 2, 3, 44 small map to see the big picture, and the following button switch is needed to switch at the same time 4 small picture.


Because the mobile side cannot add hotspots, the final solution is to use the four a tag to navigate to the upper left corner, the upper right corner, the lower left corner, and the lower right corner of the four areas.

<dl>
<dd style= "Display:block;" >
  
  <a href= "javascript:;" src= "images/11.jpg" class= "TopLeft" $ (this). Imgzoomin (); " ></a>
  <a href= "javascript:;" src= "images/12.jpg" class= "TopRight" $ (this). Imgzoomin (); " ></a>
  <a href= "javascript:;" src= "images/13.jpg" class= "Bottomleft" $ (this). Imgzoomin (); " ></a>
  <a href= "javascript:;" src= "images/14.jpg" class= "BottomRight" $ (this). Imgzoomin (); " ></a>
  </dd>
  ...
</dl>

Css

. topleft,.topright,.bottomleft,.bottomright{
  width:50%;
  height:50%;
  Position:absolute
}

. topleft{
  /*background-color:red;*/
  top:0;
  left:0
}
. topright{
  /*background-color:green;*/
  top:0;
  right:0
}
. bottomleft{
  /*background-color:blue;*/
  bottom:0;
  left:0
}
. bottomright{
  /*background-color:yellow;*/
  bottom:0;
  right:0;
}

The above is the mobile end click on the picture to see the realization of the big picture, I hope to help you learn.

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.