Modifying An Expanding Menu Script To Turn Off An Effect?

Apr 20, 2009

Firstly apologies for my javascript ignorance - I'm not a programmer, just someone thrust into programming since there's no-one else at my company who can do it.

I found a nice js script online for a drop-down menu where the drop downs both expand to their full size and fade-in (very quickly) from transparent.

The script in action can be seen on the script writer's site here: http://sandbox.leigeber.com/dropdown-menu/index.html

[Code]...

View 1 Replies


ADVERTISEMENT

LavaLamp - Modifying JS For Single-page Site - Subtle Animated Effect ?

Jun 27, 2010

I'm using LavaLamp [url] for the main navigation on a site I'm building, for a subtle animated effect.

The site itself is a single-page portfolio site with 3 sections organized vertically, "Home," "About," and "Work."

The problem I'm having is that the clicked navigation does not return to its original position on each panel if I double back on it.

For example, if I'm on the Home panel, and I want to get to About, I'll want to select "About." The LavaLamp animation will ease over to the "About" link on hover, and I'll click it, then the page will scroll to the About panel, where "About" in the navigation is being shown as selected (LavaLamp has a "current" class you can apply to whatever you want to start off as being selected)...

And that's great, BUT, say I want to get back to the Home panel. I click "Home" in the nav, and I'm transported back to the Home panel - but when I was there before, I'd selected "About", and since it's all on the same page, the link is focused on "About," even though I'm on the Home panel. Make sense?

I'm not good enough at JS or jQuery to figure out how to fix this. I think what I want to happen is for every link on each panel to STAY where it was originally assigned ("Home" link will stay on Home, "About" link will stay on About, etc.), but animate on hover only.

Is there a way to write something into the LavaLamp JS to make it so the animation works only on hover, and not on active, focus, or visited?

Here's the code, can't provide a demo page, I don't have anywhere to upload it at the moment...

index.htm with an example of what each panel looks like:

jquery.lavalamp.js:

And last but not least, the LavaLamp CSS:

Forgot to add the page js:

EDITED ALSO TO ADD: Could it have something to do with this:

View 4 Replies View Related

Expanding Menu - Adding Color To Menu Items?

Jul 5, 2011

I'm creating a menu using html, css and a javascript, I found a tutorial to follow online. What I am trying to achieve is when the mouse hovers over the menu items, each item will have a different colour background. the problem is that i can do this but it only works with one colour and not different colours.this is the html:

<ul>
<li><a href="1.php">Things</a></li>
<li><a href="2.php">Animals</a>[code]......

View 1 Replies View Related

JQuery :: Expanding Menu Not Working

May 7, 2011

If I use jQuery 1.2.6 it work, but if I use last version 1.6 it stop working.

$(document).ready(function() {
$('div.menu:eq()> div.subnav').hide();
$('div.menu:eq()> div.navhead').click(function() {
$(this).next().slideToggle('fast');
});

View 3 Replies View Related

Expanding Menu Bottlenecked By Ticker.js

Aug 8, 2007

I am using a script for my navigation which is a vertical expanding menu that opens when clicked on. However when i have added another script which creates a scrolling marquee across the page, the menu links dont stay expanded as the page gets reloaded (ie. <a href="#".. ) as if its a normal link. Code:

View 3 Replies View Related

Making Expanding Menu Hierarchy Sensitive?

Mar 17, 2010

I'll get to the hierarchy sensitive part next, but for now I need help making this even work with two top-level links. I'm building a left-navigation that's expandable. Click a little + box image to the left of a top-level section's link, and all the links to sub-sections within that section expand out, the + box image becomes a - box image, and clicking the - box collapses the sub menu links. The scripts below work so long as I just have one top-level section, but because they us an ID for the +-box image, when I add a second top-level menu item, the swapImage function no longer works. How do I make it work with a class instead of an ID? The JavaScript and HTML code is below:

[Code]...

View 2 Replies View Related

Turn My Drop-Down Menu Into A Double?

Apr 29, 2011

I know how to edit the CSS, and minute parts of the JavaScript code (for example; speed of the drop). The problem is, I had a massive amount of help making the Javascript side of the menu, and do not know how to edit it...

I want the rules to still apply, where only one can be expanded at a time (one of the first drops, and then only one of the sub-drops). I noticed in the code, I can edit it so there can be more than one drop, but that would mean, the whole menu could be expanded :(

Also, I want my sub-drops. to have different span colour than the main drop. but trhe links and such, (everything else about it) can be the same....

My live demo is here! (http://mrjamesmusic.com/tornhq/Index.html)

View 1 Replies View Related

Recursive Menu Mouseover - Turn The Style Display On Or Off

Nov 9, 2011

This recursive menu is built with ColdFusion and then Javascript is used to turn the style display on or off. The problem I'm running into is this. The menu currently has 4 levels. MicrosoftMicrosoft TechnicalDynamicSystem CenterWindows ServerHyper V The menu is collapsed and as you mouse over an item that has child elements it expands. The problem happening now is the menu loads expanded only for the 'Microsoft' element. (note this is the only menu tree that has 4 levels).

So it looks like this when loaded initially. MicrosoftMicrosoft TechnicalDynamicSystem CenterWindows Server When you mouseover 'Microsoft' it then expands the 'Hyper V' menu item underneathe Windows Server. Mousing over 'Microsoft' should open 'Microsoft Technical', etc... I imagine the code doesn't support that many levels because if 'Hyper V' is moved out and put under 'Microsoft Technical' as a child the menu works fine.

[Code]....

View 2 Replies View Related

Expanding Menu To Stay Expanded When Click A Link To Go To Another Page While Navigating?

Jun 29, 2010

I am doing an internship at a company and am working on an existing site. The Company wants the expanding menu to stay expanded when you click a link to go to another page while navigating. I am very new to Javascript, CSS, and html and could really use some insight or code example.

// JavaScript Document
/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com

[code]....

View 1 Replies View Related

JQuery :: Turn A Horizontal Dropdown Menu Into A Vertical Dropdown Mneu?

Dec 3, 2011

I want to use a drop down menu and found a horizontal example from John Resig. But I want to turn it into a vertical menu. How can I do that?

View 2 Replies View Related

Turn A Single Level Flyout Menu Into A Multi Level One?

Jan 7, 2009

I am trying to turn a single level flyout menu into a multi level one.

It uses a dt for the title, and a ul within the dd for the menu items. The dd opens to the right of the dt.

The problem is that the second level menu (a dl within an li within another dl) [URL] - flyout4 & subflyout5.

The z-index is increased each time. I just can't figure why the area is limited.

javascript, css & html follow -

Code JavaScript:
/** FLYOUT = vertical dropdown **/
var Flyout = {
DDSPEED:10,

[Code].....

View 1 Replies View Related

JQuery :: Animate Menu Effect On Mouseout?

Aug 15, 2009

I want to animate the menu 'height' on mouseout (it works fine on mouseover) - basically a slide up/slide-down effect.

View 5 Replies View Related

Create A Drop Down Menu With A Sliding Effect?

Feb 14, 2009

How I can create a simliar menu to one used here code...

Its the menu that says "Flights and More", "Manage my booking" etc

it's a nice drop down sliding effect.

View 7 Replies View Related

Page Slide Effect With Stationary Menu?

Oct 18, 2011

I was wondering if jQuery or mootools has a set of scripts that creates a page slide effect with a stationary menu? What I mean is instead of loading a page when you click a link, all pages of the website are loaded at first, and then when a link is clicked, the corresponding page slides onto the screen. The navigation menu remains unchanged (except for dropdown menus) throughout everything. This is a perfect example of what I'm looking for: [URL] I tried to search for this but didn't come up with too many great results, and I searched the jQuery documentation and wasn't able to find a slider feature.

View 2 Replies View Related

JQuery :: Slide Effect - Different DIVs For Each Menu Item?

Jan 9, 2010

I want a menu at the top of the page. When I press a button in the menu the content of the page slides up, the content changes and it slides down. I've done this so far, but how can I do a more dynamic solution without having different divs for each menu item?

JS:
<script type="text/javascript" src="[URL]"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
$('#f1').click(function() {
a("1");
});
$('#f2').click(function() {
a("2");
});
$('#f3').click(function() {
a("3");
});
function a(info) {
$('#content').slideUp("normal");
document.getElementById('content').innerHTML = info;
$('#content').slideDown("normal");
};
});
</script>

HTML:
<div id="f1"><a href="#">Menu 1</a></div>
<div id="f2"><a href="#">Menu 2</a></div>
<div id="f3"><a href="#">Menu 3</a></div>
<div id="content">Chose something in the menu</div>

View 5 Replies View Related

JQuery :: Get Rid Of The Slide Effect On A Basic Horizontal Menu?

Jun 30, 2009

How can I get rid of the slide effect on a basic horizontal menu? I love the way the "basic" example works but I can't mimic it without having the text all slide to right and re-sizing the box.

View 2 Replies View Related

JQuery :: Adding Rollover Effect To Links Font Effect Plug-in

Jun 8, 2011

I am seeking to change the color attribute in my CSS file under the ID's #realmaturesingles and #seniorpeoplemeet upon the hovering of these links. These two ID's are initialized inside an <a> tag (these are links). How can I do this with JavaScript? This is what I tried:

Code:
<script type="text/javascript">
$('#seniorpeoplemeet').FontEffect({
gradient:true,
mirror:true,
mirrorColor:"#CCC"
})
[Code]...

View 1 Replies View Related

JQuery :: Getting A Show Effect To Stop When Another Effect Is Started?

Apr 22, 2009

Im having a bit of trouble with the bounce show effect from jquery ui. To see what I mean, check out my development site. Anytime you modify a part in this computer builder, the rigth side gets updated. Right now its removing and adding list items. Problem is when click items too fast, the animation doesnt finish and the next item gets bumped lower and lower.

[Code]...

View 1 Replies View Related

Error - Effect Is Undefined - Scriptaculous Effect In My Script

Jun 21, 2010

I am using scriptaculous effect in my script.

But it is giving following error.

Code:

It is giving Error Effect is not defined.

View 3 Replies View Related

Ie9 Flickers With Effect.Appear And Effect.Fade?

Sep 15, 2011

All other browsers work fine, but IE 9 flickers on the rotating gallery on this dev site..This is the JS function primarily responsible for it.

Code:
this.fadeRotate = function(currentItem,className,firstTime){
var moduleClass = document.getElementsByClassName(className);
var moduleItemCount = moduleClass.length;
if(moduleItemCount != 1){

[Code]...

To narrow it down more, it only seems to happen when you mouse in and out of certain divs.

View 1 Replies View Related

Modifying An Event

Jul 19, 2007

I have the following:

<tr onMouseOver="alert('Over a row')">

and I want to modify the event to be:

<tr onMouseOver="alert('Over THIS row')">

in other words reaching into the event, and changing some part of it.

I have tried walking through the attributes of the <truntil I reach
the onclick, then changing its value, but that throws an error.

View 1 Replies View Related

Modifying Css Style Of An ID

Oct 21, 2011

By default the style of #pricea in my stylesheet is visibility="hidden";

<script type="text/javascript">
function arrow(boxName){
document.getElementById(boxName).style.visibility = "visible";
}
</script>
[Code]...

View 2 Replies View Related

Expanding Images

Apr 4, 2005

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> grow test</title>
<meta HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8">
<script language="JavaScript" type="text/javascript">
var img_width = 100;
var timer = null;

function imageGrow(imgid)
{
var growImg = document.getElementById(imgid).style;
growImg.width= img_width+'px'

if(img_width < 500)
{
img_width += 10;
timer = setTimeout('imageGrow("' + imgid + '")', 60);
}
else
{
clearTimeout(timer);
document.getElementById('contrlD').style.display = "block";
document.getElementById('contrl').style.display = "none";
}
}

function imageShrink(imgid)
{
var growImg = document.getElementById(imgid).style;
growImg.width= img_width+'px'

if(img_width > 100)
{
img_width-= 10;
timer = setTimeout('imageShrink("' + imgid + '")', 60);
}
else
{
clearTimeout(timer);
document.getElementById('contrl').style.display = "block";
document.getElementById('contrlD').style.display = "none";
}

}
function changeSize(imgid)
{
if(img_width <= 100)
{
imageGrow(imgid)
}
else
{
imageShrink(imgid)
}
}

</script>

</head>
<body>
<div id = "container" style = "text-align:center; ">
<div id = "contrl">Click image to enlarge it</div>
<div id = "contrlD" style = "display:none;">Click image again to restore it </div>
<img src = "0.jpg" id = "imageResize" name = "imageResize" onclick="changeSize(this.id)" />
<img src = "1.jpg" id = "imageResize1" onclick="changeSize(this.id)" />
<img src = "test.jpg" width = "100" id = "imageResize2" onclick="changeSize(this.id)" />
<img src = "snow.jpg" width = "100" id = "imageResize3" onclick="changeSize(this.id)" />

<div id = "content" style = "position:absolute; top:400px; left:10px; background:blue; width:100%;">
Content of page here!!
</div>
</div>
</body></html>

I hope this is usefull to someone. Page validates and works in IE and FF.

View 16 Replies View Related

Trying To Get An Expanding Div To Work.

Apr 17, 2005

I have been trying to get a simple javascript that expands and collapse's a set of div's. Now this works a treat in its own html file. but when I use the div's in the product display the javscript doent work?? :-( anyone know why??

My shopping cart is template and database driven, with each part having its own template file. the divs are in the product discription which is pulled from the database.

View 3 Replies View Related

Expanding And Collapsing

Jul 25, 2007

Is there a way to expand and collapse in JavaScript? What's the best way?

View 1 Replies View Related

Expanding Popdown Combos

Jul 23, 2005

I have a form with a drop down combo box of a specified size. However,
I would really really like it if the user was looking at the contents of the
list it would expand to fit the text in the list. However, I believe
that IE does not allow the rendering of popdowns in this manner!

Is there some other way that I can do this using javascript and html/dhtml maybe?

View 1 Replies View Related







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