- Create Account

Menu scrolling control

Forums > Cascading Popup Menus: Help > Menu scrolling control
Author
Message

1) valley decor Group: Members
Posts: 6 Joined: 20 Oct 2007 Location: texas IP: 66.68.--.--
Hi All!!

I was wondering if there was a way to start the menu scrolling when the first link gets to the top of the page and then start scrolling with the window. I have it fixed right now where i want it, but some my pages are long and i would like to to follow the visitor down the page with home position of the menu being set where I currently have it.Not using frames using Actinic v8.

2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.118.--.--
See the "pop_extras.js" file shipped with the script download from this site, there's a plugin to do just that :).

-  Angus.

3) valley decor Group: Members
Posts: 6 Joined: 20 Oct 2007 Location: texas IP: 66.68.--.--
Hi Angus,

I got the menu anchored as explained in the help Syntax document. The only thing is that the submenus seem to be overlapping and not coming out from the side like before the menu was anchored.

startMenu(menuname, true, 'window.page.elmPos("home").x','window.page.elmPos("home").y + 147', breadth, style, frame, show);

4) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.118.--.--
The elmPos only need to be on the root menu, the others should keep their normal positions/offsets :).

Good  luck - Angus.

5) valley decor Group: Members
Posts: 6 Joined: 20 Oct 2007 Location: texas IP: 66.68.--.--
Hi Angus,

Forgive me but how do I apply that just tot e root menu??

6) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 202.137.--.--
As I said above, the startMenu('root'....); line should have those positions in it. All other menus should have plain old numerical offsets as they do in the demo script.

Good luck - Angus.

7) valley decor Group: Members
Posts: 6 Joined: 20 Oct 2007 Location: texas IP: 57.77.--.--
Hi Angus,
In norcascade_pop_data.js the star tmenu is

startMenu('root', true, 'window.page.elmPos("home")'.x,'window.page.elmPos("home").y + 20', breadth, style, frame, show);

The menu dissapears and only one menu object is shown actually one submenu. This over-rides these variables below? Do i need subM in the parameters above maybe??

var firstorientation = true;
var firstleft = -370;
var firsttop = 320;
var firstbreadth = 150;
var firstcharsize = 150;
var firstautowidth = false;
var firsthpadding = 0;
var firststyle = Level1
var firstframe = '';
var firstshow = false;
var secondorientation = true;
var secondleft = 147;

Thanks!!

Regards, Bob


8) valley decor Group: Members
Posts: 6 Joined: 20 Oct 2007 Location: texas IP: 66.68.--.--
OK, i am at a loss here.
The menu works fine, as long it is not anchored. I never added items to the menu, per say, norcascade.js i believe does this when i add a new subsection to actinic.

Please explain what i am doing wrong here. the line in post 3 is in norcascade pop.data.js. I tried fiddling around naming it root where menuname is, but still no luck.

www.valleydecoratingdepot.com

9) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.118.--.--
From a brief look at the script it seems that positioning is built into the actinic integration code. All you should need to do is set the "targetloc" variable in the script to the name of the <a id="name_goes_here" name=" id="name_goes_here"></a> element in the document, and it should work OK from there!

- Angus.

10) valley decor Group: Members
Posts: 6 Joined: 20 Oct 2007 Location: texas IP: 66.68.--.--
Hi Angus,

Thanks!!!!! It Worked!!!!!!!!!

Do you know of a fix for Opera?? It is too high, but it is anchored though.
Best regards,

11) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 203.118.--.--
Hmm, that's annoying :(. With the standard script you can mix and match positions and anchors for the X and Y positions, often it helps to only use an anchor for the Y position. Otherwise, try finding where it builds the position string and adding this:

+ (isOp ? 10  : 0)

after it within the string, which will add 10px to Opera browsers only.

- Angus.

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.