<script type="text/javascript"> var images = []; /* ******************************** Add images: images.push (["TabID","Add URL here"]); Add Flash: images.push (["TabID","Add URL here","Width","Height"]); - TabID is from the URL of your site, below the TabID is 2222222 "http://www.guildportal.com/Guild.aspx?GuildID=111111&TabID=2222222" - If the TabID has no match, the script will default to the first image. - Make sure you have brackets "[]" around the TabID and URL ******************************** */ images.push (["2222220","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/bkgd_cobblestone.gif"]); images.push (["2222221","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/bkgd_dirt.gif"]); images.push (["2222222","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/bkgd_floor.gif"]); images.push (["2222223","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/bkgd_grass.gif"]); images.push (["2222224","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/bkgd_lava.gif"]); images.push (["2222225","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/bkgd_outland2.gif"]); images.push (["2222226","http://70.85.12.163/albino_flash06s/badger(www.albinoblacksheep.com).swf","400","350"]); // banner builder background image var replaceBannerBackground = true; // ******************************** // Don't change anything below this line // ******************************** var img = '', inc = 0, j = 0, currentTab = gupw('TabID'); for (var j=0; j < images.length; j++) { if ( images[j][0] == currentTab ) { inc = j; } } if (images[inc][1].match('.swf')) { img = '<object width="' + images[inc][2] + '" height="' + images[inc][3] + '"><param name="movie" value="' + images[inc][1] + '"></param><embed src="' + images[inc][1] + '" type="application/x-shockwave-flash" width="' + images[inc][2] + '" height="' + images[inc][3] + '"></embed></object>'; $('#bannerCell').html(img); } else if (replaceBannerBackground) { $('#bannerCell').css('background-image','url("'+ images[inc][1] + '")'); } else { $('#containedBanner').attr('src', images[inc][1]); } function gupw(n){ n = n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"); n = (new RegExp("[\\?&]" + n + "=([^&#]*)")).exec(window.location.href); return n == null ? "" : n[1]; } </script>
*Note: You MUST have the brackets "[]" (in blue) around the data for this to work!
Add images: images.push (["Add URL here"]);Add Flash: images.push (["Add URL here","Width","Height"]);
<div id="banner" align="center"></div><script type="text/javascript">var images = new Array();/* ******************************** Add images: images.push (["TabID","URL to CSS","Add URL here"]); Add Flash: images.push (["TabID","URL to CSS","Add URL here","Width","Height"]);- TabID is from the URL of your site, below the TabID is 2222222 "http://www.guildportal.com/Guild.aspx?GuildID=111111&TabID=2222222" - If the TabID has no match, the script will default to the first image.- Make sure you have brackets "[]" around the TabID and URL ******************************** */var inc = 0; // default themeimages.push (["2222220","http://www.axiomfiles.com/Files/243007/style-bold2.css","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/bkgd_cobblestone.gif"]);images.push (["2222221","http://www.axiomfiles.com/Files/243007/style-black2.css","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/bkgd_floor.gif"]);images.push (["2222222","http://www.axiomfiles.com/Files/243007/style-ne2.css","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/bkgd_grass.gif"]);images.push (["2222223","http://www.axiomfiles.com/Files/243007/style-grey2.css","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/bkgd_rez2.jpg"]);images.push (["2222224","http://www.axiomfiles.com/Files/243007/style-blue2.css","http://i201.photobucket.com/albums/aa236/Mottie1/testsite/styles/bkgd_outland2.gif"]);images.push (["2222225","http://www.axiomfiles.com/Files/243007/style-wv2.css","http://70.85.12.163/albino_flash06s/badger(www.albinoblacksheep.com).swf","400","350"]);images.push (["2222226","http://www.axiomfiles.com/Files/243007/style-parch2.css",""]);// ********************************// Don't change anything below this line// ********************************var img = "";var currentTab = gup("TabID"); for (var j=0; j < images.length; j++) { if ( images[j][0] == currentTab ) inc = j; } if (images[inc][2].match(".swf")) { img = "<object width='" + images[inc][3] + "' height='" + images[inc][3]; img += "'><param name='movie' value='" + images[inc][2]; img += "'></param><embed src='" + images[inc][2] + "' type='application/"; img += "x-shockwave-flash' width='" + images[inc][3] + "' height='" + images[inc][4]; img += "'></embed></object>"; } else { img = (images[inc][2]=="") ? "" : "<img src=" + images[inc][2] + " border=0>"; } if (images[inc][1] != "") { img += "<link rel='stylesheet' type='text/css' media='screen' href='"; img += images[inc][1] + "'>"; }document.getElementById("banner").innerHTML = img;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>