Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Mar 22nd, 2018, 06:53am

Board Hacks
Important News
Please read the notes posted with any codes carefully, as they will usually tell you where they need to go.
Welcome to the Conforums Hacks Board!

All codes here have been tested but we accept no responsibility if these codes do not work on your board, or have an adverse effect when used in combination with other codes.

This board is read only. Any queries or requests for codes should be made on the Coding Forum

Helpful sites
Dynamic Drive

The Staff

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Users online to top(or anywhere you want)  (Read 2660 times)
I've always wanted one of these wink
Conforums Administrator

member is offline


Mr Fixit...

Homepage PM

Gender: Male
Posts: 17664
xx Users online to top(or anywhere you want)
« Thread started on: Feb 5th, 2004, 4:44pm »

Put this in your main headers only, where you want the online box to appear
<div align="center" id="Online"></div>

and then in your footers:
var browser_type = navigator.userAgent
if(browser_type.indexOf("MSIE") != -1 && browser_type.indexOf("Opera") == -1){
var cc=0
var TR = document.getElementsByTagName('TR')
for(gt=0; gt<TR.length; gt++){
if(TR[gt].cells[0].innerText=="Users online"){
var B1 = TR[gt]
var B2 = TR[gt+1]
var uhg = "<table border=0 width=\"92%\" cellspacing=\"0\" cellpadding=\"0\" class=\"bordercolor\"><tr><td><table cellpadding=\"4\" cellspacing=\"1\" border=\"0\" width=\"100%\">"+TR[gt].outerHTML+TR[gt+1].outerHTML+"</table></td></tr></table>"
Online.innerHTML = uhg
// -->

Please note, this code will only function in Internet Explorer.
« Last Edit: Mar 22nd, 2006, 12:05pm by Dave » User IP Logged

Have you read the FAQ or checked the Hacks board before posting?
Then please do so...
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Back To Top
| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls