Triad
New Member
Posts: 33
|
Post by Triad on Nov 16, 2008 16:11:42 GMT -5
This cross-browser script will allow you to make your own message in your mini-profile where it says Member is online or member is offline. PreviewAll you have to edit is the online and offline variables. You can use HTML in them also, so if you want your online message to be bold and red, use: var online = "<font style='color: red; font-weight: bold;'>I am online</font>" Global Footers<script type="text/javascript"><!-- // Custom Online/Offline Message - Triad var online = "<b>This is the Online message</b>"; var offline = "<i>This is the offline message.</i>"; function changeMessage(){ for(var td = document.getElementsByTagName("td"),x=5;x<td.length;x++){ if(td[x].width=="20%" && td[x].innerHTML.match(/is\soffline/i) && td[x].innerHTML.match(/joined:/i)){ td[x].innerHTML = td[x].innerHTML.replace(/member\sis\soffline/i,offline); } else if(td[x].width=="20%" && td[x].innerHTML.match(/>online</i) && td[x].innerHTML.match(/joined:/i)){ td[x].innerHTML = td[x].innerHTML.replace(/member\sis\s<b>online<\/b>/i,online); } } } if(location.href.match(/on=(displ|search2|viewpr|pmv|(user)?rece|cal\w+iew)/)){ changeMessage(); } //--></script>
|
|