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


JavaScript

Avatar of undefined
Last Comment
Computer101
Avatar of fre77
fre77

Try this event:
window.onresize = RebuildMenuOrSomething;
Avatar of PaleSaint
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
b0lsc0tt
Flag of United States of America image

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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
JavaScript
JavaScript

JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.

127K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo