JQuery :: Superfish.js Show Active Page In Menu?

Sep 13, 2010

I have a simple superfish menu on my site and I'm wondering if there is a way to add a quick line that shows the 'current' page the menu is point to?

this is a wordpress site, I noticed an example [URL] i'm getting closer?!

View 1 Replies


ADVERTISEMENT

JQuery :: Superfish: Leave Sub <ul> Menu Visible When A Tag Class Is Set As Active

Sep 13, 2009

I'm using superfish for a drop down hover menu. It works perfect except I would like the sub menus to remain visible when one of the <a> tag from the menu has class="active". Here is a quick overview of the menu html:

<ul class="primary-links">
<li>
<a href="main">item parent 1</a>
<ul>

[Code]....

If the current page is main -- class='active' is automatically added to the A tag (with Drupal). If you are currently in page2, the class='active' is added to the A tag of the sub-menu. Now, how can I get the sub menu to be always displayed -- regardless of superfish, either when item parent 1 A tag is set as class='active'of the item child A tag is set as class='active'.

View 1 Replies View Related

JQuery :: Superfish - Set Active Menu Style When Submenu Expanded?

Jun 24, 2010

I'm almost done customizing the Superfish jQuery menu to fit my web site theme. I have all of the menu hover and submenu hover styles in place, but I'm having a problem with the color of the top-level menu item's font when the submenu is expanded. The active top menu item's background matches the hover color, but when I hover overa submenu item, the font color reverts back to the original (non-hovered) color. How do I get the top level menu item's color to match its hover color when the submenu is expanded?

The relevant portions of my CSS are as follows:
.sf-menu a, .sf-menu a:visited { /* visited pseudo selector so IE6 applies text colour*/
color:#8C1C39;
}.sf-menu a.sfHover {
color:#FFFFFF;
}.sf-menu li {
background:transparent;
}.sf-menu li li {
background:#FFFFFF;
}.sf-menu li li li {
background:#9AAEDB;
}.sf-menu li:hover, .sf-menu li a:hover {
color: #FFFFFF;
background:#00207B;outline:0;
}.sf-menu a:focus, .sf-menu a:active,
.sf-menu li li a:hover, .sf-menu li.sfHover {
background:#8C1C39;
color: #FFFFFF;
outline:0;
}

Attachments
TopHover.jpg
Size : 10.86 KB
Download : 505
SubHover.jpg
Size : 9.33 KB
Download : 510

View 1 Replies View Related

JQuery :: Get Superfish To Expand And Show The Current Active Link In Pathlevel 2?

Jul 20, 2010

I'd like to be able to get Superfish to expand the entire menu and show the current active link in pathlevel 2. I'm using the nav-bar style and it seems that only pathlevel 1 is visible:

[URL]

View 1 Replies View Related

JQuery :: Superfish - Menu Arrow Don't Show

Nov 20, 2010

I have problem, my superfish menu don't show arrows to sub-menu. I try to search on the forum, but I don't find something applicable. I try to disable every component on my site, put calling the function in try{} and catch the error, download new jQuery - 1.4.4, but nothing helps. I'll be very grateful for any response or idea what can be wrong.

Link to my site is here:[url] and it's "vĂ½roba karet" menu item.

View 2 Replies View Related

JQuery :: Get An Active Menu - When Page Reload Loose The Class ?

Oct 9, 2011

I would like to get an active menu but when my page reload i loose the class.

With a button it works fine but not when the page reload with a href it only works when i add a #.

View 3 Replies View Related

Jquery :: Keep Active Page Highlighted In Navigation Menu On Rollover

Oct 25, 2011

I'm building a WordPress site with a nice jQuery effect that fades/unfades images within a navigation menu on rollover. So when the mouse moves off the image, the colored image should fade back to reveal the original non-colored image. This works perfectly as-is, but client wants the active page to keep its colored/ highlighted menu image when mouse has moved off of it. The bolded line of the code is where I tried to set that up...

Code:
<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
<script type="text/javascript"><!-- this is from [URL]-->
// make nav images highlight on hover
// when the DOM is ready:
$(document).ready(function () {
// find the navigation elements and hook the hover event
$('#mainmenu li').hover(function() {
// on hovering over, find the element we want to fade *up*
var fade = $('> div', this);

// if the element is currently being animated (to a fadeOut)...
if (fade.is(':animated')) {
// ...take it's current opacity back up to 1
fade.stop().fadeTo(250, 1);
} else {
// fade in quickly
fade.fadeIn(250);
}}, function () {
// on hovering out, fade the element out
if (!is_page(current)){
var fade = $('> div', this);
if (fade.is(':animated')) {
fade.stop().fadeTo(3000, 0);
} else {
// fade away slowly
fade.fadeOut(2000);
}}});});
</script>

