jquery Professional navigation menu special effects code sharing _jquery

Source: Internet
Author: User

This example describes the jquery professional pull-down menu effects. Share to everyone for your reference. Specifically as follows:
This is based on jquery implementation of the Professional Pull-down menu effects, blue-style pull-down menu is very classic, whether the site has an attractive navigation will affect the user's long stay, just like the small editor of the content of the article affect the parents visit the same time long. You should learn how to build a navigation menu of your own website style.
Run Effect chart:-------------------View effect Download source code-------------------

Tip: If you are not running properly in your browser, you can try switching browsing mode.
Key code:

Stuhover = function () {
var cssrule;
var newselector;
for (var i = 0, i < document.styleSheets.length i++) for
(var x = 0; x < document.stylesheets[i].rules.length; x+
+)
{
cssrule = document.stylesheets[i].rules[x];
if (CssRule.selectorText.indexOf ("Li:hover")!=-1)
{
 newselector = cssRule.selectorText.replace
(/li : Hover/gi, "Li.iehover");
Document.stylesheets[i].addrule (Newselector, 
cssRule.style.cssText);
}
var Getelm = document.getElementById ("Nav"). getElementsByTagName
("LI");
for (var i=0; i<getelm.length; i++) {
getelm[i].onmouseover=function () {
this.classname+= "iehover";
}
getelm[i].onmouseout=function () {
this.classname=this.classname.replace (new RegExp (" 
iehover\\b") ), "");
}
}
}
if (window.attachevent) window.attachevent ("onload", stuhover);

For everyone to share the jquery Professional pull-down menu effect code is as follows

 

The above is for you to share the jquery Professional navigation menu Special effects code, I hope you can enjoy, and apply 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.