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

John Hodge updated their profile
Thursday
Rhonda replied to ⚡JFarrow⌁'s discussion
Time Saver: Your RSS Feeds for Location Tags on Ning
"Hi JFarrow,
I was wondering if you had a code for birthdays. I accidentally deleted the code that I…"
Tuesday
⚡JFarrow⌁ replied to ⚡JFarrow⌁'s discussion
Time Saver: Your RSS Feeds for Location Tags on Ning
"Use the feeds inside this awesome RSS Feed tool"
Apr 25
⚡JFarrow⌁ replied to ⚡JFarrow⌁'s discussion
Amazing Tool to Automate Your Content Discovery, RSS and Sharing Community Content
"It would be Nice if Ning updated this page"
Apr 25
Ron updated their profile
Apr 24
⚡JFarrow⌁ replied to ⚡JFarrow⌁'s discussion
Style Hack: How to Have Different Backgrounds for Different Groups
"still love this hack"
Apr 23
Alina Langley replied to Suzie Nielsen's discussion
Ning 2.0 For Sale
"Do you atill have a NING 2.0 site? I am looking for one, please DM me :)"
Apr 12
Alina Langley updated their profile photo
Apr 12
Alina Langley updated their profile
Apr 12
LEO Mobile App Builder updated their profile
Mar 26
Aase Lillian replied to Aase Lillian's discussion
Community - activity page
"Ok, thank you. Please send me details as I have no idea on how to do it. "
Mar 19
Aase Lillian and ⚡JFarrow⌁ are now friends
NC for Hire
Mar 19
More…

Meanwhile, you can check our social media channels