Modifying a simple code
2 posters
Page 1 of 1
Modifying a simple code
Hi, I wonder if it has to do with this code online to inform only those who are actually online.
He currently shows online any member who has gone through the forum in the last hour, but I would like him to inform users currently online.
He currently shows online any member who has gone through the forum in the last hour, but I would like him to inform users currently online.
- Code:
<div id="onlineStaff">
<span class="staffname">D'Leandro™</span><br>
<span class="staffname">~Rafael~</span><br>
<span class="staffname">Bookmarlucas654</span><br>
<span class="staffname">iTzDaemonTools</span><br>
</div>
<script>
jQuery(function() {
var x = jQuery('.module', document.getElementById('right'))[1].innerHTML;
var y = jQuery('.staffname', document.getElementById('onlineStaff'));
for (var i=0, l = y.length; i<l; i++) {
if (x.indexOf(y[i].innerHTML) > 0) {
y[i].innerHTML+=" - Online";
}
else { y[i].innerHTML+=" - Offline"; }
}
});
</script>
Last edited by D'Leandro™ on July 11th 2013, 9:38 pm; edited 1 time in total
D'Leandro™- Forumember
- Posts : 50
Reputation : 1
Language : Português
Re: Modifying a simple code
Please change the topic's title into English.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» I need some code modifying Please ????
» Looking for simple CSS code help
» Just one simple question-Can I use my own code to remove ads?
» Simple CSS code to remove Forum Image?
» Modifying CSS.. not going so well
» Looking for simple CSS code help
» Just one simple question-Can I use my own code to remove ads?
» Simple CSS code to remove Forum Image?
» Modifying CSS.. not going so well
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum