?
Solved

jquery slider menu help

Posted on 2011-03-10
4
Medium Priority
?
469 Views
Last Modified: 2012-06-27
I am trying to add a jquery slider submenu to my site design.


This is the existing design:

http://www.communitygreengroup.com/cg_new/about_us/
I have added the submenu here:

http://www.communitygreengroup.com/cg_new/test4.php
You can see that the space between the menu buttons and the big landscaping image is gone.  If you hover over About Us or Locations you can see the submenu appear shoved over to the right.  I want that menu to appear below the menu buttons in that cloud space.  Not sure why the space disappeared.

I also want the orange color to go away and have it be transparent with a the text color as green.

Thanks!
0
Comment
Question by:JGoyer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
McNetic earned 2000 total points
ID: 35108777
The space disappeared because you deleted it. It was the
<div id="navSub"></div>

Open in new window

.

The submenu is shoved to the right because it makes false assumptions about the layout of your page. Find this line in droplinemenu.js:

$targetul.css({left: $mainmenu.offset().left, top: $mainmenu.offset().top+this._dimensions.h})

Open in new window


Replace with:
$targetul.css({left: 0, top: $mainmenu.offset().top+this._dimensions.h})

Open in new window


You can play around with the values for left.

The orange color is defined in you stylesheet. Find this line:

background-color: #c76023;

Open in new window


and replace it by
background-color: none;

Open in new window


To make the text color green, find the line
color: #ffffff;

Open in new window


and replace by

color: darkgreen;

Open in new window


or something
0
 
LVL 2

Author Comment

by:JGoyer
ID: 35109842
SO much better!  There is a bit of a flicker.  What can I do about that?
http://www.communitygreengroup.com/cg_new/test4.php
0
 
LVL 8

Expert Comment

by:McNetic
ID: 35112357
I don't know what you mean by flicker? The submenu is not displayed immediately, but rather shown with a slidedown effect. Do you mean that?
0
 
LVL 2

Author Comment

by:JGoyer
ID: 35112801
No but I can't recreate it now so I will worry about it later.  Thanks!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question