


Example of graphic and text highlight scrolling switching effect implemented by jQuery_jquery
The example in this article describes the image and text highlight scrolling switching effect implemented by jQuery. Share it with everyone for your reference. The details are as follows:
Here we introduce the jQuery graphic and text highlight scrolling switching effect. jQuery mouse slides over the graphic and text to switch the light switch, the background darkens, and the sub-content slides up to display. The mouse operation feels very strong. I hope everyone likes this effect.
The screenshot of the running effect is as follows:
The specific code is as follows:
<!DOCTYPE html> <html lang="en"> <head> <title>jQuery图文高亮滚动切换</title> <style> *{ margin:0; padding:0;} body{ font-family:"宋体"; font-size:12px;text-decoration:none; color:#292929; } h1,h2,h3,h4,h5,h6,p,input,select,td{margin:0;padding:0;} li{list-style:none;} .fl{float:left;} a{text-decoration:none;color:#353535;} img{border:0; vertical-align:top;} .clear{clear:both;} .grid1k { width: 990px; margin: 0 auto; } .grid_full { width: 100%; } .grid1024 { width: 1024px; margin: 0 auto; } .fr { float: right; } .fl { float: left; } .color_blue { color: #29388c; } .color_fff { color: #fff; } .color_333 { color: #333; } .color_666 { color: #666; } .color_999 { color: #999; } .color_orange { color: #e88d27; } .one_fourth_box { display: block; position: relative; width: 326px; height: 135px; margin: 0 2px 2px 0; background: #f6f6f6; overflow: hidden; } .ofb-r { margin-right: 0!important; } .ofb-bg { display: none; width: 100%; height: 100%; position: absolute; z-index: 2; background: #333; } .ofb-img { position: absolute; top: 32px; left: 13px; z-index: 10; } .ofb-img-bottom { position: absolute; top: 160px; left: 13px; z-index: 10; } .ofb-text { position: absolute; top: 25px; left: 144px; width:178px; z-index: 10; } .ofb-text-top { position: absolute; top: -110px; left: 144px; width: 178px; z-index: 10; } .ofb-text h5,.ofb-text-top h5 { font-size: 14px; line-height:16px; } .ofb-text p,.ofb-text-top p { margin-top: 3px; font-size:12px; font-family:"宋体"; line-height:15px; } .ofb-r .ofb-img,.ofb-r .ofb-img-bottom { left: 65px; } .ofb-r .ofb-text,.ofb-r .ofb-text-top { left: 235px; width: 265px; } .color_111{ font-size:14px; color: #999;} .color_222{ font-size:14px; color: #000;} </style> <script src="jquery-1.6.2.min.js"></script> <script> $(function(){ //服务 $('.one_fourth_box').each(function(){ $(this).hover(function(){ $(this).children('.ofb-img').stop(true).animate({top:'-135px'}) $(this).children('.ofb-img-bottom').stop(true).animate({top:'25px'}) $(this).children('.ofb-text').stop(true).animate({top:'160px'}) $(this).children('.ofb-text-top').stop(true).animate({top:'25px'}) $(this).children('.ofb-bg').stop(true,true).fadeIn(); },function(){ $(this).children('.ofb-img').stop(true).animate({top:'25px'}) $(this).children('.ofb-img-bottom').stop(true).animate({top:'160px'}) $(this).children('.ofb-text').stop(true).animate({top:'25px'}) $(this).children('.ofb-text-top').stop(true).animate({top:'-110px'}) $(this).children('.ofb-bg').stop(true,true).fadeOut(); }) }) }) </script> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head> <body> <div class="grid1k"> <a href="/" class="one_fourth_box fl"> <div class="ofb-bg" style="display: none;"></div> <div class="ofb-img mypng" style="top: 25px;"><img src="/static/imghwm/default1.png" data-src="http://files.jb51.net/file_images/article/201508/2015810113025969.jpg" class="lazy" style="max-width:90%" style="max-width:90%" alt=""></div> <div class="ofb-img-bottom mypng" style="top: 160px;"><img src="/static/imghwm/default1.png" data-src="http://files.jb51.net/file_images/article/201508/2015810113025969.jpg" class="lazy" style="max-width:90%" style="max-width:90%" alt=""></div> <div class="ofb-text" style="top: 25px;"> <h5 id="节-能-Saving">节 能/Saving</h5> <p class="color_666">玻璃窗是建筑物中隔热和保温最弱的环节。Sunscape太阳隔热膜能使窗户增加隔热和保 温性能,有助于增加舒适性</p> </div> <div class="ofb-text-top" style="top: -110px;"> <h5 id="节-能-Saving">节 能/Saving</h5> <p class="color_999">玻璃窗是建筑物中隔热和保温最弱的环节。Sunscape太阳隔热膜能使窗户增加隔热和保 温性能,有助于增加舒适性</p> </div> </a> <a href="/" class="one_fourth_box fl"> <div class="ofb-bg" style="display: none;"></div> <div class="ofb-img mypng" style="top: 25px;"><img src="/static/imghwm/default1.png" data-src="http://files.jb51.net/file_images/article/201508/2015810113025969.jpg" class="lazy" style="max-width:90%" style="max-width:90%" alt=""></div> <div class="ofb-img-bottom mypng" style="top: 160px;"><img src="/static/imghwm/default1.png" data-src="http://files.jb51.net/file_images/article/201508/2015810113025969.jpg" class="lazy" style="max-width:90%" style="max-width:90%" alt=""></div> <div class="ofb-text" style="top: 25px;"> <h5 id="节-能-Saving">节 能/Saving</h5> <p class="color_666">玻璃窗是建筑物中隔热和保温最弱的环节。Sunscape太阳隔热膜能使窗户增加隔热和保 温性能,有助于增加舒适性</p> </div> <div class="ofb-text-top" style="top: -110px;"> <h5 id="节-能-Saving">节 能/Saving</h5> <p class="color_999">玻璃窗是建筑物中隔热和保温最弱的环节。Sunscape太阳隔热膜能使窗户增加隔热和保 温性能,有助于增加舒适性</p> </div> </a> <a href="/" class="one_fourth_box fl"> <div class="ofb-bg" style="display: none;"></div> <div class="ofb-img mypng" style="top: 25px;"><img src="/static/imghwm/default1.png" data-src="http://files.jb51.net/file_images/article/201508/2015810113025969.jpg" class="lazy" style="max-width:90%" style="max-width:90%" alt=""></div> <div class="ofb-img-bottom mypng" style="top: 160px;"><img src="/static/imghwm/default1.png" data-src="http://files.jb51.net/file_images/article/201508/2015810113025969.jpg" class="lazy" style="max-width:90%" style="max-width:90%" alt=""></div> <div class="ofb-text" style="top: 25px;"> <h5 id="节-能-Saving">节 能/Saving</h5> <p class="color_666">玻璃窗是建筑物中隔热和保温最弱的环节。Sunscape太阳隔热膜能使窗户增加隔热和保 温性能,有助于增加舒适性</p> </div> <div class="ofb-text-top" style="top: -110px;"> <h5 id="节-能-Saving">节 能/Saving</h5> <p class="color_999">玻璃窗是建筑物中隔热和保温最弱的环节。Sunscape太阳隔热膜能使窗户增加隔热和保 温性能,有助于增加舒适性</p> </div> </a> <a href="/" class="one_fourth_box ofb-r fl"> <div class="ofb-bg" style="display: none;"></div> <div class="ofb-img mypng" style="top: 25px;"><img src="/static/imghwm/default1.png" data-src="http://files.jb51.net/file_images/article/201508/2015810113741210.png" class="lazy" alt=""></div> <div class="ofb-img-bottom mypng" style="top: 160px;"><img src="/static/imghwm/default1.png" data-src="http://files.jb51.net/file_images/article/201508/2015810113518952.png" class="lazy" alt=""></div> <div class="ofb-text" style="top: 25px;"> <h5 id="移动互联网">移动互联网</h5> <p class="color_666">移动互联网:APP客户端开发,Android、IOS、Winphone 多平台支持</p> </div> <div class="ofb-text-top" style="top: -110px;"> <h5 id="移动互联网">移动互联网</h5> <p class="color_999">移动互联网:手机网站建设、APP客户端开发,Android、IOS、Winphone 多平台支持</p> </div> </a> <a href="/" class="one_fourth_box fl"> <div class="ofb-bg" style="display: none;"></div> <div class="ofb-img mypng" style="top: 25px;"><img src="/static/imghwm/default1.png" data-src="http://files.jb51.net/file_images/article/201508/2015810113138004.png" class="lazy" alt=""></div> <div class="ofb-img-bottom mypng" style="top: 160px;"><img src="/static/imghwm/default1.png" data-src="http://files.jb51.net/file_images/article/201508/2015810113033195.png" class="lazy" alt=""></div> <div class="ofb-text" style="top: 25px;"> <h5 id="网站运维">网站运维</h5> <p class="color_666">您多长时间更新一次网站?每天、每周还是半年...<br> 网站运行的怎么样?给您带来收益了吗?<br> 网站的运营与维护将决定网站的生命质量。</p> </div> <div class="ofb-text-top" style="top: -110px;"> <h5 id="网站运维">网站运维</h5> <p class="color_999">您多长时间更新一次网站?每天、每周还是半年...网站运行的怎么样?给您带来收益了吗?网站的运营与维护将决定网站的生命质量。</p> </div> </a> <a href="/" class="one_fourth_box ofb-r fl"> <div class="ofb-bg" style="display: none;"></div> <div class="ofb-img mypng" style="top: 25px;"><img src="/static/imghwm/default1.png" data-src="http://files.jb51.net/file_images/article/201508/2015810114041131.png" class="lazy" alt=""></div> <div class="ofb-img-bottom mypng" style="top: 160px;"><img src="/static/imghwm/default1.png" data-src="http://files.jb51.net/file_images/article/201508/2015810114120324.png" class="lazy" alt=""></div> <div class="ofb-text" style="top: 25px;"> <h5 id="产品开发">产品开发</h5> <p class="color_666">互联网功能性平台建设,定制化功能性网站产品销售。</p> </div> <div class="ofb-text-top" style="top: -110px;"> <h5 id="产品开发">产品开发</h5> <p class="color_999">互联网功能性平台建设,定制化网站产品开发服务。</p> </div> </a> </div> <div style="text-align:center;clear:both"><br> </div> </body> </html>
I hope this article will be helpful to everyone’s jquery programming design.

Python and JavaScript have their own advantages and disadvantages in terms of community, libraries and resources. 1) The Python community is friendly and suitable for beginners, but the front-end development resources are not as rich as JavaScript. 2) Python is powerful in data science and machine learning libraries, while JavaScript is better in front-end development libraries and frameworks. 3) Both have rich learning resources, but Python is suitable for starting with official documents, while JavaScript is better with MDNWebDocs. The choice should be based on project needs and personal interests.

