Current status of the Ning Platform is always available on the Ning Status Blog.

This tip is compatible with IE8+, FF7+, Chrome, Safari and Opera10+. See the Live Demo. Scroll to see my menu.

This little plugin is was orignaly created by Nick La as a "Scroll to top" button. I made some very minor modifations to it, a little CSS tweaking to #xg_navigation and it gave me just what I wanted for my hidden website navigation menu.

To use it is very simple.

Add the code below to your custom code box.

<script>
$(document).ready(function(){

// hide targeted element first
$("#xg_navigation").hide();

// fade back in targeted element
$(function () {
$(window).scroll(function () {
if ($(this).scrollTop() > 50) {
$('#xg_navigation').fadeIn();
} else {
$('#xg_navigation').fadeOut();
}
});
});

});
</script>



Now add the code below to your advanced CSS box.

/*Onscroll-Menu*/

.xg_theme #xg_navigation {
margin-top: -173px;
margin-top: -212px \0/; /* IE8+9 */
position: fixed;
z-index: 10;
}
/*Bug-Fix-For-Mozilla-Browsers*/
@-moz-document url-prefix() {
.xg_theme #xg_navigation {
margin-top: -212px
}
}



You will most likely will have to make some adjustments to the margin-top propeties to get it just right when viewing it in all browsers.

As Always:

If this does not go off without a hitch, please don't get upset. I may have left something out. Reply below if you need help.

Don't forget to share with us all how you used this tip and any modifications you may have made to make it work on your Ning powered website.

You need to be a member of Ning Creators Social Network to add comments!

Join Ning Creators Social Network

Votes: 0
Email me when people reply –

Replies

  • nice

    • Thank you

  • @anthony..nice find...but having problems with it in differtent browser,have to play with code a lil bit.

    • Yes, there are margin issues in Firefox and IE. I have included a work around for FF and IE in the CSS. Is this not working for you or are you saying my display is off?

      If it is your site where you are having issues, can you share your URL and I will see what I can do. Which browser and version are you having issues with?

  • This reply was deleted.
    • Thank you

This reply was deleted.
 

Some interesting articles related to community management, digital marketing etc. could be found in our digest. Don't hesitate to leave a feedback so we would know that we should continue :-)

Latest Activity

Alex - Rosas † Negras replied to Alex - Rosas † Negras's discussion
I want to thank JOHN BIZLEY ( BIZZ) for his invaluable help, active icons on the Ning bar,CODES ADDED
"A thousand thanks"
Tuesday
Alex - Rosas † Negras replied to Pam Givens's discussion
Landing Page
"Pam Givens this is an example i created of an old 3.0 site"
Tuesday
Alex - Rosas † Negras replied to Pam Givens's discussion
Landing Page
""
Tuesday
Alex - Rosas † Negras replied to Alex - Rosas † Negras's discussion
Sorry for my absence
"Pam Givens hi my friend, yes everything is ok a big hug"
Monday
Alex - Rosas † Negras replied to ⚡JFarrow⌁'s discussion
Ning Creators Sound Off: Share Your Network
"⚡JFarrow⌁  hi my bro! the situation is sad, Biz and all the programmers are missing, once we all…"
Monday
Alex - Rosas † Negras and Truebook are now friends
Monday
Melissa V updated their profile
May 7
conversor de letras updated their profile
May 7
Truebook replied to ⚡JFarrow⌁'s discussion
Ning Creators Sound Off: Share Your Network
"Ok I just changed my name to truebook.co.uk 
please take a look at let me know what you think and…"
Apr 25
KAMALAVIATION TOURS updated their profile
Apr 25
Truebook replied to ⚡JFarrow⌁'s discussion
Ning Creators Sound Off: Share Your Network
"Please can anyone help my site truebook.site is down for some reason 
trid to contact Ning and even…"
Apr 22
Truebook posted a discussion
Why is my site down ?
Apr 22
More…

Meanwhile, you can check our social media channels