View Full Version : Columns in Omnislide

01-24-2008, 10:58 PM
I'm using John Scheuer's Omnislide navbar (downloaded from this site (http://www.dynamicdrive.com/dynamicindex1/omnislide/index.htm)), but I'm having difficulties figuring out the syntax for columns within the navbar.

In his demo he shows how to have three columns within the navbar. His link above demonstrates. However I want just two columns. Just changing the "d_colspan:3," to "d_colspan:2," creates a mess throughout. You can see what I mean (http://www.morleychalmers.com/Version2.html) by clicking on "Dharma Talks". Click on "The Portal" and you'll see the 3 column version behaving perfectly.

Here's the menuItems code:

["Series"], //create header
["The Quest", "http://www.loisimages.com", "_new"],
["Dukkha", "http://www.statestreetbluesstroll.com/","_new"],
["The Eightfold Path", "http://www.mediajazzbynight.com/", "_new"],

["Navigation", "", "", 2, "no"], //create two column header w/ 2 and 1 column members, requires d_colspan:3
["", "", "", 1],
["<<< Previous", "http://www.google.com/", "_new", 1, "no"], //create three column row, requires d_colspan:3
["Next >>>", "http://www.altavista.com/", "_new", 1],
["First and Current", "", ""], //create header
["The Very First Talk", "http://home.comcast.net/~ansiguy", "_new"],
["The Current Talk", "http://home.comcast.net/~jscheuer1/side", "_new"] //no comma after last entry

What am I missing? Assistance appreciated.

01-24-2008, 11:02 PM

Please: Post questions on DD scripts in the Dynamic Drive scripts help section.

I'll have a look at your question, and if I see a solution, or have an idea, I'll let you know.

01-24-2008, 11:10 PM
If you have d_colspan:2, you cannot have:

["Navigation", "", "", 2, "no"], //create two column header w/ 2 and 1 column members, requires d_colspan:3
["", "", "", 1],

Use this menu from the demo as a template for a two column menu (d_colspan:2 is the default, so need not be explicitly set):

menu[3] = {
id:'menu3', //use unique quoted id (quoted) REQUIRED!!
bartext:'RIGHT MENU',
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

Look over:


for additional information.

01-25-2008, 06:09 PM
Thanks, it works. The whole structure is now in place. Next is to get the balance of the page in place and then populate the URLs.

The idea of this site is to publish a weekly text file with the Omnislide navbar at the top of each talk, enabling the user to jump forwards and back through the series, or to jump laterally to another region of the site. I suspect this navbar will serve the purpose very well indeed.

Much thanks for your help.