Making changes to the JavaScript menu in the SuperSite and PartnerSite

Making changes to the JavaScript menu in the SuperSite and PartnerSite

Unique InfoTech allows you to customize the JavaScript menus in your SuperSite or PartnerSite, such that you may modify/remove particular sub-menus, or even remove a particular menu altogether.

To make changes in the JavaScript menu in the Supersite and PartnerSite

  1. Login to your SuperSite or PartnerSite Admin Area. 1

  2. Under the My Language SuperSites/PartnerSites section, click on Manage Site besides the Language SuperSite/PartnerSite, where you wish to make changes to the menu.

  3. Under the Edit Main Menu section, click on Edit Menu. This will open the Menu_data.js file for modification.

    Note

    The Menu_data.js file contains the various Menu text as well as their links. On the other hand, the Menu_style.js file contains all the style elements of your JavaScript Menu. So if you need to simply make modifications to how the menu is displayed, then you need to only edit Menu_style.js file. 2

  4. While the left-hand side textbox displays the Original Content, your modifications need to be submitted into the right-hand side textbox (titled Your Content).

    Note
    • It is recommended that while making modifications to the menu data, select the Lock Scroll checkbox. This scrolls both the Original Content as well as the Your Content textboxes simultaneously, such that you can easily review the original SuperSite/PartnerSite content while you are modifying it.

    • If you wish to reduce the number of times you have to scroll through the textboxes, you may click on the Increase Size link.

    For example, if you wish to conceal the Business solutions tab from your Supersite, you need to simply comment the highlighted line in the Your Content textbox:-

    • Original Code

      with(milonic=new menuname("Main Menu")){

      position="relative";

      alwaysvisible=1;

      orientation="horizontal";

      style=menuStyle;

      menuwidth=760;

      aI("image=getImage.php?src=menu-start-cover.gif;imagepadding=0;imageposition=left;");

      aI("align=center;showmenu=Domain Names;text=  Domains   ;");

      aI("align=center;showmenu=Linux Hosting;text=Linux Hosting;");

      aI("align=center;showmenu=Windows Hosting;text=Windows Hosting;");

      aI("align=center;showmenu=Business Email;text=   Email    ;");

      aI("align=center;showmenu=Site Builder;text=Website Builder;");

      aI("align=center;showmenu=Business Solutions;text=Business Solutions;");

      aI("align=center;showmenu=Resellers;text=Resellers;image=getImage.php?src=menu-end-cover.gif;");

    • Modified Code

      with(milonic=new menuname("Main Menu")){

      position="relative";

      alwaysvisible=1;

      orientation="horizontal";

      style=menuStyle;

      menuwidth=760;

      aI("image=getImage.php?src=menu-start-cover.gif;imagepadding=0;imageposition=left;");

      aI("align=center;showmenu=Domain Names;text=  Domains   ;");

      aI("align=center;showmenu=Linux Hosting;text=Linux Hosting;");

      aI("align=center;showmenu=Windows Hosting;text=Windows Hosting;");

      aI("align=center;showmenu=Business Email;text=   Email    ;");

      aI("align=center;showmenu=Site Builder;text=Website Builder;");

      /* aI("align=center;showmenu=Business Solutions;text=Business Solutions;"); */

      aI("align=center;showmenu=Resellers;text=Resellers;image=getImage.php?src=menu-end-cover.gif;");

  5. On completing the modification, click Save Changes. The changes you have made will be reflected on your SuperSite or PartnerSite immediately.

Note
  • You will have to repeat the above process if you have configured multiple languages for your SuperSite or PartnerSite.

  • If you are not satisfied with the modifications and wish to revert to the earlier setting, from the Edit view, click Reset to Default.

  • The above process will not be applicable for SuperSite 2, since it does not have any JavaScript menu. Instead, you need to modify the header HTML for your SuperSite 2. 3