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

Simple floating link image

If you would like to add a floating link image to your home page here is some script that works.

First create your own image file - upload it to your own hosting server or to Ning - then add that URL after "var logo url" between the " "s.

Then add a URL for your link after "var link_url" between the " "s.

Change where you want the image to appear on your home page by adjusting "img.style" settings. i.e top or bottom, left or right, and also distance in pixels.

Paste your amended code in the "body" section of your Custom Code.

If you need any help please ask.

============================================

Make sure you change the logo and link URL (location) as describe above.

============================================

 

<script type="text/javascript">

  /* Change this */

  var logo_url = "/logo.png";

  /* And this */

  var link_url = "/";

  var a = document.createElement("a");

  a.href = link_url;

  var img = document.createElement("img");

  img.src = logo_url;

  img.alt = "Logo";

  /* Use "top" if you want it to hang from the top */

  img.style.bottom = "0px";

  /* Use "left" if you want it on the left */

  img.style.right = "0px";

  img.style.position = "fixed";

  a.appendChild(img);

  document.body.appendChild(a);

</script>

==========================================

Your amended script should look similar to this...

==========================================

<script type="text/javascript">

  /* Change this */

  var logo_url = "http://awebsite.net/images/mylink.png";

  /* And this */

  var link_url = "http://acoolwebsite.net";

  var a = document.createElement("a");

  a.href = link_url;

  var img = document.createElement("img");

  img.src = logo_url;

  img.alt = "Logo";

  /* Use "top" if you want it to hang from the top */

  img.style.top = "40px";

  /* Use "left" if you want it on the left */

  img.style.right = "0px";

  img.style.position = "fixed";

  a.appendChild(img);

  document.body.appendChild(a);

</script

==========================================

Here is a screen shot. Floating image link top-left

See it working here >> ukchristians.ning.com

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

  • Done.  Cool - thank you.  Great for a chat link. "Hot Sale!", signup link, etc.  Thank you for sharing :)

  • Hey Alexander,

    Nice, I really like this. Is there anyway to make it open a new window/tab rather than the same one the Ning network is open? Also, do you of a way to hide the link image if the network is showing in a mobile format?

    Thanks,

    Henry

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

Eva liked ⚡JFarrow⌁'s discussion What is going on with Ning? What Do We have to Look Forward To?
yesterday
Eva liked Suave's discussion I AM LOOKING FOR DEVELOPER ASSISTANCE WITH ADDING AUTOMATIC MUSIC TO MY HOME PAGE
yesterday
Alex - Rosas † Negras posted a discussion
Sunday
Alex - Rosas † Negras posted a discussion
May 28
Alex - Rosas † Negras replied to Suave's discussion
I AM LOOKING FOR DEVELOPER ASSISTANCE WITH ADDING AUTOMATIC MUSIC TO MY HOME PAGE
"if you need I'm here, if you look in my discussions you will also find the playstil"
May 23
Alex - Rosas † Negras replied to ⚡JFarrow⌁'s discussion
What is going on with Ning? What Do We have to Look Forward To?
"Bizz ⚡JFarrow⌁ 
I'm sorry that many like us have worked so hard and given up, but at least I'm…"
May 23
⚡JFarrow⌁ posted a discussion
Back in the day, this community was jumping with activity.   But since the Ukraine war broke out we…
May 22
⚡JFarrow⌁ and Truebook are now friends
May 22
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"
May 20
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"
May 20
Alex - Rosas † Negras replied to Pam Givens's discussion
Landing Page
""
May 20
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"
May 19
More…

Meanwhile, you can check our social media channels