PDA

View Full Version : Omni Slide Menu - laggy movement with short menu



hehehehe
08-27-2007, 05:03 PM
1) Script Title: Omni Slide Menu

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex1/omnislide/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 :D

Rockonmetal
08-27-2007, 05:13 PM
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:

<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:

<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...*

hehehehe
08-27-2007, 05:24 PM
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

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


<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>

Rockonmetal
08-27-2007, 05:28 PM
Ok, so if i am right the html page is blank except for the script needed for the menu...

hehehehe
08-27-2007, 05:46 PM
thx u
I go to bed now :D
see ya tomorrow :D
well, menuspeed 50 is quite good, however I will do more test
bye

hehehehe
08-28-2007, 11:23 AM
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