Solved

jquery slider menu help

Posted on 2011-03-10
4
453 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
  • 2
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
McNetic earned 500 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
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 …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

706 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now