Results 1 to 6 of 6

Thread: Omni Slide Menu - laggy movement with short menu

  1. #1
    Join Date
    Aug 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Talking Omni Slide Menu - laggy movement with short menu

    1) Script Title: Omni Slide Menu

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...lide/index.htm

    3) Describe problem:

    when I have only a very short menu, just a few links on it.
    and "menuspeed" is high, about 200, the movement of the menu is so laggy, how can I fix it ?
    I want it to move slow, that why I want menuspeed is 200 or above, it's very important.

    thanks very much
    Last edited by hehehehe; 08-27-2007 at 05:12 PM.

  2. #2
    Join Date
    Jan 2007
    Location
    The stage
    Posts
    568
    Thanks
    23
    Thanked 6 Times in 6 Posts

    Default

    Ok, lag can be for many reasons...


    1. Your Internet connection might be slow...
    2. The amount of code also affects it *the more code the more the browser has to load*
    3. I can't think of any others but I will!

    basicly I need to see the code of that page...

    Oh and if you have any javascript or css that can be made external do it!

    if you don't know how to... heres how to:
    JAVASCRIPT:
    Code:
    <script type="text/javascript" src="javascript.js"></script>
    Put that in the page and the location where it was before... Then take the javascript code and copy and paste that into a file javascript.js!
    CSS:
    Code:
    <link rel="stylesheet" href="default.css" />
    Put the css code into default.css and into the head... That should help to speed up some stuff..

    But over all I need to see the code of that page *unless its top secret...*

  3. #3
    Join Date
    Aug 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thank u
    my internet connection is good, don't worry
    the menu only has a few items
    I'm sure that it's simple

    here is the code of the menuItems.js
    Code:
    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:'50%',    // 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:300,    // Speed of menu sliding smaller is faster (interval of milliseconds)
    menupause:200,   // How long menu stays out when mouse leaves it (in milliseconds)
    d_colspan:3,     // Available columns in menu body as integer
    allowtransparent:true, // true to allow page to show through menu if other bg's are transparent or border has gaps
    barwidth:0,     // bar (the vertical cell) width
    wrapbar:false,    // extend and wrap bar below menu for a more solid look (default false) - will revert to false for top menu
    hdingwidth:0,  // heading - non linked horizontal cells width
    hdingheight:10,  // 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:0,   // inner border-width used for this menu
    /////////////////////////// quote these properties: /////////////////////
    bordercolor:'#0a0903', // inner border color
    borderstyle:'solid',    // inner border style (solid, dashed, inset, etc.)
    outbrdwidth:'0 0 0 0', // outer border-width used for this menu (top right bottom left)
    	outbrdcolor:'#0a0903',  // outer border color
    outbrdstyle:'solid',     // outer border style (solid, dashed, inset, etc.)
    barcolor:'#0a0903',        // bar (the vertical cell) text color
    barbgcolor:'#0a0903',   // 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:'arial',      // menu font
    fontsize:'80%',          // express as percentage with the % sign
    hdingcolor:'',      // heading - non linked horizontal cells text color
    hdingbgcolor:'#0a0903',  // 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:'center',     // 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:'<img src="images/links_g_01.jpg"/>', // bar text (the vertical cell) use text or img tag
    the code of the page has nothing on it, I just put this

    Code:
    <script src="scripts/mmenu.js" type="text/javascript"></script>
    <script src="scripts/menuItems.js" type="text/javascript">
    
    /***********************************************
    * Omni Slide Menu script - © John Davenport Scheuer: http://home.comcast.net/~jscheuer1/
    * 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
    ***********************************************/
    
    </script>
    Last edited by hehehehe; 08-27-2007 at 05:48 PM.

  4. #4
    Join Date
    Jan 2007
    Location
    The stage
    Posts
    568
    Thanks
    23
    Thanked 6 Times in 6 Posts

    Default

    Ok, so if i am right the html page is blank except for the script needed for the menu...
    Last edited by Rockonmetal; 08-27-2007 at 05:46 PM.

  5. #5
    Join Date
    Aug 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thx u
    I go to bed now
    see ya tomorrow
    well, menuspeed 50 is quite good, however I will do more test
    bye

  6. #6
    Join Date
    Aug 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    help me, how can I use rollover image on the menu ?

    edit: ah, maybe I almost find out everything, thanks !!!
    I will tell you later if I'm successful
    Last edited by hehehehe; 08-28-2007 at 01:04 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •