


The example in this article describes the implementation of stylish and beautiful slide effects with jQuery, which can basically satisfy the slide (focus picture) effect you use on web pages. Share it with everyone for your reference. The details are as follows:
Slideshow effect description: Use the mouse to click the number button in the lower right corner of the slideshow to switch left and right.
The screenshot of the running effect is as follows:
Detailed implementation code:
<head> <title>Jquery幻灯片焦点图插件</title> <script src="js/jquery-1.4a2.min.js" type="text/javascript"></script> <script src="js/jquery.-1.2.1.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function(){ $("#KinSlideshow").KinSlideshow(); }) </script> <style type="text/css"> .code{ height:auto; padding:20px; border:1px solid #9EC9FE; background:#ECF3FD;} .code pre{ font-family:"Courier New";font-size:14px;} .info{ font-size:12px; color:#666666; font-family:Verdana; margin:20px 0 50px 0;} .info p{ margin:0; padding:0; line-height:22px; text-indent:40px;} h2.title{ margin:0; padding:0; margin-top:50px; font-size:18px; font-family:"微软雅黑",Verdana;} h3.title{ font-size:16px; font-family:"微软雅黑",Verdana;} .importInfo{ font-family:Verdana; font-size:14px;} </style> </head> <body> <li><h3 id="a-href-index-html-默认设置效果-a"><a href="index.html">默认设置效果</a></h3></li> </ol> <div id="KinSlideshow" style="visibility:hidden;"> <a target="_blank"><img src="/static/imghwm/default1.png" data-src="images/22.png" class="lazy" alt="Jquery幻灯片焦点图插件" style="max-width:90%" style="max-width:90%" /></a> <a target="_blank"><img src="/static/imghwm/default1.png" data-src="images/23.png" class="lazy" alt="Jquery幻灯片焦点图插件" style="max-width:90%" style="max-width:90%" /></a> <a target="_blank"><img src="/static/imghwm/default1.png" data-src="images/4.jpg" class="lazy" alt="Jquery幻灯片焦点图插件" style="max-width:90%" style="max-width:90%" /></a> <a target="_blank"><img src="/static/imghwm/default1.png" data-src="images/5.jpg" class="lazy" alt="Jquery幻灯片焦点图插件" style="max-width:90%" style="max-width:90%" /></a> <a target="_blank"><img src="/static/imghwm/default1.png" data-src="images/11.png" class="lazy" alt="Jquery幻灯片焦点图插件" style="max-width:90%" style="max-width:90%" /></a> </div> </body> </html>
Attach: list of all parameters
intervalTime:5, //设置间隔时间为5秒 【单位:秒】 [默认为5秒] moveSpeedTime:400 //切换一张图片所需时间,【单位:毫秒】[默认为400毫秒] moveStyle:"left", //切换方向 可选值:【 left | right | up | down 】left:向左切换,right:向右切换,up:向上切换,down:向下切换 [默认向左切换] mouseEvent:"mouseclick", //鼠标操作按钮事件,可选值:【mouseclick | mouseover】mouseclick:鼠标单击切换。mouseover:鼠标滑过切换。[默认为鼠标点击按钮切换] isHasTitleBar:true, //是否显示标题背景 可选值:【 true | false 】[默认为true] titleBar:{titleBar_height:40,titleBar_bgColor:"#000000",titleBar_alpha:0.5},//标题背景样式,(isHasTitleBar = true 前提下启用) titleBar_height :40 - > 标题背景高度。[默认:40] titleBar_bgColor:"#000000" - > 标题背景颜色。[默认:#000000] titleBar_alpha:0.5 -> 标题背景透明度,取值【0~1】。[默认:0.5] isHasTitleFont:true, //是否显示标题文字 可选值:【 true | false 】[默认为true] titleFont:{TitleFont_size:12,TitleFont_color:"#FFFFFF",TitleFont_family:"Verdana",TitleFont_weight:"bold"}, //标题文字样式,(isHasTitleFont = true 前提下启用) TitleFont_size - > 标题文字大小 单位像素。[默认:12] TitleFont_color:"#FFFFFF" - > 标题文字颜色。[默认:#000000] TitleFont_family:"Verdana" -> 标题文字字体。[默认:Verdana] TitleFont_weight:"bold" -> 标题文字粗细。可选值:【 bold | normal 】[默认:"bold"] ,normal 正常 不加粗。 isHasBtn:true, //是否显示按钮 btn:{btn_bgColor:"#666666",btn_bgHoverColor:"#CC0000", btn_fontColor:"#CCCCCC",btn_fontHoverColor:"#000000",btn_fontFamily:"Verdana", btn_borderColor:"#999999",btn_borderHoverColor:"#FF0000", btn_borderWidth:1,btn_bgAlpha:0.7} //按钮样式设置,(isHasBtn = true 前提下启用) btn_bgColor:"#666666" -> 按钮背景颜色 [默认:"#666666"]。 btn_bgHoverColor:"#CC0000" -> 按钮滑过/点击 背景颜色 [默认:"#CC0000"]。 btn_fontColor:"#CCCCCC" -> 按钮文字颜色 [默认:"#CCCCCC"]。 btn_fontHoverColor:"#000000" -> 按钮滑过/点击 按钮文字颜色 [默认:"#000000"]。 btn_fontFamily:"Verdana", -> 按钮文字字体 [默认:"Verdana"]。 btn_borderColor:"#999999" -> 按钮边框颜色 [默认:"#999999"]。 btn_borderHoverColor:"#FF0000" -> 按钮滑过/点击 按钮边框颜色 [默认:"#FF0000"]。 btn_borderWidth:1 -> 按钮边框宽度,单位像素 不能超过3 [默认:1]。 btn_bgAlpha:0.7 -> 按钮透明度 ,取值【0~1】 [默认:0.7]。
I hope this article will be helpful to everyone’s Jquery special effects design.

