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.