JQuery :: A Menu Slider That Slide Up To Reveal Contents Of The Menuitem Clicked?
May 6, 2011
There are several sliders out there. But are there possibly a plugin or tut or an suggestion to how you could have a black bar on the bottom of the viewport with a menu on it and when clicking the menuitem it would slide up with content related to the menuitem..I would imagine the you could might tweek a existing slider with some z-index function?
I'm trying to create a small javascript menu.I have 4 images which serves as menuitems.
<div class="myMenuButton"><img goes here /> <div class="myMenuContent"> Random content1 here <br />
is there a simple way of implementing a slider function to the images to toggle slide up/down the contents belong to this button? And if another image is clicked then all OTHER open slides should be closed while opening this one etc
I'm having a little trouble with 2 differentJS scripts. I have a drop down slide menu and a parralex slide gallery. Both work on separate pages and puton the same page they still work however the submenu of the slide down menu does not. if I remove the style sheet that belongs to the gallery
Then the munu works, however (obviously) the page layout goes wrong. if i remove<h1 class="title">Alex Holland Perspective</h1> the menu works however page layout goes wrong andI loose my header
I've got this client that would like the menu to slide out from the left nav bar, horizontally. So far I've put together a jQuery toggle you can see working here:Slide out Menu.What I need is to fade out/slide back when another menu link is clicked. Right now they are overlapping and there are more menu items to come.
I've been working on a vertical reveal menu. Right now it works ok with CSS. But what i'd like it to do is when you mouse over, reveal the menu and have that menu stay open until the user mouses over another menu item. Right now it's a bit jumpier than i'd like it and would like to basically have it stay open on a mouse out event, again until it hits another menu item. Code:
I have a script that works perfectly on a live site that basically has a menu that reveals a hidden DIV and when you click a link, and then when you click a new link it hides the previous div and reaveals the new one. It is as follows:
Javascript Code: Original - javascript Code LastLayer = "nothing"; // the first div/layer function openObject(theLayer){ // pass the name of the layer you want to bring to the top // Then hide the last layer, and make the layer passed visible. This could have been done using the z-index property if (document.getElementById) { // if it's IE5 or NS6 use this syntax to access the visiblity attribute eval("document.getElementById(LastLayer).style.visibility = 'hidden'") eval("document.getElementById(theLayer).style.visibility = 'visible'") LastLayer = theLayer; } if(document.layers) { // if it's NS4 use this syntax to access the visiblity attribute eval('document.layers[LastLayer].visibility = "hidden"') eval('document.layers[theLayer].visibility = "visible"') LastLayer = theLayer; } .....
Now I am redesigning the site to work with a new style sheet, (There wasn't one before, it was all inline styles. Anyway, it broke my script. The CSS has a class that gives certain DIV's visibility attribute the 'hidden' value by default. I was planning on using the above script to reveal/hide them, but it does nothing. Here is the CSS that affects the divs I am referring to.
CSS Code: Original - css Code .job { border: thin solid #000000; float: right; margin-right: 25px; padding-left: 10px; width: 40%; display: none; } .job { border: thin solid #000000; float: right; margin-right: 25px; padding-left: 10px; width: 40%; display: none;} As you can see there is nothing fancy in the css that would cause any concern.
I recently found a slider which I want to use for my website. The slider is extremelly simple and exactly what I need. Although I need to make it slide automatically while still keeping the buttons.
I'm using the jQuery Cycle plugin to slide some posts in wordpress, each with it's own image. As the slider should take the whole width of the screen but staying at 600px height I tried for all means to use the fit, width, height options in order to make that happen, with no success at all (apparently, it wont enlarge the images if needed).
So I wrote this little function and managed to make it work by adding it INTO the Cycle script itself (I mean the cycle js file):
$slides.each(function(){ var $slide = $(this); var ratio = (opts.aspect === true) ? $slide.width()/$slide.height() : opts.aspect;
[Code]....
Now, I'm not sure (thinking surely not, right?) if I can add code directly into the Cycle js file, legally, I mean, without infringing the licence. Is there a way to make that function work for each slide (as a "for each slide independently do THIS...") from the jQuery call to the Cycle script, through some of the options?
i am using jquery cycle plugin to show radio button in every slide, i want that user must select atleast one radio button before going to next cycle. how can i do this, i added the code. I tried adding validation in prevNextClick: method, and returning false there, but still it goes to next slide. how can i stop going to next slide if no option is selected
i am working with richfaces to create a drop down menu. The menu is working fine but when i started using jquery and especially the following code:<script type="text/javascript" src="Jquery/newsslider/js/jquery-1.3.1.min.js"></script>The menu does not work correctly: the menu items are not shown.
I am trying to create a specific menu using jQuery where i want to toggle a clicked menu item. I used toggleClass to accomplish this. All fine and well, but what i want is that once i click a menu item, the previously clicked item should have the active state/class toggled off.. The menu is variable. (I tried and tried and searched all over the internet, but i cannot find it... spent 5 hours trying to combine various selectors and if/else statements, but it did'nt work.)
The purpose of the code is to slideToggle open one of two hidden sub-nav bars when either of two different menu items are clicked upon - instead of a drop down menu. What doesn't work is the hiding of the div that is not required, if it is already open. Viewing in firebug shows that the appropriate classes are being applied - I suspect the reason is that slideToggle has been somehow set and cannot be unset via another object - but perhaps that is not it at all?
$(document).ready(function() { //add .toggle function to appropriate li element $('#hozmenu li:nth-child(4)').toggle(function () { //set 4th menu links colour to be green whilst div is shown $('#hozmenu li:nth-child(4) a').css('color', '#95d890'); $('#toggle_nav_services').removeClass('toggle_show'); [Code]....
I awhen it comes to "developing" jQuery but I am trying to do something that is seemingly something simple but I can't for the life of me, figure out the best way to do it.
http:[url].....
Here, you'll see the area below the navigation that has five buttons which are supposed to help scroll between the five associated divs.All I want to do is hide the currently shown div and then slide in the div associated with the button clicked.http:[url].....Here is what the animation is SUPPOSED to look like but the problem is is that the correct one uses Prototype and I am trying to use only one library and jQuery is the most suitable because I use it for other effects in the site and jQuery and Prototype obviously don't mesh well.
Im a starting graphic designer, 21 yrs of age and just rolling into this webdesign industry. Ive come a long way, do have some knowledge.. but when it comes to complicated things like JS I often visit knowledgeable forums like these.
I hope I can contribute into making this community richer.
Now, Ive implemented this slide out menu succesfully before, only now it seems that ive mistaken somewhere. The menu just pops out instead of sliding out like it should.
Code: <script type="text/javascript"> $(document).ready(function(){ var docked = 0; $("#dock li ul").height($(window).height());
[Code]....
And if you want to see a working example of how it should be look here.
I have some jquery running on a menu (here ) but before jquery loads, the content (all of the <li>'s) appear, then disappear once jquery loads. Is there a way to stop the brief displaying of the <li>'s?
I just started with jquery because I need a solution for a website that doesn't involve flash. I found this tutorial [URL]and I tried to modify the code without realy knowing what I'm doing, needless to say, it's not working at all.
Basically I have the same idea for my menu but it looks a bit different, instead of using a line underneath the links I want the scroller-image to tween on the x-axis with the white line stopping in the middle of each button. I made the image to fill the whole page so that it covers the scroller-line image underneath, I want the effect of a line expanding and contracting and this is the only way I could figure to do it.
The <a> is a list of menu items that when clicked.... a specific gallery-slider-images should been shown in relation to the galleryId....<div class"gallery" is hidden in CSS> I'd like to use jQuery to complete this task if at all possible, i can't seem to .show() the selected 'gallery' w/o showing them all...........
I have included image slider and lavalamp menu in one of my projects. The problem here is both works well in Firefox. But not working in IE. I have included easing for the jquery.
It's basically a vertical list of links, with more specific links hidden inside categories. When you click a category, the specific links should slide down. This is the JS/jQuery part:
Code:
<script type="text/javascript"> function slidey() { $("#vnav ul li ul").slideDown("slow");
[code]....
so the problem here is that when you click a category, it expands ALL sub-categories and it's supposed to just expand the sub-categories related to the section clicked.
I am looking to use JQuery which I am really new to and get my navigation submenus to slideDown when the parent is rolled Over. I have multiple parents and children or sub menus and want them to activate individually but without repeating the JQuery over and over again for each.Obviously the goal is to also slideUp on the mouseOut event.Here is the code that I have so far:
I am quite new to jquery and like it so far, dipping my feet but getting them very wet!
I wonder if someone with knowledge could steer me in the right direction regarding the conflict I have with my Mega Menu and my Content Slider at sample page, [URL].. as you can see the Mega Menu appears under the Content Slider,.
Does anyone know if there are useful scripts in jQuery that allows me to create a page slide effect like this website?I think the logic behind it is that it loads every single web page of the entire website first, pans them out horizontally, then shifts the page left or right X amount of pixels depending on which link is clicked. I'm pretty new to javascript so I'm not sure where to look, and I don't understand half the code by looking at the source code either