|
<script type="text/Javascript"> // Online/Offline to Image by Chris // Do not redistribute without permission of the creator
var _on = "URL OF ONLINE IMAGE"; // URL of the online image var _off = "URL OF OFFLINE IMAGE"; // URL of the offline image
// Don't edit below here var aDI = document.getElementsByTagName("DIV"); for(a=0;a<aDI.length;a++){ if(aDI[a].className == "miniprofile"){ aDI[a].innerHTML = aDI[a].innerHTML.replace(/Member is <b>Online<\/b>/i,"<img src='"+_on+"' />").replace(/Member is <b>Offline<\/b>/i,"<img src='"+_off+"' />"); } } </script> The variables near the top's descriptions should explain them fairly well. What this code does is it switches the "Member is Online" and "Member is Offline" to images in the miniprofile. Module should go in your global footers.
Last Edit: Oct 22, 2006 3:59:47 GMT by Chris
|
|
|
|