What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » CSS Code for Status Away

CSS Code for Status Away
Author: Message:
ASI Pinoy
New Member
*


Posts: 5
Joined: Jan 2007
O.P. RE: CSS Code for Status Away
this is the online offline code i am using. i don't think css is hiding it.
code:
<script language="javascript" type="text/javascript">
<!-- Online Status Indicator for Forumer

onlineStatus = "<p style='color:green;font-weight:bold'><img src='http://img86.exs.cx/img86/6840/useronline6oh.gif' alt='Online'> Online</p>"
offlineStatus = "<p style='color:red;font-weight:bold'><img src='http://img91.exs.cx/img91/5369/useroffline9qd.gif' alt='Offline'> Offline</p>"

document.write("<iframe name='index' src='{ibf.script_url}act=Online&CODE=listall&sort_key=click' style='display:none' onload='harvest()'></iframe>")

function harvest()
{
var td = window.frames["index"].document.getElementsByTagName("td")
for(var i = 0; i < td.length; i++){
if(td[i].className == "row1" && td[i].parentNode.parentNode.parentNode.parentNode.innerHTML.match("Online Users")){
var tdi = td[i]
harvestLinks(tdi);
}
}
}

function harvestLinks(tdi){
var a = tdi.getElementsByTagName("A")
var names = new Array(a.length)
for(i = 0; i < a.length; i++){
if(a[i].href.match("showuser=")){
names[i] = a[i].innerHTML.replace(/<[^>]+>/g, "")
updateStatus(names);
}
}
}

function updateStatus(names)
{
td=document.body.getElementsByTagName("TD")
for(s=0;s<td.length;s++) {
if((td[s].className=="post1"||td[s].className=="post2")&&td[s].innerHTML.match("Posts: ")&&td[s].width!="100%") {
var poste=td[s].getElementsByTagName("SPAN")[0]
var postName=td[s].parentNode.parentNode.getElementsByTagName("SPAN")[0].getElementsByTagName("A")[0];
for(j = 0; j < names.length; j++){
if(postName.innerHTML==names[j])
{
var replacoo=poste.getElementsByTagName("DIV");
for(p=0;p<replacoo.length;p++){
if(replacoo[p].className=="ShowOn"){
replacoo[p].innerHTML=onlineStatus;
}
else{
//good is sin
}
}
}
}
}
}
}


function OfflineWhen(){
td=document.body.getElementsByTagName("TD")
for(s=0;s<td.length;s++) {
if((td[s].className=="post1"||td[s].className=="post2")&&td[s].innerHTML.match("Posts: ")&&td[s].width!="100%") {
var poste=td[s].getElementsByTagName("SPAN")[0]
if(! poste.innerHTML.match("ShowOn")){
poste.innerHTML += "<br /><div class='ShowOn'>"+offlineStatus+"</div>"
}
}
}
}

OfflineWhen()
// -->
</script>
01-16-2007 07:59 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
CSS Code for Status Away - by ASI Pinoy on 01-16-2007 at 04:38 AM
RE: CSS Code for Status Away - by FineWolf on 01-16-2007 at 04:46 AM
RE: CSS Code for Status Away - by ASI Pinoy on 01-16-2007 at 04:54 AM
RE: RE: CSS Code for Status Away - by FineWolf on 01-16-2007 at 04:59 AM
RE: CSS Code for Status Away - by ASI Pinoy on 01-16-2007 at 05:17 AM
RE: CSS Code for Status Away - by FineWolf on 01-16-2007 at 05:20 AM
RE: CSS Code for Status Away - by RaceProUK on 01-16-2007 at 07:26 PM
RE: CSS Code for Status Away - by ASI Pinoy on 01-16-2007 at 07:59 PM
RE: CSS Code for Status Away - by FineWolf on 01-16-2007 at 08:34 PM
RE: CSS Code for Status Away - by WDZ on 01-16-2007 at 09:08 PM
RE: CSS Code for Status Away - by ASI Pinoy on 01-16-2007 at 11:29 PM
RE: CSS Code for Status Away - by FineWolf on 01-16-2007 at 11:42 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On