Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Dec 17th, 2017, 02:13am


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
Google
Dynamic Drive

The Staff
Roger
Dave
GIzzy



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


member is offline

Avatar

Mr Fixit...


Homepage PM

Gender: Male
Posts: 17654
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:
<script>
<!--
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
if(cc>0){
B1.style.display="none"
B2.style.display="none"
}
cc++
}}}
// -->
</script>

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?
No?
Then please do so...
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Back To Top
Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls