Home Web Front-end JS Tutorial js image carousel effect code sharing with thumbnails_javascript skills

js image carousel effect code sharing with thumbnails_javascript skills

May 16, 2016 pm 03:39 PM

The example in this article describes the js image carousel effect with thumbnails. Share it with everyone for your reference. The details are as follows:
This is a code based on javaScript that implements image carousel effects with thumbnails. The implementation process is very simple.
Operation rendering: -------------------View the effect Download the source code---------- --------

Tips: If the browser does not work properly, you can try switching the browsing mode.
Introduce CSS styles in the head area:

1

<link href="css/jb51.net.css" rel="stylesheet" type="text/css" >

Copy after login

The JS 5-screen rotating focus image special effects code with thumbnails shared with you is as follows

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

89

90

91

92

93

94

95

96

97

98

99

100

101

102

103

104

105

106

107

108

109

110

111

112

113

114

115

116

117

118

119

120

121

122

123

124

125

126

127

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title>JS带缩略图的5屏轮换焦点图</title>

<link href="css/jb51.net.css" rel="stylesheet" type="text/css" >

<script type="text/javascript" src="js/show.js"></script>

 

 

 

<div id="p7ssm">

   <div id="p7ssm_cf"> </div>

   <div id="p7ssm_loading"><img src="/static/imghw/default1.png" data-src="images/loading.gif" class="lazy" alt="" style="max-width:90%"></div>

   <table id="p7ssm_fstbl" border="0" cellpadding="0" cellspacing="0" summary="Fullsize Image">

    <tbody><tr>

     <td><div id="p7ssm_fullsize">

       <div id="p7ssm_fsc">

        <div id="p7ssm_fsw">

         <div id="p7ssm_fsimg"><a href="javascript:;" id="p7ssm_fslink"><img src="/static/imghw/default1.png" data-src="images/biaozhi.gif" class="lazy" alt="" name="p7ssm_im" style="max-width:90%" border="0" id="p7ssm_im"></a></div>

         <div id="p7ssm_description"></div>

        </div>

       </div>

      </div></td>

    </tr>

   </tbody></table>

   <div id="p7SSMwhmb">

    <div id="p7ssm_thumbs">

     <div id="p7SSMwp_1">

      <div class="p7ssm_thumb_section">

       <ul><!-- 修改内容开始 -->

        <li><a href="images/001.jpg">

  <img src="/static/imghw/default1.png" data-src="images/001.jpg" class="lazy" alt="js image carousel effect code sharing with thumbnails_javascript skills" style="max-width:90%"></a>

         <div class="p7ssm_lk"><a href="http://www.jb51.net/">点击查看详情</a></div>

         <div class="p7ssm_fd">js image carousel effect code sharing with thumbnails_javascript skills</div>

        </li>

        <li><a href="images/002.jpg">

  <img src="/static/imghw/default1.png" data-src="images/002.jpg" class="lazy" alt="超级插画设计 3D机器人与平面相结合" style="max-width:90%"></a>

         <div class="p7ssm_lk"><a href="http://www.jb51.net/">点击查看详情</a></div>

         <div class="p7ssm_fd">超级插画设计 3D机器人与平面相结合</div>

        </li>

        <li><a href="images/003.jpg">

  <img src="/static/imghw/default1.png" data-src="images/003.jpg" class="lazy" alt="洁净舒适的XP桌面壁纸 轻松愉快的环境" style="max-width:90%"></a>

         <div class="p7ssm_lk"><a href="http://www.jb51.net/">点击查看详情</a></div>

         <div class="p7ssm_fd">洁净舒适的XP桌面壁纸 轻松愉快的环境</div>

        </li>

        <li><a href="images/004.jpg">

  <img src="/static/imghw/default1.png" data-src="images/004.jpg" class="lazy" alt="室内装修三维设计 创造简洁舒适" style="max-width:90%"></a>

         <div class="p7ssm_lk"><a href="http://www.jb51.net/">点击查看详情</a></div>

         <div class="p7ssm_fd">室内装修三维设计 创造简洁舒适</div>

        </li>

        <li><a href="images/005.jpg">

  <img src="/static/imghw/default1.png" data-src="images/005.jpg" class="lazy" alt="世界上令人叹为观止的仿真的机器人" style="max-width:90%"></a>

         <div class="p7ssm_lk"><a href="http://www.jb51.net/">点击查看详情</a></div>

         <div class="p7ssm_fd">世界上令人叹为观止的仿真的机器人</div>

        </li>

       <!-- 修改内容结束 --></ul>

       <br class="p7ssm_clearThumbs">

      </div>

     </div>

    </div>

   </div>

   <div id="p7ssm_toolbar">

    <div class="p7ssm_sectionTrigger"><a id="p7SSMtp_1" href="#">New Image Set</a></div>

    <div id="p7ssm_dragbar" title="Move"><span>Move</span></div>

    <div id="p7ssm_preview"

     <table summary="Thumbnail Preview">

      <tbody><tr>

       <td><img src="/static/imghw/default1.png" data-src="images/biaozhi.gif" class="lazy" alt=""></td>

      </tr>

     </tbody></table>

    </div>

    <div id="p7ssm_tools">

     <table border="0" cellpadding="0" cellspacing="0" summary="Slideshow Toolbar">

      <tbody><tr>

       <td><div id="p7ssm_nav_wrapper"><a id="p7SSMtnav" href="#" title="Menu"><em>Navigate</em></a>

         <div id="p7SSMwnav">

          <div id="p7ssm_navList">

           <ul>

            <li></li>

           </ul>

          </div>

         </div>

        </div></td>

       <td><a href="#" title="Hide or Show Thumbnails" id="p7SSMthmb"><em>Hide Thumbs</em></a></td>

       <td><a href="#" id="p7ssm_first" title="First Image"><em>First</em></a></td>

       <td><a href="#" id="p7ssm_prev" title="Previous Image"><em>Previous</em></a></td>

       <td><a href="#" id="p7ssm_pp" class="p7ssm_pause" title="Pause"><em>Pause</em></a></td>

       <td><a href="#" id="p7ssm_next" title="Next Image"><em>Next</em></a></td>

       <td><a href="#" id="p7ssm_last" title="Last Image"><em>Last</em></a></td>

       <td><div id="p7ssm_slidechannel">

         <div id="p7ssm_slider"><a href="#" id="p7ssm_slidebar" title="Speed:"><em>Set Speed</em></a></div>

                 </div></td>

        </tr>

     </tbody></table>

    </div>

   </div>

