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)
Once again, addthe "table.TabBar" if you want your buttons all scrunched together. Addthe 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>'; (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// ***************************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); 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"); // MailmakeTabs();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>
<div><img align=center src="URL to your banner image here"></div>