// Enter Widget title then in parenthesis include the scroll height // One widget: "Title(###)" // the "###" in parenthesis is the height to make the widget // Two widgets: "Title 1(###), Title 2(###)" // separate the titles with a comma var makeScrollable = "Guild News(500), Shout!(200)" /* Don't change anything below */ ,scrollIt = function(t,h){ t = $.trim(t); h = h || 'auto'; var cb = $('.ContentBoxTitle:contains(' + t + '), .ContentBoxTitleNoBackground:contains(' + t + ')').closest('.gpWidget'), cbc = cb.find('.blkContent'); if (!cb.length) { return; } if (!cbc.length || cbc[0].tagName === "TD") { cbc = cb.find('.ContentBoxBody') .wrapInner('<div class="blkContent" />') .find('.blkContent'); } cbc.css({ height:h, 'overflow-y':'auto', 'overflow-x':'hidden' }); }, j, list = makeScrollable.split(','); for ( j=0; j<list.length; j++ ){ scrollIt( list[j].replace(/\(\d+\)/,''), list[j].match(/\d+/) ); }
One widget: var makeScrollable = "Title(###)" Two widgets: var makeScrollable = "Title 1(###), Title 2(###)"
<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>