<style> .gpWidget-forumslrg .ContentBoxBody, .gpWidget-forumslrg .PostItem1 { background: transparent no-repeat top right; } </style> <script> $(function(){ if ($('.gpWidget-forumslrg').length){ var changeSiteBackground = false, backgrounds = { 'Dwarf' : 'http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/Dwarf.png', 'Empire' : 'http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/Empire.png', 'High Elf' : 'http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/HighElf.png', 'Greenskin' : 'http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/Greenskin.png', 'Chaos' : 'http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/Chaos.png', 'Dark Elf' : 'http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/DarkElf.png' } // *************************** // Don't change anything below // *************************** ,nm, topic = window.location.search.match('TopicID='), ct = $('.ui-crumbtrail-wrapper'); if (ct.length){ nm = $('.ui-crumbtrail-wrapper').text(); nm = $.trim( (topic) ? nm.substring(nm.indexOf(':') + 1, nm.indexOf('>')) : // inside a topic, look for parent nm.substring(nm.indexOf('>') + 1, nm.length) ); // on topic list page if (backgrounds.hasOwnProperty(nm)) { ct = (changeSiteBackground) ? $('body') : $('.gpWidget-forumslrg').find('.ContentBoxBody'); ct.css('background-image', 'url(' + backgrounds[nm] + ')'); } } } }); </script>