Home > Web Front-end > JS Tutorial > jq realizes the sliding switching effect of text on the right side of the picture displayed on the left_jquery

jq realizes the sliding switching effect of text on the right side of the picture displayed on the left_jquery

WBOY
Release: 2016-05-16 15:47:34
Original
1969 people have browsed it

Share a jQuery code for sliding text on the left side of the picture and on the right side. This is a list image control image sliding switching code based on jQuery. The rendering is as follows:

Let me share with you the sliding switching effect of displaying pictures on the left and text on the right based on jq. Use div css to arrange the form and borrow jq to achieve special effects. I won’t go into details. Please see the code below.

html code:


<div class="index-new w1200 mt30">
    <div class="indexadd mt50 mb60">
      <div id="banners" class="ui-banner">
        <ul class="ui-banner-slides">
          <li><a href=""><img src="images/simgd.jpg" alt="NEW! Get Heart Smart With Essential Omega III" title="NEW! Get Heart Smart With Essential Omega III" /></a></li>
          <li><a href=""><img src="images/simgd.jpg" alt="NEW! Support Your Skin on a Cellular Level" title="NEW! Support Your Skin on a Cellular Level" /></a></li>
          <li><a href=""><img src="images/simgd.jpg" alt="NEW! Indulge in Luxury With Royal Spa" title="NEW! Indulge in Luxury With Royal Spa" /></a></li>
          <li><a href=""><img src="images/simgd.jpg" alt="NEW! Get paid to shop with Cashback" title="NEW! Get paid to shop with Cashback" /></a></li>
          <li><a href=""><img src="images/simgd.jpg" alt="NEW! Radiation Protection at its Best" title="NEW! Radiation Protection at its Best" /></a></li>
          <li><a href=""><img src="images/simgd.jpg" alt="Unleash the Power of Isotonix Today" title="Unleash the Power of Isotonix Today" /></a></li>
          <li><a href=""><img src="images/simgd.jpg" alt="Motives is Changing the Face of UK Beauty" title="Motives is Changing the Face of UK Beauty" /></a></li>
          <li><a href=""><img src="images/simgd.jpg" alt="Get a Taste of Spring" title="Get a Taste of Spring" /></a></li>
          <li><a href=""><img src="images/simgd.jpg" alt="Try Isotonix OPC-3 Today for Better Health" title="Try Isotonix OPC-3 Today for Better Health" /></a></li>
          <li><a href=""><img src="images/simgd.jpg" alt="Feel like a princess with Royal Spa" title="Feel like a princess with Royal Spa" /></a></li>
          <li><a href=""><img src="images/simgd.jpg" alt="Stay energised with Isotonix for the Queen's Jubilee" title="Stay energised with Isotonix for the Queen's Jubilee" /></a></li>
          <li><a href=""><img src="images/simgd.jpg" alt="WorldStores - Top Brands Delivered Next Day" title="WorldStores - Top Brands Delivered Next Day" /></a></li>
        </ul><!--ui-banner-slides end-->
        <ul class="ui-banner-slogans">
          <li class="ui-line">
            <div class="ullinehover">
              <div class="ui-bnnerimg floatLeft">
                <img src="images/simg.jpg" alt="" width="103" />
              </div>
              <div class="ui-bnnerp floatRight">
                <h3 style="margin-top: 8px;">设计院开展扶贫济困募捐活动</h3>
                <p>
                  根据总局文明委《关于开展扶贫济困募捐活动的通知》精神,在总局机关和直属单位
                  开展扶贫济困募捐活动。
                </p>
              </div>
            </div>
          </li>
          <li class="ui-line">
            <div class="ullinehover">
              <div class="ui-bnnerimg floatLeft">
                <img src="images/simg.jpg" alt="" width="103" />
              </div>
              <div class="ui-bnnerp floatRight">
                <h3 style="margin-top: 8px;">设计院开展扶贫济困募捐活动</h3>
                <p>
                  根据总局文明委《关于开展扶贫济困募捐活动的通知》精神,在总局机关和直属单位
                  开展扶贫济困募捐活动。
                </p>
              </div>
            </div>
          </li>
          <li class="ui-line">
            <div class="ullinehover">
              <div class="ui-bnnerimg floatLeft">
                <img src="images/simg.jpg" alt="" width="103" />
              </div>
              <div class="ui-bnnerp floatRight">
                <h3 style="margin-top: 8px;">设计院开展扶贫济困募捐活动</h3>
                <p>
                  根据总局文明委《关于开展扶贫济困募捐活动的通知》精神,在总局机关和直属单位
                  开展扶贫济困募捐活动。
                </p>
              </div>
            </div>
          </li>
          <li class="ui-line">
            <div class="ullinehover">
              <div class="ui-bnnerimg floatLeft">
                <img src="images/simg.jpg" alt="" width="103" />
              </div>
              <div class="ui-bnnerp floatRight">
                <h3 style="margin-top: 8px;">设计院开展扶贫济困募捐活动</h3>
                <p>
                  根据总局文明委《关于开展扶贫济困募捐活动的通知》精神,在总局机关和直属单位
                  开展扶贫济困募捐活动。
                </p>
              </div>
            </div>
          </li>
          <li class="ui-line">
            <div class="ullinehover">
              <div class="ui-bnnerimg floatLeft">
                <img src="images/simg.jpg" alt="" width="103" />
              </div>
              <div class="ui-bnnerp floatRight">
                <h3 style="margin-top: 8px;">设计院开展扶贫济困募捐活动</h3>
                <p>
                  根据总局文明委《关于开展扶贫济困募捐活动的通知》精神,在总局机关和直属单位
                  开展扶贫济困募捐活动。
                </p>
              </div>
            </div>
          </li>
          <li class="ui-line">
            <div class="ullinehover">
              <div class="ui-bnnerimg floatLeft">
                <img src="images/simg.jpg" alt="" width="103" />
              </div>
              <div class="ui-bnnerp floatRight">
                <h3 style="margin-top: 8px;">设计院开展扶贫济困募捐活动</h3>
                <p>
                  根据总局文明委《关于开展扶贫济困募捐活动的通知》精神,在总局机关和直属单位
                  开展扶贫济困募捐活动。
                </p>
              </div>
            </div>
          </li>
          <li class="ui-line">
            <div class="ullinehover">
              <div class="ui-bnnerimg floatLeft">
                <img src="images/simg.jpg" alt="" width="103" />
              </div>
              <div class="ui-bnnerp floatRight">
                <h3 style="margin-top: 8px;">设计院开展扶贫济困募捐活动</h3>
                <p>
                  根据总局文明委《关于开展扶贫济困募捐活动的通知》精神,在总局机关和直属单位
                  开展扶贫济困募捐活动。
                </p>
              </div>
            </div>
          </li>
          <li class="ui-line">
            <div class="ullinehover">
              <div class="ui-bnnerimg floatLeft">
                <img src="images/simg.jpg" alt="" width="103" />
              </div>
              <div class="ui-bnnerp floatRight">
                <h3 style="margin-top: 8px;">设计院开展扶贫济困募捐活动</h3>
                <p>
                  根据总局文明委《关于开展扶贫济困募捐活动的通知》精神,在总局机关和直属单位
                  开展扶贫济困募捐活动。
                </p>
              </div>
            </div>
          </li>
          <li class="ui-line">
            <div class="ullinehover">
              <div class="ui-bnnerimg floatLeft">
                <img src="images/simg.jpg" alt="" width="103" />
              </div>
              <div class="ui-bnnerp floatRight">
                <h3 style="margin-top: 8px;">设计院开展扶贫济困募捐活动</h3>
                <p>
                  根据总局文明委《关于开展扶贫济困募捐活动的通知》精神,在总局机关和直属单位
                  开展扶贫济困募捐活动。
                </p>
              </div>
            </div>
          </li>
          <li class="ui-line">
            <div class="ullinehover">
              <div class="ui-bnnerimg floatLeft">
                <img src="images/simg.jpg" alt="" width="103" />
              </div>
              <div class="ui-bnnerp floatRight">
                <h3 style="margin-top: 8px;">设计院开展扶贫济困募捐活动</h3>
                <p>
                  根据总局文明委《关于开展扶贫济困募捐活动的通知》精神,在总局机关和直属单位
                  开展扶贫济困募捐活动。
                </p>
              </div>
            </div>
          </li>
          <li class="ui-line">
            <div class="ullinehover">
              <div class="ui-bnnerimg floatLeft">
                <img src="images/simg.jpg" alt="" width="103" />
              </div>
              <div class="ui-bnnerp floatRight">
                <h3 style="margin-top: 8px;">设计院开展扶贫济困募捐活动</h3>
                <p>
                  根据总局文明委《关于开展扶贫济困募捐活动的通知》精神,在总局机关和直属单位
                  开展扶贫济困募捐活动。
                </p>
              </div>
            </div>
          </li>
          <li class="ui-line">
            <div class="ullinehover">
              <div class="ui-bnnerimg floatLeft">
                <img src="images/simg.jpg" alt="" width="103" />
              </div>
              <div class="ui-bnnerp floatRight">
                <h3 style="margin-top: 8px;">设计院开展扶贫济困募捐活动</h3>
                <p>
                  根据总局文明委《关于开展扶贫济困募捐活动的通知》精神,在总局机关和直属单位
                  开展扶贫济困募捐活动。
                </p>
              </div>
            </div>
          </li>
        </ul><!--ui-banner-slogans end-->
      </div>
    </div>
  </div>
Copy after login

Display renderings:

The above is the entire content of this article, I hope you all like it.

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