I have a problem here in Staff Online Widget ..
I use a Online Staff widget as a slide out hover in left side ..
The problem is why is my status and the other staff always offline even though we are online?
I think the Problem is the java script that i use ..
here is the code that I use ..
This code was provided by P-Robs
Source of the Link : Click Here
I hope you help me about this one ..
I use a Online Staff widget as a slide out hover in left side ..
The problem is why is my status and the other staff always offline even though we are online?
I think the Problem is the java script that i use ..
- Spoiler:
here is the code that I use ..
- Code:
<script type="text/javascript">
jQuery(function() {
var x = document.getElementById('left').getElementsByTagName('table')[1];
var y = document.getElementById('onlineStaff').getElementsByTagName('span');
for (i=0; i<y.length; i++) {
if (x.innerHTML.indexOf(y[i].innerHTML) > 0) y[i].innerHTML+=' <img src="'+'http://imageshack.us/a/img198/4198/onlinebg.png'+'">';
else y[i].innerHTML+=' <img src="'+'http://imageshack.us/a/img812/4033/offlinezn.png'+'">'; } });
</script>
This code was provided by P-Robs
Source of the Link : Click Here
I hope you help me about this one ..
Last edited by Bonetz on 13/6/2013, 23:05; edited 1 time in total