| Source Code Access Required | No |
| Skills Required | JavaScript |
You can use a tracking code JavaScript hack to add a tab to your social network which goes to another site. This is a somewhat advanced trick, though, so please proceed only if you’re familiar with JavaScript.
<script type= "text/javascript">var newtab = document.createElement('li');
newtab.id='xg_tab_custom1';
newtab.innerHTML = '<a href="http://TAB_LINK">TAB_ANCHOR</a>';
var referencetab = document.getElementById('xg_tab_forum');
if(referencetab) {
referencetab.parentNode.insertBefore(newtab,referencetab);
}
</script>
<script type= "text/javascript">var newtab = document.createElement('li');
newtab.id='xg_tab_custom1';
newtab.innerHTML = '<a href="http://YOURNETWORKNAME.ning.com/page/page/show?id=2041178%3APage%3A71">custom</a>';
var referencetab = document.getElementById('xg_tab_groups');
if(referencetab) {
referencetab.parentNode.insertBefore(newtab,referencetab);
}
</script>

Many times, you'll want to use your new tab to link to an existing location on your network. If you do this, you'll notice that your new tab doesn't highlight when it's been selected. In fact, depending on where you are linking your new tab to on your network, one of the default tabs will usually be highlighted after you click on your new tab. To fix this, follow the steps below:
<script>
var currentpage = window.location;
if(currentpage == 'TAB_LINK')
{
document.getElementById('TAB_ID').className='';
document.getElementById('xg_tab_custom').className='this';
}
</script>
<script>
var currentpage = window.location;
if(currentpage == 'http://YOURNETWORKNAME.ning.com/page/page/show?id=2041178%3APage%3A71')
{
document.getElementById('xg_tab_page').className='';
document.getElementById('xg_tab_custom').className='this';
}
</script>
Last updated by Ning Developer Admin May 9.
© 2008 Created by Ning Developer Admin