I need to set my pages to reload/refresh when they're resized -- I'm using Project VII's Snap Layers to show a sub menu on mouseover of the main button. It works perfectly, except when you change the page size then the menu appears in the wrong place until you refresh the page. I'd like the page to refresh automatically when you resize the window. I've tried a sample I found online but even though it worked in the samples, it didn't work in my page. This example is below:
in the body tag: onResize="window.location.href = window.location.href;"
My guess is that you have the drop down menu assigned with "absolute" positioning instead of "relative"... Absolute sets it at a specific x,y position from the left and top, whereas relative keeps its location relative to it's "parent", so when the parent link is moved as a result of the page resize, the sub-menu will move along with it.
If you're still not sure, I understand Project VII has tech support in place to work with you on issues with their menu systems which may be more helpful than here as they've created the menu and would be more familiar with it's settings...
Hope that helps,
I would suggest not using Snap Layers for this. Refreshing a page simply to re-align a dropdown menu is clunky to say the least.
Try PVII's CSS Dropdown menu tutorial instead