JQ makes a good-looking navigation display

Source: Internet
Author: User

First:

When you look at the page,

After clicking "neighbor Management,

The prompt displayed on the page is equivalent to text navigation.

Implementation Method:

JS:

1 var A, B; 2 function admin_op (a, B) {3 if (B = 0) {4 history. go (0) 5 return true; 6} else {7 $ ("# Left "). children ("Div "). removeattr ('style'); // remove all Div styles under the DIV with ID = left (left in the following HTML page is not given because I placed it on another page, the truth is the same.) 8 $ ("# Editor "). hide (); 9 $ ("# Center "). load (B, function () {// here, B is a parameter passed through HTML, which is equivalent to the following html "'admin _ article_op.php 'and so on
"10 $ (" # Center "). fadein ('low'); 11 $ ("# Left "). children ("Div" ).eq(a).css ({"background": "# 09f"}); // obtain the CSS with the parameter A under the DIV with ID = left and set the style
12  }) 
13 }
14
15 }

HTML:

1 <! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <HTML xmlns = "http://www.w3.org/1999/xhtml"> 3 

 

JQ makes a good-looking navigation display

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.