Im not sure my subject decsription gives an exact description of what i am after but i will try and explain my requirements a bit better.I have an header menu there are items in this menu but there are a lot of them and if you try view on a normal 1024 x 760 you have to horizontal scroll to view all the items, but on my monitor 1920 x 1080 it is fine.
I don't want to do it this way since I hate having to scoll both horizontal and vertical. I would like to be able to change the items on this header to become a rollover dropdown menu when they would normally be hidden becuase of the screen width. I have seen this done before I am just unsure about how to implement this.
Second Question: For some reason, the menu is appearing behind a table row when it expands, thus hiding a good portion of the menu. Here it is: [URL]
Try clicking on 'Products & Services', and then clicking on "Centerfire Rifle Suppressors" from the dropdown menu. When it takes you to that category page, click the menu again and you will see that the menu hides behind the <h1> table row.
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.
I've a highly customized site and therefore am attempting my own rollover menu function.
For right now I'll give the basics.
I have two divs - a left nav and a right content div.
The left div houses the left navigation and the right content div... well - houses the content.
On mouseover of a left navigation image - I am changing the image to "highlight" and also would like to display a previously hidden div that contains the submenu items.
That is all fine and dandy. My problem is this. When I mouseout of the image - I lose the highlighting and the displayed submenu.
I'm trying to figure out how to make a "handler" of some sort that will cause the image rollover to stay when I move the mouse to go select a menu item in the submenu.
There is probably 5-6 px between the right edge of the image and the right content div (which is where the submenu ends up displaying)...
Can I not catch the mouse position or something or am I limiting myself using the mouseover/mouseout functions or grr... How can I do this?
I can't seem to figure out how to properly change my dropdown menu to work on rollover instead of on Click. When I change this to .hover I get a yo yo effect
Its cool but would like to have image rollovers instead of the text shown in the example.
I can't figure out how to do it without screwing up the slide bar on the bottom. And the css file won't let me specify which link like... a.home li {etc etc etc....I would really like to be able to have a separate rollover image for each link and have the slide bar work still.
I am trying to figure out whether or not there is an effective way to cut up the navigation on the right side of this banner so I can use the standard image swap. I am asking in this forum because I need to know if this will even work in the first place.
I tried to make a drop down menu with rollover image... with the drop down code that I found in this forum some days ago. I can finally make it but can't find how to make it rollover not hover with only colors. I want in like rollover menu but with drop down, but can't find how to make it rollover.
Javascript code Code: var timeout= 500; var closetimer= 0; var ddmenuitem= 0;
// open hidden layer function mopen(id){ // cancel close timer mcancelclosetime(); .....
I know very little about jQuery. I am trying to design a graphic menu bar that is capable of displaying each button in 4 modes: up (neutral), hover, down (mouse down), and selected. After some research, I was able to "come up" (by cutting and pasting and burning up a couple of neurons) with the code below. It works well enough but I'm sure it could be written a lot better. What I really would like to do is to change whatever button is "down" to go back "up" once another button is pushed, changing the img src, or by whatever method is more efficient.
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" ;
This is really only for anyone who has the book and has mastered the concepts of the rollover drop down menus from Chapter 7 in Stuart Langridge's DHTML Utopia book.
Does anyone know what the key is to getting the first menu list to appear inline, rather than as a block, while leaving everything else working as it does already?
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>
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>
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.
I have a situation where a context menu is being added to the DOM dynamically when a user right clicks on a control on the page. The div that gets added does not have an id set but the div does have a unique class. WhatI need to do is intercept the addition of the div and add a hover affect to some child nodes. Specifically any children that are <a> nodes. So far this is whatI have for adding the hover affect, but i'm not sure where it needs to go or howI link it to the event raised whan a new element is added to the dom.
I have just started using Superfish. I am using a reverse color scheme (the background is green font color white) - so when I rollover a main menu item the menu item rolled over has a background of white, font color is green. When I go to a sub menu item the background of the main menu item stays white, but the font also stays white (I want the font to stay green).This is an example of how I want my menu to work:
http:[url]....
(Notice that when you rollover and then fly out, the main menu item rolled over maintains its background and foreground color).This is the part of the superfish.css that I have edited:
It seems to me that the arrows which are added create an additional width on the menu elements.I would like to specify a fixed width for the top elements in my menu. It appears that the arrows are added automagically by the JS (neat!). I am guessing they are an additional width to anything specified in the skin css. Is there any way to use the arrows but to reserve space for the arrow width, so it doesn't change the top level menu width? I would like to be able to use a fixed width, so that I can use a non- repeating css background image. To complicate matters, I am using Supersubs (maybe I should be using the standard superfish?)
I have a problem that i can't seem to solve on my own'. I used the cbe script on my site (http://members.chello.nl/~c.wouters6...kant/menu.html) I like to resize the width on the onmouseover menu (the layer) and i can't find where to resize this? I managed to change everything else i like to change, but this i can not find .....
I am trying to generate a pulldown-menu with JavaScript/DOM: The following Code works fine with Opera an Mozilla but in the IE the width of the select element is too short:
myCurrentElement = window.document.getElementsByName('par_role')[0]; for (var i = 0; i < optionArray.length; i++) { myNewElement = window.document.createElement('option'); myNewElement.setAttribute('value', optionArray[i]["value"]); if (optionArray[i]["selected"]==1) { myNewElement.setAttribute('selected', 'selected'); } myNewText = window.document.createTextNode(optionArray[i]["label"]); myNewElement.appendChild(myNewText); myCurrentElement.appendChild(myNewElement); }
How do I standardise the width of the top menu items in a (Superfish) Suckerfish style menu (V 1.4.8) as each is sizing to the text and I would like all to be equal
i am using the jquery superfish menu at[URL]. i cannot seem to modify the width of the menu items (or the <li>). how do i do this? i am using the superfish.css style sheet. i tried to modify the width by changing the values of a few classes (i.e. where it said 100% or had an em appended), but this did not .
I have navigation buttons that I'll call primary buttons. I also have secondary navigation buttons that I'll call secondary buttons. If you rollover a primary navigation button, it should make secondary navigation buttons 1,4,and 5 go to rollover state A. However, if you rollover secondary navigation button 1,4 or 5 they should go to rollover state B.So the simplest way I can explain it is that the secondary navigation buttons need two rollover states possible.
Before, I had an iframe, and when I moused over a link outside the iframe, it would load a page into the iframe. Background image was part of the page loaded, as well as the text and what not. The problem was, the image took too long to load. I've been learning how to do javascript and I came across some code for preloading an image before the mouseover so there was zero wait time. For the past few days I've been trying to figure out how to have the preload image appear BENEATH the iframe (now with no background image or color) with the allowtransparency attribute set to true.
I've figured out the code to do both individually, i.e. I have the code so that when the link is moused over, the new image will appear; AND I have the code so that when the link is moused over, the page with load into the iframe. Both work, both do what is expected, but they don't do it together.Below is the script. Here's where it's confusing. If I have the "setupImgRollover..." first inside the if statement: the page loads into the iframe, but there is no image. If I have the "setupImgRollover..." after the "document.link..." commands in the if statement: the image appears but the page does not load into the iframe.
HTML Code:
window.onload = rolloverInit; function rolloverInit() { for (var i=0; i<document.links.length; i++) { var linkObj = document.links[i];
im trying to make the left Product Categories background position "rollover" menu work on this page: [URL] at the moment the page loads and CSS hover works to set the background position so that the graphic behind makes a roll over effect. i put some javascript to set the background position permantly to the roll over on click (so the user can see which one they are on) but then this knocks out the roll over effect on all other categories - it knocks out the CSS hover: onclick="setStyle('c1','backgroundPosition','0px 0px');
it means that c1:hover no longer works.. i tried putting !important in the CSS c1:hover background position and this fixed it in Firefox but not IE. So how can i write something in Javascript to also say: onclick="setStyle('c1:hover','backgroundPosition','-276px 0px');
i know Javascript does not do hyphens and the way to get for example "background-position" in CSS is to ditch the hyphen and make "P"osition capitol. perhaps something can be done also to get to the CSS hover attribute?
let me try to explain better what I'm trying to do. I'm a real newbie I don't know much javascript but I understand more or less the logic behind it... tell me if this solution should work and if you know how to do it please show me. [URL]... I need to make div#photo's width to match the total width measurement of all the images it contains. If you load the page and you don't touch the size, it will work fine... but that's not realistic. If I resize the page, which will happen often on this kind of page (I'm assuming), the whole thing goes haywire (try it, scroll to the last image and resize the page you'll see what I mean). What can I do? Is my idea the right solution? Am I not explaining this clearly enough? Let me know please, I'm desperate. I've been trying to get CSS to do this for me for 3 hours now. Nothing works.
Is there any way that one could have supersubs functionality applied to drop-down multi-column menus?I assume one would need to calculate the width of each column plus the combined width for the container.
[URL]. In the picture I have a picture div and a text div. The picture and text are related to one another. I want it that when you click the right or left arrow the pic and text change together. I dont really care how they change, slide, fade, or simple do a show/hide kind of effect. How to make one div have a slide show when you mouseover to right or left it moves.