[Pro] Scripty accordian menu speed and control

I have a scripty accordian menu set up a sample of which is here:
http://www.adevlinvisual.com/menutester.html

Is there a way to control the speed of the movement as well as to stop the apparent extra shuffle that seems to occur and the somewhat quirky behaviour of the menu items?
I realise that there have been a few other threads relating to scripty accordian but none appear to relate to this issue.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I was thinking that maybe it could be something to do with the response time to the mouseover which might be useful to control the response.
Not sure if anyone had had the chnce to look at this at all. I’d really appreciate any inputs as I like the action, the effect and the structure but the slightly abberant behaviour is causing the organisation I put it together for a slight bit of hassle.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Try using the click rather than the mouseover event. That can be very twitchy. The speed is hard-coded into the Action, sorry.

Walter

On Oct 12, 2011, at 11:17 AM, tonzodehoo wrote:

I have a scripty accordian menu set up a sample of which is here:
http://www.adevlinvisual.com/menutester.html

Is there a way to control the speed of the movement as well as to stop the apparent extra shuffle that seems to occur and the somewhat quirky behaviour of the menu items?
I realise that there have been a few other threads relating to scripty accordian but none appear to relate to this issue.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Just by chance I came across this menu which is working as I’d liked the scripty accordian to work on my menu tester link.
Just wondering how the same control can be recreated in scripty accordian?

http://www.altagamma.it/sezione1.php?Lingua=ing


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I think that if you used H styles and Divs you would get on a lot better with ScriptyAccordion

http://www.deltadesign.co/fw_examples/scriptyaccordion.html

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hello David, Thanks for your advice. How do I implement H styles and Divs and would they give the more consistent behaviour on mouseover that I am trying to achieve?
I’ve added the click version of the menu to the menutester page and it does work fine but I really would like to try and achieve the end result as the altagamma website demonstrates.
Let me know any thoughts at all.
Cheers for now


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

There are always going to be issues when using mouseover as invariably the accordion section appears under the mouse at it expands.

This is a quick version with H3 and Divs http://deltadesign.co/fw_examples/scriptyaccordion2.html

The example that you linked to I think uses a CSS method - but I could be wrong.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks for that.
I guess I’m curious as to how to achieve the same level of control the altagamma page has with its menu. Is it something which can be built into the scripty accordion do you think?
The easy option is for me just to make it click rather than mouseover but its not that I’m wanting to create problems or more work for myself but more that I’d like to learn how to achieve the menu as I’d envisaged it which is what I see on the altagama site.
How can I affect the behaviour characteristics to get it to run more smoothly?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The example you showed is not using any animation at all, so you could “roll your own” version of the Accordion effect using the Protaculous Action. First set your menu content up along the same lines as a ScriptyAccordion:

header
	div
		p
		p
		p
header
	div
		p
		p
etc.

The idea being that if you have a group of sub-options after a major option, you put those sub-options inside an inline HTML box (div) in order to group them together.

All of this should be nested within a single HTML box, and that’s the parent element that drives the whole effect. In this example, I’ve assumed you named that box (using the Inspector’s Title field) ‘menu’. If you called it something else, then you must change the code example below to match. I’ve further set this to work with h3 tags for the main menu elements, and p tags (normal HTML text) for the sub-menu elements. All of this is adjustable, as long as the main listings and sub-listings are different HTML tags. You can certainly style them to appear identical, they only have to be different at a code level.

Apply Protaculous to the page, and choose prototype-packed from the Library picker. Then click on the top Function Body button and paste in the following code:

var heads = $$('#menu > h3');
var subs = $$('#menu > div');
subs.invoke('hide');
heads.invoke('observe','mouseover',function(evt){
	subs.invoke('hide');
	if(this.next('div')){
		this.next('div').show();
	}
});

Believe it or not, that’s all you need to duplicate the look and feel of your example.

Walter

On Nov 4, 2011, at 5:41 AM, tonzodehoo wrote:

Thanks for that.
I guess I’m curious as to how to achieve the same level of control the altagamma page has with its menu. Is it something which can be built into the scripty accordion do you think?
The easy option is for me just to make it click rather than mouseover but its not that I’m wanting to create problems or more work for myself but more that I’d like to learn how to achieve the menu as I’d envisaged it which is what I see on the altagama site.
How can I affect the behaviour characteristics to get it to run more smoothly?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks for your help with this.
I’ve tried setting it up but I think my issue is to do with the first part of setting up the header/div/p structure and how the inline html items affect the structure when I insert them and then paste in the sub-listings.
I have the p tag set up but it doesn’t appear as an option when I go to apply it to the sub-listings. I tried setting the sub-listings up using a style which I had already been using for the scripty accordian set up, and though the sub menu items are concealed in the main menu when previewed then there is no motion on mouseover.
I’m fairly sure I’ve set up the protaculous stuff and referenced the correct files in the code.

Sorry to be a pain as I had hoped that I had known what I was doing here!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Here’s an example document:

http://scripty.walterdavisstudio.com/menu/

http://scripty.walterdavisstudio.com/menu/menu.zip

Walter

On Nov 8, 2011, at 6:12 PM, tonzodehoo wrote:

Thanks for your help with this.
I’ve tried setting it up but I think my issue is to do with the first part of setting up the header/div/p structure and how the inline html items affect the structure when I insert them and then paste in the sub-listings.
I have the p tag set up but it doesn’t appear as an option when I go to apply it to the sub-listings. I tried setting the sub-listings up using a style which I had already been using for the scripty accordian set up, and though the sub menu items are concealed in the main menu when previewed then there is no motion on mouseover.
I’m fairly sure I’ve set up the protaculous stuff and referenced the correct files in the code.

Sorry to be a pain as I had hoped that I had known what I was doing here!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks for this Walter. I’ve just compared your work to what I had put together. My only mistake appears to be that I had set up the menu with indents as per a list. Once I removed them then it worked!
Everyday I’m learning something new!
Thank you so much.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options