View Full Version : Omni Slide Question

03-23-2007, 09:52 PM
I'm trying to implement Omni Slide in an ASP.Net application. I have the menu working....almost. I want the menu to be a top item, which it is, but regardless of how I set the properties it is positioned in the upper left hand corner of the screen and only 1/2 of it is visible.


03-23-2007, 10:02 PM
Are you using the:

menuleft:"50%", // For top menu only, initial left position. May be an unquoted number referring to pixels or a quoted percentage value.ex: menuleft:400, - for pixels, no units or quotes used or menuleft:'45%' - quotes and percent sign for % value


03-23-2007, 10:46 PM
I have the following properties set - pretty much straight from your demo. But what I'm getting is shown in the attached file.

id:'menu1', //use unique quoted id (quoted) REQUIRED!!
///////////// no quotes for these properties (numbers represent pixels unless otherwise noted): ////////////
user_defined_stylesheet:false, //if true, prevents script from generating stylesheet for this menu
user_defined_markup:false, //if true, prevents script from generating markup for this menu
design_mode:false, //if true, generates a report of the script generated/intended styles and markup (as a design aid)
menutop:160, // initial top offset - except for top menu, where it is meaningless
menuleft:"45%", // initial left offset - only for top menu, as pixels (can be a quoted percentage - ex: '50%')
keepinview:80, // Use false (for not static) - OR - true or numeric top offset when page scrolls
menuspeed:20, // Speed of menu sliding smaller is faster (interval of milliseconds)
menupause:500, // How long menu stays out when mouse leaves it (in milliseconds)
d_colspan:3, // Available columns in menu body as integer
allowtransparent:false, // true to allow page to show through menu if other bg's are transparent or border has gaps
barwidth:20, // bar (the vertical cell) width
wrapbar:true, // extend and wrap bar below menu for a more solid look (default false) - will revert to false for top menu
hdingwidth:210, // heading - non linked horizontal cells width
hdingheight:25, // heading - non linked horizontal cells height
hdingindent:1, // heading - non linked horizontal cells text-indent represents ex units (@8 pixels decimals allowed)
linkheight:20, // linked horizontal cells height
linktopad:3, // linked horizontal cells top padding
borderwidth:2, // inner border-width used for this menu
/////////////////////////// quote these properties: /////////////////////
bordercolor:'#000080', // inner border color
borderstyle:'solid', // inner border style (solid, dashed, inset, etc.)
outbrdwidth:'0ex 0ex 0ex 0ex', // outer border-width used for this menu (top right bottom left)
outbrdcolor:'lightblue', // outer border color
outbrdstyle:'solid', // outer border style (solid, dashed, inset, etc.)
barcolor:'white', // bar (the vertical cell) text color
barbgcolor:'#4d6814', // bar (the vertical cell) background color
barfontweight:'bold', // bar (the vertical cell) font weight
baralign:'center', // bar (the vertical cell) right left or center text alignment
menufont:'verdana', // menu font
fontsize:'90%', // express as percentage with the % sign
hdingcolor:'white', // heading - non linked horizontal cells text color
hdingbgcolor:'#4d6814', // heading - non linked horizontal cells background color
hdingfontweight:'bold', // heading - non linked horizontal cells font weight
hdingvalign:'middle', // heading - non linked horizontal cells vertical align (top, middle or center)
hdingtxtalign:'left', // heading - non linked horizontal cells right left or center text alignment
linktxtalign:'left', // linked horizontal cells right left or center text alignment
linktarget:'', // default link target, leave blank for same window (other choices: _new, _top, or a window or frame name)
kviewtype:'fixed', // Type of keepinview - 'fixed' utilizes fixed positioning where available, 'absolute' fluidly follows page scroll
menupos:'top', // set side that menu slides in from (right or left or top)
bartext:'MY MENU', // bar text (the vertical cell) use text or img tag

03-24-2007, 02:35 AM
That code works. However, where you've placed the link code on the page could be a factor as could any unusual styles for the body, html or other selectors. To look into both of these, I would need a link to your page.

03-24-2007, 12:39 PM

Thanks a lot for trying to help on this. Unfortunately I cannot put this page on a public site for you to see unless I get this resolved. I have attached the generated html. Remember this is an ASP.Net application so the html is pretty ugly. Hopefully this will be enough for you to have some ideas. I did try commenting out the pages style sheet, and tried adding a blank table width 100% at the top, but the same issue kept occuring.


03-24-2007, 01:32 PM
Near as I can figure is that your DOCTYPE is throwing the rendering into quirks mode. Try it with this DOCTYPE:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">

03-24-2007, 01:55 PM
You got it, Thanks!!!:) :)