The shift from C/C to JavaScript requires adapting to dynamic typing, garbage collection and asynchronous programming. 1) C/C is a statically typed language that requires manual memory management, while JavaScript is dynamically typed and garbage collection is automatically processed. 2) C/C needs to be compiled into machine code, while JavaScript is an interpreted language. 3) JavaScript introduces concepts such as closures, prototype chains and Promise, which enhances flexibility and asynchronous programming capabilities.

Different JavaScript engines have different effects when parsing and executing JavaScript code, because the implementation principles and optimization strategies of each engine differ. 1. Lexical analysis: convert source code into lexical unit. 2. Grammar analysis: Generate an abstract syntax tree. 3. Optimization and compilation: Generate machine code through the JIT compiler. 4. Execute: Run the machine code. V8 engine optimizes through instant compilation and hidden class, SpiderMonkey uses a type inference system, resulting in different performance performance on the same code.

JavaScript's applications in the real world include server-side programming, mobile application development and Internet of Things control: 1. Server-side programming is realized through Node.js, suitable for high concurrent request processing. 2. Mobile application development is carried out through ReactNative and supports cross-platform deployment. 3. Used for IoT device control through Johnny-Five library, suitable for hardware interaction.

I built a functional multi-tenant SaaS application (an EdTech app) with your everyday tech tool and you can do the same. First, what’s a multi-tenant SaaS application? Multi-tenant SaaS applications let you serve multiple customers from a sing

This article demonstrates frontend integration with a backend secured by Permit, building a functional EdTech SaaS application using Next.js. The frontend fetches user permissions to control UI visibility and ensures API requests adhere to role-base

JavaScript is the core language of modern web development and is widely used for its diversity and flexibility. 1) Front-end development: build dynamic web pages and single-page applications through DOM operations and modern frameworks (such as React, Vue.js, Angular). 2) Server-side development: Node.js uses a non-blocking I/O model to handle high concurrency and real-time applications. 3) Mobile and desktop application development: cross-platform development is realized through ReactNative and Electron to improve development efficiency.

The latest trends in JavaScript include the rise of TypeScript, the popularity of modern frameworks and libraries, and the application of WebAssembly. Future prospects cover more powerful type systems, the development of server-side JavaScript, the expansion of artificial intelligence and machine learning, and the potential of IoT and edge computing.


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

SublimeText3 Chinese version
Chinese version, very easy to use

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

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Dreamweaver Mac version
Visual web development tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool