The easy question first. To get rid of unwanted menus, delete their entries from the menuItems.js file. For example, to get rid of the all but the right menu, the menuItems.js file should look like so:
Code:
/***********************************************
* Omni Slide Menu script - © John Davenport Scheuer
* very freely adapted from Dynamic-FX Slide-In Menu (v 6.5) script- by maXimus
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full original source code
* as first mentioned in http://www.dynamicdrive.com/forums
* username:jscheuer1
***********************************************/
//One global variable to set, use true if you want the menus to reinit when the user changes text size (recommended):
resizereinit=true;
menu[3] = {
id:'menu3', //use unique quoted id (quoted) REQUIRED!!
bartext:'RIGHT MENU',
menupos:'right',
kviewtype:'fixed',
menuItems:[ // REQUIRED!!
//[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header
["Menu"], //create header
["Dynamic Drive", "http://www.dynamicdrive.com", ""],
["What's New", "http://www.dynamicdrive.com/new.htm",""],
["What's Hot", "http://www.dynamicdrive.com/hot.htm", ""],
["Message Forum", "http://www.dynamicdrive.com/forums", ""],
["Submit Script", "http://www.dynamicdrive.com/submitscript.htm", ""],
["Link to Us", "http://www.dynamicdrive.com/link.htm", ""],
["FAQ", "http://www.dynamicdrive.com/faqs.htm", "", 1, "no"], //create two column row, requires d_colspan:2 (the default)
["Email", "http://www.dynamicdrive.com/contact.htm", "",1],
["External Links", "", ""], //create header
["JavaScript Kit", "http://www.javascriptkit.com", "_new"],
["Freewarejava", "http://www.freewarejava.com", "_new"],
["Coding Forums", "http://www.codingforums.com", "_new"] //no comma after last entry
]}; // REQUIRED!! do not edit or remove
////////////////////Stop Editing/////////////////
make_menus();
For the other question, you should use design mode (working from the one remaining menu from above):
Code:
/***********************************************
* Omni Slide Menu script - © John Davenport Scheuer
* very freely adapted from Dynamic-FX Slide-In Menu (v 6.5) script- by maXimus
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full original source code
* as first mentioned in http://www.dynamicdrive.com/forums
* username:jscheuer1
***********************************************/
//One global variable to set, use true if you want the menus to reinit when the user changes text size (recommended):
resizereinit=true;
menu[3] = {
id:'menu3', //use unique quoted id (quoted) REQUIRED!!
design_mode:true, // Set to true to see the generated styles and markup
bartext:'RIGHT MENU',
menupos:'right',
kviewtype:'fixed',
menuItems:[ // REQUIRED!!
//[name, link, target, col . . . [SNIP!]
View/refresh the page. Once you see those, you may copy and paste one or the other or both into a copy of your page (save the original page and the original menuItems.js file just in case). The styles if used go in the head. The HTML markup (which you will be using) goes as the very first thing in the body of the new copy of the page.
Next remove design mode in this copy of the page's menuItems.js file and turn on user defined for markup (turn it on for styles too if you will be user defining them as well, here I leave user defined styles off, set to false):
Code:
/***********************************************
* Omni Slide Menu script - © John Davenport Scheuer
* very freely adapted from Dynamic-FX Slide-In Menu (v 6.5) script- by maXimus
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full original source code
* as first mentioned in http://www.dynamicdrive.com/forums
* username:jscheuer1
***********************************************/
//One global variable to set, use true if you want the menus to reinit when the user changes text size (recommended):
resizereinit=true;
menu[3] = {
id:'menu3', //use unique quoted id (quoted) REQUIRED!!
user_defined_stylesheet:false, // Set to true if you wish to override the script's stylesheet
user_defined_markup:true, // Set to true if you wish to override the script's markup
design_mode:false, // Set to true to see the generated styles and markup
bartext:'RIGHT MENU',
menupos:'right',
kviewtype:'fixed',
menuItems:[ // REQUIRED!!
//[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header
["Menu"], //crea . . . [SNIP!]
Now on the new copy of the page the script will use the markup in the new copy of the page instead of that which would be generated by the script. So you can go ahead and edit that markup to be whatever you want it to be. Once everything is set the way you want it, leave the user_defined_markup set to true and use this new page and new menuItems.js file as the basis for all of your Omni Slide pages.
Bookmarks