Forums » Customize

expanding menu -allign right

geester
UK
2009-02-06 20:10:35
Permalink Post
 

hi just wondered if its possibly to edit the expanding menu so that the menu is alligned to the right. I notice that when i do this the text flies in from left to right when I set this.

Vaska A
UNITED STATES
2009-02-06 20:46:33
Permalink Post
 

I don't think so actually...it's kind of a built-in Jquery thing. But, you might try removing the speed of the transition completely so the left right thing won't appear anymore.

gartenstuhl
GERMANY
2009-08-08 17:20:35
Permalink Post
 

hi, same problem with align center... is there now way keep the speed motion and a right fly from the top to the button?

Vaska A
UNITED STATES
2009-08-10 08:27:08
Permalink Post
 

You could research the Jquery forum for all the possibilities.

PBCrosby
SPAIN
2009-09-07 21:22:20
Permalink Post
 

Hey Geester - how did you align right in the first place?

Vaska A
UNITED STATES
2009-09-07 21:53:10
Permalink Post
 
  1. #menu .container { text-align: right; }
benbusch
UNITED STATES
2010-07-24 21:54:46
Permalink Post
 

Thought I'd dig this up again.

Any news on making right-align expanding menus work?

Thanks!

http://whoisbenbusch.com/

benbusch
UNITED STATES
2010-07-24 21:54:47
Permalink Post
 

Thought I'd dig this up again.

Any news on making right-align expanding menus work?

Thanks!

http://whoisbenbusch.com/

arsondpi A
GREECE
2010-07-25 09:13:50
Permalink Post
 

did you read the thread?

lx
GERMANY
2011-06-18 14:20:52
Permalink Post
 

I picked up this code by ntlk in a neighbour thread --> http://www.indexhibit.org/forum/thread/761/5/#post_50886 and altered it to retain the toggle behaviour.

  1. /*    Expanding Menus for Indexhibit when Text is not aligned to the left
  2.  *        uses jquery
  3.  *
  4.  *    Created by Ross Cairns  Mar 2008
  5. */

var last;
function expandingMenuR(num) {
var speed = 200;

var item_title = $("#menu ul").eq(num).children(":first");
var items = $("#menu ul").eq(num).children().filter(function (index) { return index > 0; });

/* hide items if not active */
if (items.is(".active") == false) {
    items.hide();
}

/* add click functions + pointer to title */
item_title.css({cursor:"pointer"}).toggle(
    function () {
        items.slideDown(speed);
        if (last != undefined && last != items) {
            last.slideUp(speed);
        }
        last = items;
    }, function () {
            items.slideUp(speed);
        }
)
}

I'm not a programmer and haven't thoroughly tested this, though. If it should be faulty, then better stick to ntlk's version.

lx
GERMANY
2011-06-20 14:19:29
Permalink Post
 

Just before people get confused: I added "R" to the function name, because I was testing several scripts simultaniously. So either call the function with this altered name in the index.php or simply change the function name in the javascript above back to "expandingMenu(num)".

Showing 1 - 11 of 11 posts in Forum > Customize > expanding menu -allign right
 

You need to be logged in to post.