<ul id="mainmenu">
<li id="home">
<a href="/home"><img src="<?php bloginfo(url); ?>/wordpress/wp-content/uploads/2011/09/sara_inactive.png" alt="home" width="152" height="309" /></a>
<div>
<a href="/home"><img src="<?php bloginfo(url); ?>/wordpress/wp-content/uploads/2011/09/sara_active.png" alt="home" width="152" height="309" /></a>
</div>
</li>

WordPress should know whether the page is 'current' or not, so why doesn't this work? Currently the nav images remain highlighted when the mouse moves away. If I remove my attempt (the bolded line of code) then nav rollovers work beautifully, but active page still isn't represented with a colored nav menu image.

View 9 Replies View Related

JQuery :: Superfish Menu Pushes My Page Down

Sep 22, 2010

I implemented superfish on my site [url]. I used the menu suffix -nav, and I expected it to just do a drop down. It does, but it pushes the whole page down when I hover over it. Any ideas on how to make this stop and just have superfish as a regular dropdown?

View 4 Replies View Related

JQuery :: SuperFish Menu - Change Space Between Menu And Submenu In Navi-bar Type Menu?

Feb 15, 2011

I have trouble with SuperFish Menu, of course it looks very nice and is good solution, but I am not advanced in CSS language.how to change space between menu and submenu in Navi-bar type menu? Now sobmenu hide part of menu, I have to must space.....

Attachments
superfis.JPG
Size : 11.4 KB
Download : 306

View 1 Replies View Related

Rollover Image Menu With Current Page Active?

May 27, 2011

I've created a nav bar for this site - [URL].. I'm using javascript to handle the image rollover which is working just fine. However I want to add to this so that the current page will stay with the second or rollover image. How would you suggest I edit or add to my code so it keeps the second image active if it is the active page? In my script file this is what I'm using for an image:

menu1buttonup = new Image();
menu1buttonup.src = "http://web11.3essentials.com/~cp27358/wp-content/themes/origin/images/menu1.jpg" ;
menu1buttondown = new Image() ;
menu1buttondown.src = "http://web11.3essentials.com/~cp27358/wp-content/themes/origin/images/menu1a.jpg" ;

[Code]...

View 1 Replies View Related

Rollover Image Menu With Current Page Active

May 26, 2011

I've created a nav bar for this site - [URL] - I'm using javascript to handle the image rollover which is working just fine. However I want to add to this so that the current page will stay with the second or rollover image. Do I edit or add to my code so it keeps the second image active if it is the active page?

In my script file this is what I'm using for an image:
menu1buttonup = new Image();
menu1buttonup.src = "[URL]" ;
menu1buttondown = new Image() ;
menu1buttondown.src = "[URL]" ;

Followed by....
function buttondown( buttonname ){
if (document.images) {
document[ buttonname ].src = eval( buttonname + "down.src" );
}} function buttonup ( buttonname ){
if (document.images) {
document[ buttonname ].src = eval( buttonname + "up.src" );
}}

And this is what my list items look like:
<a href="<?php echo home_url(); ?>/?page_id=7" onmouseover="buttondown('menu1button')"
onmouseout="buttonup('menu1button')"><img src="<?php bloginfo('template_url'); ?>/images/menu1.jpg" name="menu1button" /></a>

View 1 Replies View Related

Program Menu Items To Stay Active / When On Current Page

Nov 17, 2010

It was originally an imaged based menu, but they wanted it all changed to css/html. I used quickmenu and it used JS to produce the arrows at the top of each menu item.I'm trying to program the menu items to stay active when on the current page. At first, it looks correct, but if you hover back over the menu, it changes back to the inactive state.

View 1 Replies View Related

JQuery :: Make The Menu Items A Fixed Width In A Horizontal Superfish Menu?

Jan 19, 2011

how to make the menu items a fixed width in a horizontal Superfish menu . I've tried mucking about with the CSS but no luck so far. I'm sure it's easy, but I can't seem to work it out.

View 9 Replies View Related

JQuery :: Superfish Menu - Showing Submenus On The Left Of Parent Menu?

Mar 4, 2011

