Tabs 150px wide .TabBar { background: transparent; border: 0; margin: 0 auto; padding: 0; width: 100px; } .SelectedTab a { color: #ffffff !important; } .UnSelectedTabMo a { color: #ffcc00 !important; } .SelectedTab, .UnSelectedTab, .UnSelectedTabMo { color: #ffffff; background: url(http://i259.photobucket.com/albums/hh311/hotwow/themes/styles/wowbutton1.gif) no-repeat; font-weight: bold; text-align: center; height: 42px; width: 150px; padding: 14px 0 0 0; border: 0px; } .SelectedTab { background-position: left top; } .UnSelectedTab { background-position: left -42px; } .UnSelectedTabMo { background-position: left bottom; } /* html>body added for non-IE styling */ html>body .SelectedTab, html>body .UnSelectedTab, html>body .UnSelectedTabMo { height: 28px; Tabs 125px wide .TabBar { background: transparent; border: 0; margin: 0 auto; padding: 0; width: 100px; } .SelectedTab a { color: #ffffff !important; } .UnSelectedTabMo a { color: #ffcc00 !important; } .SelectedTab, .UnSelectedTab, .UnSelectedTabMo { color: #ffffff; background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/wowbutton1x.gif) no-repeat; font-weight: bold; text-align: center; height: 42px; width: 125px; padding: 14px 0 0 0; border: 0px; } .SelectedTab { background-position: left top; } .UnSelectedTab { background-position: left -42px; } .UnSelectedTabMo { background-position: left bottom; } /* html>body added for non-IE styling */ html>body .SelectedTab, html>body .UnSelectedTab, html>body .UnSelectedTabMo { height: 28px; } Tabs 100px wide .TabBar { background: transparent; border: 0; margin: 0 auto; padding: 0; width: 100px; } .SelectedTab a { color: #ffffff !important; } .UnSelectedTabMo a { color: #ffcc00 !important; } .SelectedTab, .UnSelectedTab, .UnSelectedTabMo { color: #ffffff; background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/wowbutton2-1.gif) no-repeat; font-weight: bold; text-align: center; height: 41px; width: 100px; padding: 13px 0 0 0; border: 0px; } .SelectedTab { background-position: left top; } .UnSelectedTab { background-position: left -41px; } .UnSelectedTabMo { background-position: left bottom; } /* html>body added for non-IE styling */ html>body .SelectedTab, html>body .UnSelectedTab, html>body .UnSelectedTabMo { height: 28px; }
1. Add the tab images as you would normally do.
Control Panel > Styles & Colors > Tab Bar Styles > Horizontal Tab Bar
then Style & Colors > Tab Images
Add the URL of your images here and then save
2. Now add this to your CSS (Styles & Colors > Custom StyleSheet)
Add the "table.TabBar" if you want your buttons all scrunched together. Add the other two for the hover effect to work. Change the green text below to change your non-hover (555555 = medium grey) and hover (0000aa = blue) colors.
table.TabBar { border: 0; margin: 0 auto; padding: 0; width:100px;}td.Tab a img { background: #555555;}td.Tab a:hover img { background: #0000aa;}
Once again, add the "table.TabBar" if you want your buttons all scrunched together. Add the other two lines of CSS for the hover effect to work.
table.TabBar { border: 0; margin: 0 auto; padding: 0; width:100px;}td.Tab a img { background: #000 url(http://i259.photobucket.com/albums/hh311/hotwow/themes_old/border.png);}td.Tab a:hover img { background: #0000aa url(http://i259.photobucket.com/albums/hh311/hotwow/themes_old/hover.png);}
My Test Site Home page URL (the TabID is in orange):http://www.guildportal.com/Guild.aspx?GuildID=258012&TabID=2168223
This is where a slight limitation appears, if you have a tab that is only accessible to officers or site admins, you have to choose to either have it show for everyone or no one. I don't know enough about how guildportal sets the accessibility to display or not display tabs for members. But if you do display the tab and the person clicks on it without the security level, they will get an error.
table.TabBar {display:none;}table.TabBar2 { border:0px; margin:5px; padding:5px; width:550px; /* adjust width of the custom tab bar here */ margin-left:auto; margin-right:auto;}.Tab1Sel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/homes.gif) center center no-repeat; }.Tab1UnSel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/homeu.gif) center center no-repeat; }.Tab1Mo { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/homem.gif) center center no-repeat; }.Tab2Sel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/forumss.gif) center center no-repeat; }.Tab2UnSel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/forumsu.gif) center center no-repeat; }.Tab2Mo { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/forumsm.gif) center center no-repeat; }.Tab3Sel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/calendars.gif) center center no-repeat; }.Tab3UnSel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/calendaru.gif) center center no-repeat; }.Tab3Mo { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/calendarm.gif) center center no-repeat; }.Tab4Sel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/imagess.gif) center center no-repeat; }.Tab4UnSel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/imagesu.gif) center center no-repeat; }.Tab4Mo { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/imagesm.gif) center center no-repeat; }.Tab5Sel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/miscs.gif) center center no-repeat; }.Tab5UnSel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/miscu.gif) center center no-repeat; }.Tab5Mo { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/miscm.gif) center center no-repeat; }
<script type="text/javascript">var tabURL = new Array();// Enter only the TabID for each tab (in order) for your site below:// e.g.: http://admins.guildportal.com/Guild.aspx?GuildID=222222&TabID=111111// becomes -> tabURL.push ("111111"); // **************************************************************tabURL.push ("2000001"); // HometabURL.push ("2000002"); // ForumstabURL.push ("2000003"); // CalendartabURL.push ("2000004"); // ImagestabURL.push ("2000005"); // MiscimageWidth = 100;imageHeight = 100;// Don't change anything below// ***************************var tabType = "";var currentTab = gup('TabID');var currentGID = gup('GuildID');var tabHTML = '<table Class="TabBar2" border=0 cellpadding=2 cellspacing=0 width="100%"><tr>';for (j = 0; j < tabURL.length; j++) { if (currentTab == tabURL[j]) { tabType = 'Tab' + (j+1) + 'Sel'; tabMo = tabType; } else { tabType = 'Tab' + (j+1) + 'UnSel'; tabMo = 'Tab' + (j+1) + 'Mo'; } tabHTML += '<td class="' + tabType; tabHTML += '" style="width:' + imageWidth + 'px;height:' + imageHeight; tabHTML += 'px;" ="this.className=\'' + tabMo; tabHTML += '\';return true;" ="this.className=\'' + tabType; tabHTML += '\';return true;" onClick="top.location=\'Guild.aspx?GuildID=' + currentGID; tabHTML += '&TabID=' + tabURL[j] + '\'"></td>';}tabHTML += '</tr></table>';document.write (tabHTML);// Code from Netlobo.com (http://www.netlobo.com/url_query_string_javascript.html)function gup(name) { name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp( regexS ); var results = regex.exec( window.location.href ); if( results == null ) return ""; else return results[1];}</script>
<style type="text/css">table.TabBar {display:none;}.Tab1Sel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/home-s.gif) center center no-repeat; }.Tab1UnSel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/home-u.gif) center center no-repeat; }.Tab1Mo { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/home-h.gif) center center no-repeat; }.Tab2Sel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/forum-s.gif) center center no-repeat; }.Tab2UnSel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/forum-u.gif) center center no-repeat; }.Tab2Mo { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/forum-h.gif) center center no-repeat; }.Tab3Sel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/calendar-s.gif) center center no-repeat; }.Tab3UnSel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/calendar-u.gif) center center no-repeat; }.Tab3Mo { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/calendar-h.gif) center center no-repeat; }.Tab4Sel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/roster1-s.gif) center center no-repeat; }.Tab4UnSel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/roster1-u.gif) center center no-repeat; }.Tab4Mo { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/roster1-h.gif) center center no-repeat; }.Tab5Sel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/mroster2-s.gif) center center no-repeat; }.Tab5UnSel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/roster2-u.gif) center center no-repeat; }.Tab5Mo { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/roster2-h.gif) center center no-repeat; }.Tab6Sel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/mail-s.gif) center center no-repeat; }.Tab6UnSel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/mail-u.gif) center center no-repeat; }.Tab6Mo { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/mail-h.gif) center center no-repeat; }</style><script type="text/javascript">var tabURL = new Array();// Enter the full URL for each tab (using the same order in the CSS) for your site below:// You can also include other GuildPortal sites or any other website.// tabURL.push ("ENTER URL HERE"); // **************************************************************tabURL.push ("http://admins.guildportal.com/Guild.aspx?GuildID=262592&TabID=2205892"); // HometabURL.push ("http://admins.guildportal.com/Guild.aspx?GuildID=262592&TabID=2205893"); // ForumstabURL.push ("http://admins.guildportal.com/Guild.aspx?GuildID=262592&TabID=2205895"); // CalendartabURL.push ("http://admins.guildportal.com/Guild.aspx?GuildID=262592&TabID=2205896"); // RostertabURL.push ("http://www.guildportal.com/Guild.aspx?GuildID=258012&TabID=2168227"); // Roster2tabURL.push ("http://admins.guildportal.com/Guild.aspx?GuildID=262592&TabID=2205899"); // Mail// Tab image width and height (same for all images)var imageWidth = 100;var imageHeight = 30;// if below is true, the tab bar will be horizontal... vertical if falsevar tabHorizontal = false;// set the amount of space you want between each tab (horizontal or vertical)var tabSpacing = 5;// Add custom background CSS below: color or image// e.g. "background: #000000 url(myImage.jpg)" <- don't add a semi-colon inside the quotesvar tabBarBackground = "background: url()";// Don't change anything below// ***************************var tabMo = '';var tabType = '';var tabClick = '';var tabNumber = tabURL.length;var currentURL = window.location.href;var currentTab = gup('TabID',currentURL);var currentGID = gup('GuildID',currentURL); if (tabHorizontal) { var tabBarWidth = (imageWidth*tabNumber) + (tabSpacing*tabNumber); imageWidth = imageWidth + (tabSpacing/2); } else { var tabBarWidth = (imageWidth) + (tabSpacing/2); imageHeight = imageHeight + tabSpacing; }var tabCSS = '<style>table.TabBar2 {' + tabBarBackground; tabCSS += ';border-spacing:0px;padding:0px;margin:0px;width:' + tabBarWidth; tabCSS += 'px;margin-left:auto;margin-right:auto;}</style>';var tabHTML = tabCSS + '<table Class="TabBar2">';if (tabHorizontal) tabHTML += '<tr>';for (j = 0; j < tabNumber; j++) { if (currentURL == tabURL[j] || currentTab == gup('TabID',tabURL[j]) && currentGID == gup('GuildID',tabURL[j]) ) { tabType = 'Tab' + (j+1) + 'Sel'; tabMo = tabType; tabClick = ''; } else { tabType = 'Tab' + (j+1) + 'UnSel'; tabMo = 'Tab' + (j+1) + 'Mo'; tabClick = ' onClick="top.location=\'' + tabURL[j] + '\'"'; } if (!tabHorizontal) tabHTML += '<tr>'; tabHTML += '<td class="' + tabType; tabHTML += '" style="border:0px;padding:0px;margin:0px;width:' + imageWidth + 'px;height:' + imageHeight; tabHTML += 'px;" ="this.className=\'' + tabMo; tabHTML += '\';return true;" ="this.className=\'' + tabType; tabHTML += '\';return true;"'; tabHTML += tabClick; tabHTML += '></td>'; if (!tabHorizontal) tabHTML += '</tr>';}tabHTML += '</tr></table>';document.write (tabHTML);// Original code from Netlobo.com (http://www.netlobo.com/url_query_string_javascript.html)function gup(name, myString) { name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp( regexS ); var results = regex.exec( myString ); if( results == null ) return ""; else return results[1];}</script>
If you have your tab bar point to another site, simply add the code to that site. You can see an example of how to have the tab bar link to more than one site by clicking on the "Roster" tab of this site. The Navigation bar seen will take you to my "test site 2" roster. I would have used the forums, but I like my forums being the full width of the page
<style type="text/css">table.TabBar {display:none;}.TabBar2 { background: transparent url(); border:0px; padding:0px; }.TabBar2 li { list-style-type: none; margin:0px; padding:0px; }.Tab1Sel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/menu3S.png) left top no-repeat; height:47px; width:175px; }.Tab1UnSel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/menu3U.png) left top no-repeat; height:47px; width:175px; }.Tab1Mo { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/menu3M.png) left top no-repeat; height:47px; width:175px; }.Tab2Sel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/menu3S.png) left -47px no-repeat; height:19px; width:175px; }.Tab2UnSel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/menu3U.png) left -47px no-repeat; height:19px; width:175px; }.Tab2Mo { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/menu3M.png) left -47px no-repeat; height:19px; width:175px; }.Tab3Sel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/menu3S.png) left -66px no-repeat; height:19x; width:175px; }.Tab3UnSel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/menu3U.png) left -66px no-repeat; height:19px; width:175px; }.Tab3Mo { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/menu3M.png) left -66px no-repeat; height:19px; width:175px; }.Tab4Sel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/menu3S.png) left -84px no-repeat; height:19px; width:175px; }.Tab4UnSel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/menu3U.png) left -84px no-repeat; height:19px; width:175px; }.Tab4Mo { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/menu3M.png) left -84px no-repeat; height:19px; width:175px; }.Tab5Sel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/menu3S.png) left -103px no-repeat; height:18px; width:175px; }.Tab5UnSel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/menu3U.png) left -103px no-repeat; height:18px; width:175px; }.Tab5Mo { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/menu3M.png) left -103px no-repeat; height:18px; width:175px; }.Tab6Sel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/menu3S.png) left -120px no-repeat; height:19px; width:175px; }.Tab6UnSel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/menu3U.png) left -120px no-repeat; height:19px; width:175px; }.Tab6Mo { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/menu3M.png) left -120px no-repeat; height:19px; width:175px; }.Tab7Sel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/menu3S.png) left -140px no-repeat; height:38px; width:175px; }.Tab7UnSel { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/menu3U.png) left -140px no-repeat; height:38px; width:175px; }.Tab7Mo { background: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/menu3M.png) left -140px no-repeat; height:38px; width:175px; }</style><script type="text/javascript">var tabURL = new Array();// Enter the full URL for each tab (using the same order in the CSS) for your site below:// You can also include other GuildPortal sites or any other website.// tabURL.push ("ENTER URL HERE"); // **************************************************************tabURL.push ("http://www.guildportal.com/Guild.aspx?GuildID=258012&TabID=2168223"); // HometabURL.push ("http://www.guildportal.com/Guild.aspx?GuildID=258012&TabID=2168224"); // Our ForumstabURL.push ("http://admins.guildportal.com/Guild.aspx?GuildID=262592&TabID=2205893"); // Alliance ForumstabURL.push ("http://www.guildportal.com/Guild.aspx?GuildID=258012&TabID=2168226"); // CalendartabURL.push ("http://www.guildportal.com/Guild.aspx?GuildID=258012&TabID=2168227"); // RostertabURL.push ("http://www.guildportal.com/Guild.aspx?GuildID=258012&TabID=2168229"); // ChattabURL.push ("http://www.guildportal.com/Guild.aspx?GuildID=258012&TabID=2168230"); // Mail// Don't change anything below// ***************************makeTabs();function makeTabs () {if (String(top.name).substring(0,4) == "Edit") {return;}var tabMo = '';var tabType = '';var tabClick = '';var tabNumber = tabURL.length;var currentURL = window.location.href;var currentTab = gup('TabID',currentURL);var currentGID = gup('GuildID',currentURL);var tabHTML = '<div class="TabBar2" align="center">';for (j = 0; j < tabNumber; j++) { if (currentURL == tabURL[j] || currentTab == gup('TabID',tabURL[j]) && currentGID == gup('GuildID',tabURL[j]) ) { tabType = 'Tab' + (j+1) + 'Sel'; tabMo = tabType; tabClick = ''; } else { tabType = 'Tab' + (j+1) + 'UnSel'; tabMo = 'Tab' + (j+1) + 'Mo'; tabClick = ' onClick="top.location=\'' + tabURL[j] + '\'"'; } tabHTML += '<li><div class="' + tabType; tabHTML += '" ="this.className=\'' + tabMo; tabHTML += '\';return true;" ="this.className=\'' + tabType; tabHTML += '\';return true;"'; tabHTML += tabClick; tabHTML += '></div></li>';}document.write (tabHTML);}// Original code from Netlobo.com (http://www.netlobo.com/url_query_string_javascript.html)function gup(name, myString) { name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp( regexS ); var results = regex.exec( myString ); if( results == null ) return ""; else return results[1];}</script>
<style type="text/css">table.TabBar {display:none;}</style><script type="text/javascript">var tabURL = new Array();// ***************************// Tab Bar Settings// ***************************// if below is true, the tab bar will be horizontal... vertical if falsevar tabHorizontal = true;// set the amount of space you want between each tab (horizontal or vertical)var tabSpacing = 2;// Add custom background CSS below: color or image// e.g. "background: #000000 url(myImage.jpg); height:40px; width:650px;";var tabBarWrapper = "background: #000033 url(); height:40px;";// Change the overall tab bar alignment below, use: left, center or right.var tabBarAlign = "center";// Change the tab bar alignment more precisely within the tab bar wrappervar tabBarAlign2 = "top:5px; left:0px;";/* *************************************************************Enter the tab & image URLs (in order) for your site below:You can include any GuildPortal site or any other website.tabURL.push ([ "Tab URL","Selected Tab Image URL","UnSelected Tab Image URL","MouseOver Tab Image URL"]); ************************************************************** */// HometabURL.push ([ "http://admins.guildportal.com/Guild.aspx?GuildID=262592&TabID=2205892","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/home-s.gif","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/home-u.gif","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/home-h.gif"]); // ForumstabURL.push ([ "http://admins.guildportal.com/Guild.aspx?GuildID=262592&TabID=2205893","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/forum-s.gif","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/forum-u.gif","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/forum-h.gif" ]); // CalendartabURL.push (["http://admins.guildportal.com/Guild.aspx?GuildID=262592&TabID=2205895","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/calendar-s.gif","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/calendar-u.gif","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/calendar-h.gif"]);// RostertabURL.push (["http://admins.guildportal.com/Guild.aspx?GuildID=262592&TabID=2205896","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/roster1-s.gif","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/roster1-u.gif","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/roster1-h.gif" ]); // Roster2tabURL.push (["http://www.guildportal.com/Guild.aspx?GuildID=258012&TabID=2168227","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/roster2-s.gif","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/roster2-u.gif","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/roster2-h.gif"]);// MailtabURL.push (["http://admins.guildportal.com/Guild.aspx?GuildID=262592&TabID=2205899","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/mail-s.gif","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/mail-u.gif","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/tabs/mail-h.gif"]);// ***************************// Don't change anything below// ***************************makeTabs();function makeTabs () {if (String(top.name).substring(0,4) == "Edit") {return;}var currentTyp = '';var currentURL = window.location.href;var currentTab = gup('TabID',currentURL);var currentGID = gup('GuildID',currentURL);var tabHTML = '<style>.TabBkgd {' + tabBarWrapper + '}.TabBar2 {position: relative;'; tabHTML += tabBarAlign2 +'}.TabBar2 td {'; if (tabHorizontal) { tabHTML += 'padding: 0px '+ tabSpacing + 'px;'; } else { tabHTML += 'padding: '+ tabSpacing + 'px 0px;'; } tabHTML += 'margin:0px;border:0px;}.TabBar2 img {border:0px;}</style>'; tabHTML += '<div class="TabBkgd"><table class="TabBar2" cellpadding="0"'; tabHTML += ' cellspacing="0" border="0" align="'+ tabBarAlign +'" valign="middle">'; if (tabHorizontal) tabHTML += '<tr>';for (j = 0; j < tabURL.length; j++) { if (currentURL == tabURL[j][0] || currentTab == gup('TabID',tabURL[j][0]) && currentGID == gup('GuildID',tabURL[j][0]) ) { currentTyp = tabURL[j][1]; } else { currentTyp = tabURL[j][2]; } if (!tabHorizontal) tabHTML += '<tr>'; tabHTML += '<td><a class="tabStyle" href="' + tabURL[j][0] + '" '; tabHTML += '="tab' + j + '.src=\'' + tabURL[j][3] + '\'" '; tabHTML += '="tab' + j + '.src=\'' + currentTyp + '\'">'; tabHTML += '<img id="tab' + j + '" src="' + currentTyp; tabHTML += '"></a></td>'; if (!tabHorizontal) tabHTML += '</tr>';}if (tabHorizontal) tabHTML += '</tr>';tabHTML += '</table></div>';document.write (tabHTML);}// Original code from Netlobo.com (http://www.netlobo.com/url_query_string_javascript.html)function gup(name, myString) { name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp( regexS ); var results = regex.exec( myString ); if( results == null ) return ""; else return results[1];}</script>
Ifyou have your tab bar point to another site, simply add the code tothat site. You can see an example of how to have the tab bar link tomore than one site by clicking on the "Roster" tab (above). TheNavigation bar seen will take you to my "test site 2" roster.
Control Panel > Site Style > Navigation Type > Horizontal Tab Bar
<script type="text/javascript">$(document).ready(function() {$(".Tab").each(function (){ var tabName = $(this).find(".topTabLink").html(); var tabName2 = tabName.replace(" ","_"); var tabType = $(this).find("div").attr("class"); var tabLink = $(this).find(".topTabLink").html("").parent().html(); $(this).attr("id","tab_" + tabName2).html("<div></div>"); $(this).find("div").wrap(tabLink); if (tabType == "UnSelectedTab") { var tabMovr = "tabH_" + tabName2; var tabMout = "tabU_" + tabName2; var tabUsel = "tabU_" + tabName2; $(this).find("div").addClass(tabUsel) .mouseover(function(){$(this).removeClass(tabUsel).addClass(tabMovr)}) .mouseout(function(){$(this).removeClass(tabMovr).addClass(tabUsel)}); } else { var tabSel = "tabS_" + tabName2; $(this).find("div").addClass(tabSel); } if ($(this).find("div").css("background-image") == "none") { $(this).find("div").html(tabName); }});});</script>
Control Panel > Site Style > Navigation Type > Content Box - Left, Center or Right Side
<script type="text/javascript">$(document).ready(function() { $(".sideNavLink").parent().parent().addClass("sideMenu"); $(".sideNavLink").each(function (){ var tabLink = $(this).attr("href"); if (tabLink.match("Guild.aspx")) { var currentURL = window.location.href; var currentTab = gup('TabID',currentURL); var currentGID = gup('GuildID',currentURL); var tabName = $(this).html().replace(" ","_"); if (currentGID == gup('GuildID',tabLink) && currentTab == gup('TabID',tabLink)) { var tabType = "tabS_"; var tabMovr = "tabS_" } else { var tabType = "tabU_"; var tabMovr = "tabH_" } tabType += tabName; tabMovr += tabName; $(this).html("<div>"+tabName+"</div>"); $(this).find("div").addClass(tabType) .mouseover(function() {$(this).removeClass(tabType).addClass(tabMovr)}) .mouseout(function() {$(this).removeClass(tabMovr).addClass(tabType)}); if ($(this).find("div").css("background-image") != "none") { $(this).find("div").html(""); } } })});function gup(name, myString) { name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp( regexS ); var results = regex.exec( myString ); if( results == null ) return ""; else return results[1];}</script>
.tabH_Home {background: url(http://i201.photobucket.com/albums/aa236/Mottie1/guildsite/tabs/home-h.png) no-repeat; height:34px; width:100px; }.tabU_Home {background: url(http://i201.photobucket.com/albums/aa236/Mottie1/guildsite/tabs/home-u.png) no-repeat; height:34px; width:100px;}.tabS_Home {background: url(http://i201.photobucket.com/albums/aa236/Mottie1/guildsite/tabs/home-s.png) no-repeat; height:34px; width:100px;}.tabH_Forums {background: url(http://i201.photobucket.com/albums/aa236/Mottie1/guildsite/tabs/forums-h.png) no-repeat; height:34px; width:100px;}.tabU_Forums {background: url(http://i201.photobucket.com/albums/aa236/Mottie1/guildsite/tabs/forums-u.png) no-repeat; height:34px; width:100px;}.tabS_Forums {background: url(http://i201.photobucket.com/albums/aa236/Mottie1/guildsite/tabs/forums-s.png) no-repeat; height:34px; width:100px;}.tabH_Voting {background: url(http://i201.photobucket.com/albums/aa236/Mottie1/guildsite/tabs/voting-h.png) no-repeat; height:34px; width:100px;}.tabU_Voting {background: url(http://i201.photobucket.com/albums/aa236/Mottie1/guildsite/tabs/voting-u.png) no-repeat; height:34px; width:100px;}.tabS_Voting {background: url(http://i201.photobucket.com/albums/aa236/Mottie1/guildsite/tabs/voting-s.png) no-repeat; height:34px; width:100px;}.tabH_Calendar {background: url(http://i201.photobucket.com/albums/aa236/Mottie1/guildsite/tabs/calendar-h.png) no-repeat; height:34px; width:100px;}.tabU_Calendar {background: url(http://i201.photobucket.com/albums/aa236/Mottie1/guildsite/tabs/calendar-u.png) no-repeat; height:34px; width:100px;}.tabS_Calendar {background: url(http://i201.photobucket.com/albums/aa236/Mottie1/guildsite/tabs/calendar-s.png) no-repeat; height:34px; width:100px;}.tabH_Roster {background: url(http://i201.photobucket.com/albums/aa236/Mottie1/guildsite/tabs/roster-h.png) no-repeat; height:34px; width:100px; }.tabU_Roster {background: url(http://i201.photobucket.com/albums/aa236/Mottie1/guildsite/tabs/roster-u.png) no-repeat; height:34px; width:100px;}.tabS_Roster {background: url(http://i201.photobucket.com/albums/aa236/Mottie1/guildsite/tabs/roster-s.png) no-repeat; height:34px; width:100px;}.tabH_Bank {background: url(http://i201.photobucket.com/albums/aa236/Mottie1/guildsite/tabs/bank-h.png) no-repeat; height:34px; width:100px; }.tabU_Bank {background: url(http://i201.photobucket.com/albums/aa236/Mottie1/guildsite/tabs/bank-u.png) no-repeat; height:34px; width:100px;}.tabS_Bank {background: url(http://i201.photobucket.com/albums/aa236/Mottie1/guildsite/tabs/bank-s.png) no-repeat; height:34px; width:100px;}.tabH_Chat {background: url(http://i201.photobucket.com/albums/aa236/Mottie1/guildsite/tabs/chat-h.png) no-repeat; height:34px; width:100px; }.tabU_Chat {background: url(http://i201.photobucket.com/albums/aa236/Mottie1/guildsite/tabs/chat-u.png) no-repeat; height:34px; width:100px;}.tabS_Chat {background: url(http://i201.photobucket.com/albums/aa236/Mottie1/guildsite/tabs/chat-s.png) no-repeat; height:34px; width:100px;}.tabH_Mail {background: url(http://i201.photobucket.com/albums/aa236/Mottie1/guildsite/tabs/mail-h.png) no-repeat; height:34px; width:100px; }.tabU_Mail {background: url(http://i201.photobucket.com/albums/aa236/Mottie1/guildsite/tabs/mail-u.png) no-repeat; height:34px; width:100px;}.tabS_Mail {background: url(http://i201.photobucket.com/albums/aa236/Mottie1/guildsite/tabs/mail-s.png) no-repeat; height:34px; width:100px;}
.TabBar {background: transparent url(); color:#ffffff; margin:auto; width:10%;}.Tab {padding-left:5px;}
#tab_Welcome { display:none; }
.sideMenu {background: transparent url(); margin-top:20px; margin-left:10px;}.tab {margin-left:10px; margin-bottom:0px;}.sideMenu li {list-style-type: none; margin:-2px; padding:0px; width:0px;}html>body .sideMenu li {margin:0px;} /* hack for non-IE */
<style type="text/css"> .tooltip, .preview, .screenshot { cursor:pointer; } #tooltip, #tooltip2, #preview, #screenshot { color:#dddddd; background:#222222; border: 1px solid #333333; padding:5px; display:none; opacity: 0.9; filter: alpha(opacity=90); text-align:left; border-radius: 1em; -moz-border-radius: 1em; -webkit-border-radius: 1em; } </style> <script src="http://www.axiomfiles.com/Files/258012/tooltip.js" type="text/javascript"></script>