Mojoportal learning-using the superfish menu for document translation

Source: Internet
Author: User

Sorry for the poor translation.

 

You can use jquery superfish in the mojoportal System for site menus and page menus.

To use superfish, you need to add the usesuperfish = true attribute to your menu control.

1. Add some JavascriptCodeTo your layout. Master File

2. Copy the corresponding CSS code from stylemenu.css in the mitchinson-earthor mitchinson-earthy-alttemplate.

"Layout. Master File

Add the following code to the layout. Master File and place it on the </form> label.

<Portal: sitescript id = "superfish" runat = "server" scriptrelativetoroot = "/clientscript/jqmojo/mojosuperfish. js"/>
<SCRIPT type = "text/JavaScript">
$ (Document). Ready (function (){
$ ("Ul. SF-menu"). supersubs ({minwidth: 12, maxwidth: 27, extrawidth: 1}). superfish (
{Pathclass: 'current', pathlevels: 0, speed: 'quick '});
});
</SCRIPT>

Sample Code of the site Menu Control:

<Portal: sitemenu id = "sitemenu1" runat = "server"
Usetreeview = "false" hidemenuonsitemap = "false" usesuperfish = "true"
Direction = "horizontal" toplevelonly = "false"/>

"""》Stylemenu.css

For the horizontal menu, copy the corresponding file from the mitchinson-Earthy template.

For portrait menus, copy the appropriate file from the mitchinson-earthy-alt1 Template

 

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.