inherit
38417
0
Mar 16, 2009 13:12:59 GMT -8
Just Jess
204
March 2005
lillacmess
|
Post by Just Jess on Jan 14, 2006 13:09:05 GMT -8
Forum URL: lillacmess.proboards44.comI was just wondering how to change the code below so that the offline would be like this: offline<script type="text/javascript"> <!-- var online = 'ON-LINE'; var offline = 'OFF-LINE';
var td = document.getElementsByTagName('td'); for(i=0; i<td.length; i++) { if(td.item(i).width == '20%' && td.item(i).innerHTML.match(/(member is (.+?))<br>/i)) { var cur = RegExp.$1; if(RegExp.$2.match(/<b>/i)) var status = online; else var status = offline; td.item(i).innerHTML = td.item(i).innerHTML.replace(cur,status) } } //--> </script>
|
|
inherit
"support Goddess"
59854
0
Oct 16, 2007 9:22:41 GMT -8
Ms PiXie
have a nice day :)
7,823
September 2005
pixiestix
|
Post by Ms PiXie on Jan 14, 2006 13:14:02 GMT -8
Forum URL: lillacmess.proboards44.comI was just wondering how to change the code below so that the offline would be like this: offline<script type="text/javascript"> <!-- var online = 'ON-LINE'; var offline = 'OFF-LINE';
var td = document.getElementsByTagName('td'); for(i=0; i<td.length; i++) { if(td.item(i).width == '20%' && td.item(i).innerHTML.match(/(member is (.+?))<br>/i)) { var cur = RegExp.$1; if(RegExp.$2.match(/<b>/i)) var status = online; else var status = offline; td.item(i).innerHTML = td.item(i).innerHTML.replace(cur,status) } } //--> </script> please ask this question here--> support.proboards.com/index.cgi?board=coderequests
|
|
inherit
40157
tyrantlytamale 627939549 tjhtmlmaniac
0
Sept 3, 2023 15:17:02 GMT -8
Tylr
The stale taste of recycled air.
2,964
April 2005
tyrantlytamale
|
Post by Tylr on Jan 14, 2006 13:22:49 GMT -8
Lillac, you modified your Support thread before I could reply, and this is in the wrong spot... I PMed you the answer about a half hour ago lol. PM me if that didn't work.
|
|
inherit
38417
0
Mar 16, 2009 13:12:59 GMT -8
Just Jess
204
March 2005
lillacmess
|
Post by Just Jess on Jan 14, 2006 13:23:14 GMT -8
sorry!
|
|
inherit
40157
tyrantlytamale 627939549 tjhtmlmaniac
0
Sept 3, 2023 15:17:02 GMT -8
Tylr
The stale taste of recycled air.
2,964
April 2005
tyrantlytamale
|
Post by Tylr on Jan 14, 2006 13:48:27 GMT -8
sorry! No worries, and for the record here is the answer: var online = '<strike>ON-LINE</strike>'; var offline = '<strike>OFF-LINE</strike>';
|
|
inherit
17569
0
Aug 14, 2023 13:11:03 GMT -8
frufru
11,774
December 2003
frufru
|
Post by frufru on Jan 14, 2006 14:33:04 GMT -8
sorry! No worries, and for the record here is the answer: var online = '<strike>ON-LINE</strike>'; var offline = '<strike>OFF-LINE</strike>';this is easier var online = '<s>ON-LINE</s>'; var offline = '<s>OFF-LINE</s>';
|
|