Welcome Guest [Log In] [Register]
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:

Username:   Password:
Add Reply
On/Off status; ?
Topic Started: Mar 25 2007, 06:27 PM (422 Views)
Jack´s
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>
Offline Profile Quote Post Goto Top
 
Jack´s
Member
 *  

Because this code is not compatible with Firefox?
Offline Profile Quote Post Goto Top
 
lol
Member
 *  
lol nice, you might wanna say where it goes to save you alot of hassle =D
Offline Profile Quote Post Goto Top
 
moodi
Member
 *  
sir this code wear is put footar ?
Offline Profile Quote Post Goto Top
 
James solomon
Member
 *  
where does this code go by the way
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · General Support - IF · Next Topic »
Add Reply