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.
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.
hi, same problem with align center... is there now way keep the speed motion and a right fly from the top to the button?
You could research the Jquery forum for all the possibilities.
Hey Geester - how did you align right in the first place?
#menu .container { text-align: right; }
Thought I'd dig this up again.
Any news on making right-align expanding menus work?
Thanks!
Thought I'd dig this up again.
Any news on making right-align expanding menus work?
Thanks!
did you read the thread?
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.
/* Expanding Menus for Indexhibit when Text is not aligned to the left* uses jquery** Created by Ross Cairns Mar 2008*/
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.
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)".
You need to be logged in to post.
