|
Post by Ross on Jan 29, 2006 11:27:55 GMT -5
Global Footer<script type="text/javascript"> <!-- /* online/offline text and styles - open source */ var onlinestext = '<span style="font-weight: bold;">Member is Here</span>'; var offlinetext = '<span style="color: #000000;">Member is Away</span>'; var td = document.getElementsByTagName('td'); vfor(i=0; i<td.length; i++) { if(td.item(i).width == '20%' && td.item(i).innerHTML.match(/(member is .+?)<br>/i)) { if(RegExp.$1.match(/offline/)) tText = offlinetext; else tText = onlinestext; td.item(i).innerHTML = td.item(i).innerHTML.replace(RegExp.$1, tText); } } //--> </script>What this code does is allows you to change both the text displayed and the style of the text which says 'member is XXX' in their mini-profile. The green part is for online members, the red is for those who are offline. The bits highlighted in bold are where you put the styles. Examples of what styles you can include would include: color: FF6600; font-weight: bold; font-style: italic; text-decoration: underline;To use more than one style, just put one after another
|
|