• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization Specific Navbar questions and help with a frontpage...

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #128 (Sunrise or Sunset), ShootingStar.

The next Dgrin Challenge DSS #129 (Silhouette Revisited ) is open for entries through May 27th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Old Jul-02-2010, 01:00 PM
#1
Jamesbjenkins is offline Jamesbjenkins OP
Live, shoot, post, repeat
Jamesbjenkins's Avatar
Specific Navbar questions and help with a frontpage...
Hey all, I need some help with my navbar. Here's what I'm trying to do.

1. Make the navbar sit underneath my custom banner.

2. Set the navbar to right adjust on the screen.

3. Set the background of the entire area behind the navbar (all across the horizontal level of the navbar, not just behind the buttons) to color #2a2b2e

4. Set the color of the navbar buttons when you hover on them to color # 286893

5. I have attempted to use Jfriend's tutorial for a dynamic navbar that highlights the current page, but I'm doing something wrong. I'd appreciate some help setting it up.

Thanks for all your help!
__________________
Website: www.captured-photos.com
Proofing: clients.captured-photos.com
Facebook: Like Me || Twitter: Follow Me
Gear: Lots of Nikon bodies & glass, an office full of tools and toys
Old Jul-02-2010, 01:12 PM
#2
jfriend is offline jfriend
Scripting dude-volunteer
To start with, if you want your navbar underneath, your banner, then move the HTML in your custom header for your navbar to be after your banner instead of before it.

Then, remove the junk numbers at the end of your CSS. Remove this:

10298107

You can set the background color of the combined header/navbar area with this CSS:

#myHeader {background-color: #286893;}

Then, to fix the width of your header/banner, you need to adjust the width of the CSS for your banner to match your image. Your image is 1524 pixels wide (which is really, really wide), but your CSS specifies a width of 1260px. Those two must match for proper control over formatting.

I think I may have already posted to you once on the dynamic navbar. Change this line of your JS so capitalization of the object name in JS matches your HTML:

Code:
YE.onContentReady("NavContainer", function ()
to this:

Code:
YE.onContentReady("navcontainer", function ()
After you make all these changes, we can assess where you are in regards to the other questions.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Jul-02-2010, 02:21 PM
#3
Jamesbjenkins is offline Jamesbjenkins OP
Live, shoot, post, repeat
Jamesbjenkins's Avatar
Ok, we're making good progress. Thanks so much. Here are my issues now:

1. The dynamic navbar's current page indicator is slightly overlapping the text in the navbar. It also needs to be wider, the blue line looks tiny.

2. Please remind me the proper CSS coding to set the hover code on the navbar buttons (i.e. #286593).
__________________
Website: www.captured-photos.com
Proofing: clients.captured-photos.com
Facebook: Like Me || Twitter: Follow Me
Gear: Lots of Nikon bodies & glass, an office full of tools and toys
Old Jul-02-2010, 02:31 PM
#4
jfriend is offline jfriend
Scripting dude-volunteer
Quote:
Originally Posted by Jamesbjenkins View Post
Ok, we're making good progress. Thanks so much. Here are my issues now:

1. The dynamic navbar's current page indicator is slightly overlapping the text in the navbar. It also needs to be wider, the blue line looks tiny.

2. Please remind me the proper CSS coding to set the hover code on the navbar buttons (i.e. #286593).
In your bio on the homepage, your slideshow isn't working because you have errors. Change this:

Code:
var ssConfig = {  AlbumID: '10295864', 
 newWindow: 'false', 
 transparent: 'true', 
 splash:  'http://www.smugmug.com/img/ria/ShizamSlides/smugmug_black.png', 
 showLogo: 'false', 
 clickToImage: 'false', 
 showThumbs: 'false', 
 showButtons: 'true', 
 crossFadeSpeed: '450' 
 position:center, 
};
to this:

Code:
var ssConfig = {   AlbumID: '10295864', 
  newWindow: 'false', 
  transparent: 'true', 
  splash:  'http://www.smugmug.com/img/ria/ShizamSlides/smugmug_black.png', 
  showLogo: 'false', 
  clickToImage: 'false', 
  showThumbs: 'false', 
  showButtons: 'true', 
  crossFadeSpeed: '450'
};
position: center is not a valid option and each option needs to have a comma after except not the last one.

If you want the blue highlight line to be wider, then increase it's width:

Code:
/* highlight individual menu items when their page is current */
#navcontainer .navCurrentPage {background: none; border-bottom: 2px solid #286893; border-top: 2px solid #286893;}
You can set the hover color in your navbar with this CSS:

#navcontainer li a:hover {color: #286593;}

You can center both navbar and banner with this CSS (which is what I think you need with something this wide):

#myHeader {margin: 0 auto;}

Then please, go look at your homepage on a netbook or small laptop. It will probably be too wide for someone to see the whole navbar or banner.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Jul-03-2010, 02:57 PM
#5
Jamesbjenkins is offline Jamesbjenkins OP
Live, shoot, post, repeat
Jamesbjenkins's Avatar
Great help. Thanks!

1. Is there some way that I can adjust the current page indicator so it doesn't slightly overlap my navbar buttons like it's currently doing?

2. I'm going to attempt to implement your stretchy slideshow process now. My slideshow looks like crap right now.

Quote:
Originally Posted by jfriend View Post
In your bio on the homepage, your slideshow isn't working because you have errors. Change this:

Code:
var ssConfig = {  AlbumID: '10295864', 
 newWindow: 'false', 
 transparent: 'true', 
 splash:   'http://www.smugmug.com/img/ria/ShizamSlides/smugmug_black.png', 
 showLogo: 'false', 
 clickToImage: 'false', 
 showThumbs: 'false', 
 showButtons: 'true', 
 crossFadeSpeed: '450' 
 position:center, 
};
to this:

Code:
var ssConfig = {   AlbumID: '10295864', 
  newWindow: 'false', 
  transparent: 'true', 
  splash:   'http://www.smugmug.com/img/ria/ShizamSlides/smugmug_black.png', 
  showLogo: 'false', 
  clickToImage: 'false', 
  showThumbs: 'false', 
  showButtons: 'true', 
  crossFadeSpeed: '450'
};
position: center is not a valid option and each option needs to have a comma after except not the last one.

If you want the blue highlight line to be wider, then increase it's width:

Code:
/* highlight individual menu items when their page is current */
#navcontainer .navCurrentPage {background: none; border-bottom: 2px solid #286893; border-top: 2px  solid #286893;}
You can set the hover color in your navbar with this CSS:

#navcontainer li a:hover {color: #286593;}

You can center both navbar and banner with this CSS (which is what I think you need with something this wide):

#myHeader {margin: 0 auto;}

Then please, go look at your homepage on a netbook or small laptop. It will probably be too wide for someone to see the whole navbar or banner.
__________________
Website: www.captured-photos.com
Proofing: clients.captured-photos.com
Facebook: Like Me || Twitter: Follow Me
Gear: Lots of Nikon bodies & glass, an office full of tools and toys
Old Jul-03-2010, 03:03 PM
#6
jfriend is offline jfriend
Scripting dude-volunteer
Quote:
Originally Posted by Jamesbjenkins View Post
Great help. Thanks!

1. Is there some way that I can adjust the current page indicator so it doesn't slightly overlap my navbar buttons like it's currently doing?
You'll have to give me more info about what you're seeing (browser specifics, screen shot, etc...) because I don't think I'm seeing that:

__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Tell The World!  

Thread Tools
Display Modes

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump