Solved

jquery slider menu help

Posted on 2011-03-10
4
459 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Javascript to set controls visibility 5 38
trying to resize an Image, using CFimage tag. 8 32
Select case on click 3 16
Html CheckBox obtain Its Value 5 18
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 …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to dynamically set the form action using jQuery.
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)

832 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