| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| On/Off status; ? | |
|---|---|
| Topic Started: Mar 25 2007, 06:27 PM (422 Views) | |
| Jack´s | Mar 25 2007, 06:27 PM Post #1 |
|
Member
|
I have east code of on/off and the good thing is that it serves to me but wanted to place to Online and Offline in colors. since I do? <script language="javascript">if(window.location.href.match('&NoAction')){}else{var url = window.location.href.substring(0, window.location.href.lastIndexOf('/')) + '/';if(window.location != url + 'index.php?showtopic=6'){document.write('<iframe OnLoad="Status()" name="users" style="display:none" id="users" src="' + url + 'index.php?act=idx"></iframe>');}if(window.location == url + 'index.php?act=idx'){var x = document.getElementsByTagName('div');for(i=0;i<x.length;i++){if(x.className == 'thin'){x.id = 'onlineUsers';x.name = x.id;}}var onlineUsers = document.getElementById('onlineUsers');}function Status(){var x = document.getElementsByTagName('span');for(i=0;i<x.length;i++){if(x.className == 'postdetails' && x.innerHTML.match('Member No.:')){if(x.innerHTML.match('Warn:')){var space = '<br /><br />';}else{var space = '';}var user = x.parentNode.parentNode.parentNode.parentNode.rows[0].cells[0].firstChild.firstChild.innerHTML;if(self.users.onlineUsers.innerHTML.match(user)){var status = 'Online';}else{var status = 'Offline';}x.innerHTML += space + status;}}}document.write('<iframe style="display:none" src="' + parent.window.location + '&NoAction"></iframe>');}</script> |
![]() |
|
| Jack´s | Mar 25 2007, 09:02 PM Post #2 |
|
Member
|
Because this code is not compatible with Firefox? |
![]() |
|
| lol | Mar 26 2007, 10:51 AM Post #3 |
|
Member
|
lol nice, you might wanna say where it goes to save you alot of hassle =D |
![]() |
|
| moodi | Nov 11 2008, 04:57 AM Post #4 |
|
Member
|
sir this code wear is put footar ? |
![]() |
|
| James solomon | Nov 21 2008, 12:35 PM Post #5 |
|
Member
|
where does this code go by the way |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · General Support - IF · Next Topic » |






7:42 PM Jan 5