Js picture shutter door navigation menu special effects code sharing, shutter door navigation menu

Source: Internet
Author: User

Js picture shutter door navigation menu special effects code sharing, shutter door navigation menu

This article describes jQuery's ultra-exquisite image slideshow slides. Share it with you for your reference. The details are as follows:
This is a js-based special effect code for navigation menus of image shutter doors. Compared with the previous navigation menus, this code is more innovative than simply displaying information to users, it enriches the overall content of the website.
Run: ------------------- view the download result source code -------------------

TIPS: If the browser cannot run properly, you can try to switch the browsing mode.
Introduce CSS styles in the head area:

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

The js image shutter door effect code is as follows:

<Head> <meta http-equiv = "Content-Type" content = "text/html; charset = gb2312 "/> <title> JS image shutter door effect </title> <link href =" css/style.css "rel =" stylesheet "type =" text/css "/> <script type = "text/javascript" src = "js/jquery-1.2.6.min.js"> </script> <script type = "text/javascript" src = "js/jquery. backgroundPosition. js "> </script> <script type =" text/javascript "> $ (document ). ready (function () {// Set css in Firefox (Required to use the backgroundPosition js) returns ({backgroundPosition: '0px 0px '}); returns ('{shutter2'}.css ({backgroundPosition: '0px 0px '}); then ({backgroundPosition: '0px 0px'}); then ('{shutter4'}.css ({backgroundPosition: '0px 0px '}); // Animate the shutter $ (". link "). hover (function () {$ (this ). parent (). animate ({backgroundPosition: '(0px-100px)'}, 500) ;}, function () {$ (this ). parent (). animate ({backgroundPosition: '(0px 0px)'}, 500 );});}); </script> 

The above is the js picture shutter door navigation menu special effect code for everyone to share, I hope you can like it and apply it to practice.

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.