EnterRegister NowHomeSign InLinksFree MenuUseful FunctionsChange StyleDevelopers GuideDownloadContact Us
Home
Sign In
Cool Links
Free Menu
Useful Functions
Change Style
Developers Guide
Download
Contact Us
HomeLinksContact Usown menu1-st Pop-Up Menu Builderright mouse clickFree MenuFunctionsStyleGuide

Developer's Guide

  The main advantage of this menu, that you can set any action on any item of the menu. Many useful functions for your menu can be found here. Simply adapt them for your site and insert into your menu, then press button Insert Links. If you need to insert your own function on any item of the menu, simply insert a call of your function for the given item:

  Also for controlling of a view of the menu special methods and properties are given to you. Applying them in your functions you receive unlimited opportunities on interaction with your visitors.

Variables

standmenu - logic variable. Determines what menu to show: your or standard. At standmenu=false your menu will be shown, at standmenu=true - standard menu for a browser of the visitor will be shown.

vclinks7 - if the visitor has clicked the right button of the mouse above the link, then vclinks7 will contain the address of the link, else empty line.

objunmenu - object above which there was a right click of the mouse. If the visitor has clicked above a picture objunmenu.tagName == "IMG", if above the link objunmenu.tagName=="A", if above a field of input of the information objunmenu.tagName == "INPUT" or objunmenu.tagName == "TEXTAREA", etc.

lastrmcmenu - number of last shown menu. Used to show different menus for different elements.

currentrmcmenu - number of current menu. Used to show different menus for different elements.

document.getElementById("rmcmenu") - object of the menu. For example, add item to the menu it is possible so:

Methods

itsamemenu(event) -
shows the menu on the right click of the mouse.

clearAll(event) -
hides the menu on the right click of the mouse.

chstyle(SelectorText,Parameter,NewValue)
- change style of the menu: color, width, a font, etc. For example:
chstyle("#rmcmenu","color","DARKVIOLET")
- changes color of the text the main menu on DARKVIOLET.
chstyle("#rmcmenu .appear","color","DARKVIOLET")
- changes color of the text of a submenu on DARKVIOLET.
chstyle("#rmcmenu A","color","DARKVIOLET")
- changes color of links in the menu on DARKVIOLET.
chstyle("#rmcmenu","background","Yellow")
- changes color of a background the main menu on Yellow.
chstyle("#rmcmenu .appear","background","Yellow")
- changes color of a background of a submenu on Yellow.
chstyle("#rmcmenu .above","color","DARKORANGE")
- changes color of the text of the selected cell on DARKORANGE.
chstyle("#rmcmenu .above","background","LIME")
- changes color of a background of the selected cell on LIME.

Functions

  You can interfere to process of functioning of the menu to add the functionality necessary to you. In the module special names for functions are reserved. If these functions will be found in your script on page, they will be called during the certain moments. Simply create these functions and insert into them the action necessary to you.

Reserved Functions:

callrmcmenu() - called each time at click by the right button of the mouse before to show the menu. In this function you can change the menu on different elements.

rmcdisabled() - called, if is revealed, that any program blocks the right click of the mouse and correct show of your menu is impossible. In the module of the menu there are special means for a deceit of such programs and such programs as Pop-Up Blockers and plugins for Internet Explorer (such Maxthon) can't stop this menu. But it is possible, that such programs exist or will appear in the future, and for this purpose this function is stipulated. In this function it is recommended show the message to the visitor and if would be desirable, remove images. Example:

rmcenabled() - called, if the programs, blocking the right click of the mouse, is not revealed, and your menu on right mouse click enabled. In this function you can load valuable graphics on page.

This page under construction. In near future many examples and helpful information will be added.

Use and Enjoy!
Home  |  Sign In  |  Cool Links  |  Free Menu  |  Functions  |  Style  |  Guide  |  Download  |  Contact Us
Copyright © 2004-2007 ReMenu.Com