jquery realizes the method of intelligent judging fixed navigation bar or sidebar _jquery

Source: Internet
Author: User
Tags jquery library

This article illustrates the method of jquery to realize intelligent judgment of fixed navigation bar or sidebar. Share to everyone for your reference, specific as follows:

This is a jquery intelligent Judge Fixed div layer of the special effects code, through this jquery smart code, you can set the navigation bar, sidebar, any div layer of the fixed display; now the Blue Leaf station uses this jquery intelligent judgment fixed navigation bar, to see the demo, please drop down the page scroll bar, will see the navigation bar fixed, use this code need to refer to the jquery library in the page of the JS file, now the site generally refers to the jquery library code, if not then open the template of your site, in the header or page to add <script src= "http:// Libs.baidu.com/jquery/1.7.1/jquery.min.js "type=" Text/javascript ></script> code saved, which successfully referenced the JQ library code Specific JQ Intelligent Judge how the fixed navigation bar or sidebar code is used please see the following description:

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">  

Effect Chart:

More interested readers of jquery-related content can view the site topics: "jquery Extended Tips," "jquery common Plug-ins and Usage summary", "jquery drag-and-drop effects and tips summary", "jquery table (table) Operation Tips Summary", " A summary of Ajax usage in jquery, a summary of common classic effects in jquery, a summary of jquery animation and special effects usage, and a summary of jquery selector usage

I hope this article will help you with the jquery program design.

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.