Detailed explanation of JavaScript string replacement method and FAQ This article will explore two ways to replace string characters in JavaScript: internal JavaScript code and internal HTML for web pages. Replace string inside JavaScript code The most direct way is to use the replace() method: str = str.replace("find","replace"); This method replaces only the first match. To replace all matches, use a regular expression and add the global flag g: str = str.replace(/fi

This tutorial shows you how to integrate a custom Google Search API into your blog or website, offering a more refined search experience than standard WordPress theme search functions. It's surprisingly easy! You'll be able to restrict searches to y

So here you are, ready to learn all about this thing called AJAX. But, what exactly is it? The term AJAX refers to a loose grouping of technologies that are used to create dynamic, interactive web content. The term AJAX, originally coined by Jesse J

This article series was rewritten in mid 2017 with up-to-date information and fresh examples. In this JSON example, we will look at how we can store simple values in a file using JSON format. Using the key-value pair notation, we can store any kind

Leverage jQuery for Effortless Web Page Layouts: 8 Essential Plugins jQuery simplifies web page layout significantly. This article highlights eight powerful jQuery plugins that streamline the process, particularly useful for manual website creation

Core points This in JavaScript usually refers to an object that "owns" the method, but it depends on how the function is called. When there is no current object, this refers to the global object. In a web browser, it is represented by window. When calling a function, this maintains the global object; but when calling an object constructor or any of its methods, this refers to an instance of the object. You can change the context of this using methods such as call(), apply(), and bind(). These methods call the function using the given this value and parameters. JavaScript is an excellent programming language. A few years ago, this sentence was

jQuery is a great JavaScript framework. However, as with any library, sometimes it’s necessary to get under the hood to discover what’s going on. Perhaps it’s because you’re tracing a bug or are just curious about how jQuery achieves a particular UI

This post compiles helpful cheat sheets, reference guides, quick recipes, and code snippets for Android, Blackberry, and iPhone app development. No developer should be without them! Touch Gesture Reference Guide (PDF) A valuable resource for desig


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Zend Studio 13.0.1
Powerful PHP integrated development environment

Atom editor mac version download
The most popular open source editor

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Dreamweaver Mac version
Visual web development tools
