ID:139242
 
Code:
mob/verb
Who()
set category = "Options"
var/online=0
for(var/mob/M)
if(M.client&&!M.shown)
online+=1
var/who
who+={"<STYLE>BODY {background: Black; color: White}IMG.icon{width:32;height:32}</STYLE><center><img src=http://i37.photobucket.com/albums/e53/digifais/pbf.png></center><br><tr align="center"><center><td colspan="6"><font size=3></td></tr>Players Online: [online]</td></tr></table>"}
who+={"<head><title>Players Online</title></head><br><table border="1" cellpadding="4"><tr align="center"><th colspan="3"><font size=1>Name</th><th><font size=1>Key</th><th><font size=1>Rank</th><th><font size=1>Team</th></tr>"}
for(var/mob/M)
if(M.client&&!M.shown)
var/icon/I = new(M.icon, M.icon_state,SOUTH)
if(M.AFK)
who+={"<tr align="center"><td colspan="3"><img src='[I]'><font size=2> [M.name](<font color=red>AFK</font>)</td><td><font size=2>[M.key]</td><td><font size=2>[M.rank]</td><td><font size=2>[M.Team]</td></tr>"}
else
who+={"<tr align="center"><td colspan="3"><img src='[I]'><font size=2> [M.name]</td><td><font size=2>[M.key]</td><td><font size=2>[M.rank]</td><td><font size=2>[M.Team]</td></tr>"}
winshow(src, "browser", 1)
src<<browse(who)


Problem description:
I've tried a bunch of things, but couldn't get the mob's icon with their current icon_state show in the browser. The code above is what I have now. Can anyone help me out?
Thanks in advance.

Yours truly,
Raimo.

If you're not using browse_rsc() to send the icon, the format you need to use is \ref[I], not just [I]. Just using [I] will output /icon into your HTML, whereas you want something more like [0xc00004b].
In response to Lummox JR
<img src='\ref[I]'>

That gives me a square with a red cross in.