I'm using superfish menu jquery plugin, and I'm wondering if someone know how to update plugin that you can decide if sub - sub menus wil be shown on the right (that is in the original) or on the left side of the parent menu.

The problem is, that if the last menu is near the end of the browser, than the sub - sub menu will go off side the browser.

View 2 Replies View Related

JQuery :: Superfish Menu Plugin - How To Disable Menu Items?

Oct 31, 2009

I'm thinking of using this plugin for my menus. Is there an easy way to display a menu item in a disabled state?

View 1 Replies View Related

JQuery :: Superfish Menu - Different Color For Different Menu Items?

Jan 7, 2010

Can we keep different color for different menu items .

View 1 Replies View Related

JQuery :: Superfish Menu: Blank Space At The End Of The Menu?

Jul 29, 2011

I'm curious if anyone knows how to fix this. Most of the content of my page is 940px wide. The superfish menu, expanding as it should to fit my drop-down heading text, is only about 700px wide. I want to apply a color background to the div that the superfish menu is housed in so that the menu appears to be 100% width.

For some reason, in webkit and firefox, the color of the div that the menu is contained in does not show up, so there's just an empty space in that last 25% or so of the bar.

In IE, it looks correct, though. (the color of the containing div shows through the blank space in the menu, making the menu bar appear to fill the entire width).

Am I missing something in the Superfish menu that makes it appear at 100% width?

View 1 Replies View Related

JQuery :: Superfish Menu With Struts 2 Gap In Menu

Sep 24, 2011

I am using the Jquery Superfish menu within a struts 2 web app. As seen in the attachment, The menu is appearing and the hover delay is working but there are gaps between each menu and its sub menu. Also the root menu items are not all the same with. I am using the example code without changing it. how to get rid of these gaps ?

View 1 Replies View Related

JQuery :: Accordion Panel Show Li:first As Active

Aug 25, 2011

I've got an accordion horizontal panel, and I have it set to display #accordion li:last - on page load. Then clicking on the panel lables will open other panels

my delimma is that on page load, the content of the active panel is not displayed until you click on its respective "label" I think I'm missing some code for the activeItem... I need it to show the content of that li tag on page load. ALSO, I've tried giving the li tag I want displayed first its own id, but had no luck with that.

[Code]...

View 1 Replies View Related

JQuery :: CSS - Superfish Menu - Change The Inactive Color Of The Sub-menu Without Changing The Inactive Color Of The Principal Menu?

Oct 6, 2009

I have installed Superfish menu module with Joomla ..Customization work more less fine ...I still have tenious problem like :

- How to have the main menu with the active color, when one of the sub-menu has been actived ?

- How to change the inactive color of the sub-menu without changing the inactive colro of the principal menu ...I did not found any information on the web ..

View 2 Replies View Related

JQuery :: Auto-adding .active Class To Menu?

Apr 11, 2010

I'm trying to add .active class to a menu, based on the URI. It works with URL's like: /, /products, /about, /contact but not anymore when you go to /products/some-product.I know what's wrong, but I can't find a working solution. I've tried a regex, but that didn't work either...

The code:

$(function() {
var path = location.pathname;
if (path) {

[code]....

View 4 Replies View Related

JQuery :: Change Active Link In Accordion Menu?

Aug 16, 2011

I'm creating an accordion menu and need to make the link you click on go from saying "click here to view" to "close". The way I had to set up the accordion is making finding code that works very difficult. Here is my [code]...

View 4 Replies View Related

JQuery :: Center A Superfish Menu?

Mar 23, 2010

I ma just trying to figure out how I might center a superfish menu - and possibly make the top level LIs 'auto size'. It sees the menu will only float left or right. Of course I am not a css guru either - it could be staring me in the face.

View 2 Replies View Related

JQuery :: Hiding A Menu In Superfish?

May 17, 2009

I want to make a dynamic menu where the items being shown depends on the access of the user. I tried having a code in codebehind of my aspx page that will set a certain li to style display none, but when viewed in IE6 I get a white space within the menu.

View 1 Replies View Related

JQuery :: Superfish As Popup Menu?

Aug 4, 2009

I am in the process of replacing a YUI menu implementation with Superfish. Is there an easy way to implement a popup menu? Something like:[URL]..

View 2 Replies View Related

JQuery :: Superfish Menu Open UP?

Jan 29, 2010

[URL] and you can see the code there, but essentially I'm wondering if there is a way to open (I know there is, I just can't) the superfish menu plugin "up" rather than down which it does by default. I think it's a css/jQuery animation issue but I can't seem to get it.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved