DHTML Forum  

Go Back   DHTML Forum > CoolMenus > CoolMenus 3
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08.05.2006, 07:31
gnapra gnapra is offline
Neuer Benutzer
 
Join Date: 08.05.2006
Location: Singapore
Posts: 8
Default

Hi,

Please imagine .. my menu item will be looks like below:

My Level-0 menu is placed in a single row(like how it is placed above[see the top news-projects-scripts-tutorials-forums-resources-dhtmlcentral])

My Level-1 and Level-2 menus were placed in a single column(will get displayed if you select the one of the menu item on the Level-0 menu. like as top)

I have a problem when I am trying to view my mouse over dropdown menu at level-2. When I am selecting one of my menu item in level-1 which intern consists of 5 more menu items (at level-2). And instead of menu getting placed adjacent to the level-1 menu it is coming at the top of the left corner of the screen.

I have checked with the below change: oTMenu.pagecheck=0 (it is not doing the page check. hence it is solving my problem. but not able to see the menus if it goes behind the screen size)

Please help me to get out of this problem!!!!

Thanks & Regards,
Prakash.


I am not a has been I am will be.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 09.05.2006, 10:41
gnapra gnapra is offline
Neuer Benutzer
 
Join Date: 08.05.2006
Location: Singapore
Posts: 8
Default

I did debugging on the coolemenu3.js script and found that the above problem is occuring because of control is going into the infinite loop block[if(cn==5) {this.m[name].subx=0;this.m[name].suby=0;}] presented under the 'cm_getCoords()' method. Inside the infinite loop block we are simply setting the (x,y) coordinates to (0,0). Hence my menu is coming top of the left corner.

I am not able to find out why it is going into the infinite loop. If anybody can help me in this regard .. would be greatly appreciated !!!

Regards,
Prakash.



I am not a has been I am will be.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 22.05.2006, 04:20
gnapra gnapra is offline
Neuer Benutzer
 
Join Date: 08.05.2006
Location: Singapore
Posts: 8
Default

All,

Some how I can managed to fix the issue. My fix as below.

"if(l!=1 && (align==l&&align!=0) && ln==3 && cn>3){ if(topalign==1) x=lx; else x=rx; }"

added the above code segment inside the cm_getCoords() methods and under the 'if((align==2||topalign==2)&&lev1b!=3){' block.

regards,
Prakash.


I am not a has been I am will be.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT +2. The time now is 12:27.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.