Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Custom Category Links


PickleMan

Recommended Posts

Instead of using the standard tree design for the categories, I found an example Javascript code on the internet but had no clue on how to implement it into categories.php:

<script language="JavaScript1.2">
mymenu = new POTMenu
// Defines the size of the main menu items, width and height
mymenu.mainmenuitemsize(137,15)
// Defines the size of the sub menu items, width and height
mymenu.submenuitemsize(152,15)
// Defines the position of the sub menus in relation to the parent
mymenu.submenuplacing(0,0)
// Left width, right width and height of the top and bottom of the border
mymenu.mainborderdimensions(1,1,1)
// These lines are for the sub menu borders
mymenu.subborderdimensions(1,1,1)
// Main menu cell color
mymenu.mainmenucolor("#F0F0F0")
// Sub menu cell color
mymenu.submenucolor("#F0F0F0")
// Centers text for Netscape 4.7
mymenu.netscapeadjust(3,3)
// Do you want to "hide" (SELECT menus, OBJECT tags) when in the menu
mymenu.hideobjects(true,true)
// This line is required here
mymenu.startMenu()
// Define the main menu.
mymenu.addMenu("home","HOME", "default.asp")
mymenu.addMenu("main","MAIN", "#")
/*  */
mymenu.addMenu("products","PRODUCTS", "categories.asp")
mymenu.addMenu("help","HELP", "#")
mymenu.addMenu("affiliates","AFFILIATES", "affiliate.asp")
mymenu.addMenu("search","SEARCH", "search.asp")
mymenu.addMenu("checkout","CHECKOUT", "cart.asp")
// This line is required after the main menu is defined.
mymenu.showMainMenu()
// Define the sub menus
mymenu.addSubMenu("main", "", "ABOUT US", "about.asp")
mymenu.addSubMenu("main", "", "HELP", "#")
mymenu.addSubMenu("main", "", "SERVICES", "#")
mymenu.addSubMenu("main", "", "CONTACT", "#")
mymenu.addSubMenu("main", "", "EMAIL", "mailto:[email protected]")
// Delete these 7 lines and the corresponding lines above if you 
// don't want an automatically generated popout menu.
mymenu.addSubMenu("products", "products8", "O Computer Parts", "categories.asp?cat=8");
mymenu.addSubMenu("products", "products9", "O Printers and Scanners", "categories.asp?cat=9");
mymenu.addSubMenu("products8", "", "O Peripherals", "products.asp?cat=3");
mymenu.addSubMenu("products8", "", "O Systems", "products.asp?cat=1");
mymenu.addSubMenu("products9", "", "O Printers", "products.asp?cat=4");
mymenu.addSubMenu("products9", "", "O Scanners", "products.asp?cat=2");
mymenu.addSubMenu("help", "faq", "O FAQ", "#")
mymenu.addSubMenu("help", "tutorials", "O TUTORIALS", "#")
mymenu.addSubMenu("faq", "", "O COMPATIBILITY", "#")
mymenu.addSubMenu("faq", "", "O DHTML MENUS", "#")
mymenu.addSubMenu("faq", "", "O GRAPHICS", "#")
mymenu.addSubMenu("faq", "", "O LICENSE", "#")
mymenu.addSubMenu("tutorials", "", "O TEMPLATE SET UP", "#")
mymenu.addSubMenu("tutorials", "", "O INCLUDE PAGES", "#")
mymenu.addSubMenu("tutorials", "navigation", "O NAVIGATION", "#")
mymenu.addSubMenu("navigation", "", "O FP NAVIGATION", "#")
mymenu.addSubMenu("navigation", "", "O DW NAVIGATION", "#")
mymenu.addSubMenu("navigation", "", "O GL NAVIGATION", "#")
// This line is required after all menu definitions are finished
mymenu.showMenu()
</script>

Any help would be much appreciated.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...