<!--[if IE 7]>

<style>

#p7ssm, #p7ssm div {zoom: 1;}

</style><![endif]-->

<!--[if IE 6]><style>

#p7ssm a, #p7ssm, #p7ssm div, #p7ssm_thumb_wrapper {zoom: 1;}

.p7ssm_thumb_section {padding-right: 0; padding-left: 0;}

.p7ssm_thumb_section a {float: left;}

</style><![endif]-->

<!--[if IE 5]><style>

#p7ssm {}

.p7ssm_sectionTrigger {text-align: left;}

#p7ssm_navList li {float: left; clear:both; width: 100%;}

#p7ssm, #p7ssm_w1, #p7ssm_w2, #p7ssm_description, #p7ssm_preview,

#p7ssm_navList a, .p7ssm_sectionTrigger a, #p7ssm_thumbs,

.p7ssm_thumb_section, #p7ssm_fsw {height: 1%;}

.p7ssm_thumb_section {padding: 0;}

</style><![endif]-->

<!--[if IE 5.5000]><style>

#p7ssm, #p7ssm_w1, #p7ssm_w2 {zoom: 1;}

</style><![endif]-->

<script type="text/javascript">

<!--

P7_SSMinit(1,1,1,1,0,1,1,1,5);

//-->

</script>

</div>

 

<br><br>

<div align="center">

 <p align="center"></p>

 <p align="center"></p>

 <p> </p>

</div>

Copy after login

The above is the js image carousel effect code with thumbnails shared with you. I hope you can like it and apply it in practice.

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How do I create and publish my own JavaScript libraries? How do I create and publish my own JavaScript libraries? Mar 18, 2025 pm 03:12 PM

Article discusses creating, publishing, and maintaining JavaScript libraries, focusing on planning, development, testing, documentation, and promotion strategies.

How do I optimize JavaScript code for performance in the browser? How do I optimize JavaScript code for performance in the browser? Mar 18, 2025 pm 03:14 PM

The article discusses strategies for optimizing JavaScript performance in browsers, focusing on reducing execution time and minimizing impact on page load speed.

What should I do if I encounter garbled code printing for front-end thermal paper receipts? What should I do if I encounter garbled code printing for front-end thermal paper receipts? Apr 04, 2025 pm 02:42 PM

Frequently Asked Questions and Solutions for Front-end Thermal Paper Ticket Printing In Front-end Development, Ticket Printing is a common requirement. However, many developers are implementing...

How do I debug JavaScript code effectively using browser developer tools? How do I debug JavaScript code effectively using browser developer tools? Mar 18, 2025 pm 03:16 PM

The article discusses effective JavaScript debugging using browser developer tools, focusing on setting breakpoints, using the console, and analyzing performance.

How do I use Java's collections framework effectively? How do I use Java's collections framework effectively? Mar 13, 2025 pm 12:28 PM

This article explores effective use of Java's Collections Framework. It emphasizes choosing appropriate collections (List, Set, Map, Queue) based on data structure, performance needs, and thread safety. Optimizing collection usage through efficient

How do I use source maps to debug minified JavaScript code? How do I use source maps to debug minified JavaScript code? Mar 18, 2025 pm 03:17 PM

The article explains how to use source maps to debug minified JavaScript by mapping it back to the original code. It discusses enabling source maps, setting breakpoints, and using tools like Chrome DevTools and Webpack.

Getting Started With Chart.js: Pie, Doughnut, and Bubble Charts Getting Started With Chart.js: Pie, Doughnut, and Bubble Charts Mar 15, 2025 am 09:19 AM

This tutorial will explain how to create pie, ring, and bubble charts using Chart.js. Previously, we have learned four chart types of Chart.js: line chart and bar chart (tutorial 2), as well as radar chart and polar region chart (tutorial 3). Create pie and ring charts Pie charts and ring charts are ideal for showing the proportions of a whole that is divided into different parts. For example, a pie chart can be used to show the percentage of male lions, female lions and young lions in a safari, or the percentage of votes that different candidates receive in the election. Pie charts are only suitable for comparing single parameters or datasets. It should be noted that the pie chart cannot draw entities with zero value because the angle of the fan in the pie chart depends on the numerical size of the data point. This means any entity with zero proportion

TypeScript for Beginners, Part 2: Basic Data Types TypeScript for Beginners, Part 2: Basic Data Types Mar 19, 2025 am 09:10 AM

Once you have mastered the entry-level TypeScript tutorial, you should be able to write your own code in an IDE that supports TypeScript and compile it into JavaScript. This tutorial will dive into various data types in TypeScript. JavaScript has seven data types: Null, Undefined, Boolean, Number, String, Symbol (introduced by ES6) and Object. TypeScript defines more types on this basis, and this tutorial will cover all of them in detail. Null data type Like JavaScript, null in TypeScript

See all articles