#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Dec 17, 2006 10:42:10 GMT -8
Description - This code will allow you to make your own message in your mini-profile where it says Member is online or member is offline. Cross Browser - Yes. Preview - LinkAll 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>- 2/18/07 Updated the location check since it wasn't executing the code on all of the specific pages. - 7/2/07 Shortened the code length.
|
|