Link to home
Start Free TrialLog in
Avatar of PaleSaint
PaleSaint

asked on

Coolmenu on resize not working properly.

Hello the experts!

Coolmenus not so cool. :o(  I seem to be having a problem with resize. I cannot get Mozilla or IE to reposition the menu without hitting the refresh button on the browser. So the script is working, but only on demand. How do I make sure that the menu is checked all the time?

//Menu properties  
oCMenu.pxBetween=15
oCMenu.fromLeft=!bw.moz?((cmpage.x2 - 755)/2)+200:((cmpage.x2 - 775)/2)+200
//We also need to "replace" the menu on resize. So:
oCMenu.onresize="!bw.moz?((cmpage.x2 - 775)/2)+200:((cmpage.x2 - 775)/2)+200"
oCMenu.fromTop=55  
oCMenu.rows=1
oCMenu.menuPlacement=0

                                                             
oCMenu.offlineRoot=""
oCMenu.onlineRoot=""
oCMenu.resizeCheck=1
oCMenu.wait=1000
oCMenu.fillImg=""
oCMenu.zIndex=0

Your Expert knowlage will be most appreciated.

Cheers,

Julie


Avatar of fre77
fre77

Try this event:
window.onresize = RebuildMenuOrSomething;
Avatar of PaleSaint

ASKER

For those who would like to know sorted out my wn problem.

//Menu properties  
oCMenu.pxBetween=10
oCMenu.fromLeft=!bw.moz?((cmpage.x2 - 755)/2)+200:((cmpage.x2 - 775)/2)+200
oCMenu.fromTop=56  
oCMenu.rows=1
oCMenu.menuPlacement="left"
//We also need to "replace" the menu on resize. So:
oCMenu.onresize="oCMenu.fromLeft=!bw.moz?((cmpage.x2 - 775)/2)+200:((cmpage.x2 - 775)/2)+200"

Note the change in the last line to call the menu and the left placements an voila! Not so hard is it! ;o)

Avatar of b0lsc0tt
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup Zone:
    PAQ with points refunded

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

b0lsc0tt
Experts Exchange Cleanup Volunteer
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial