ID:173915
 
Is it possible to place a hyperlink in a statpanel? I tried:
stat("<a href = \'http://www.mywebisite.com'>Visit the site</a>")

and it doesn't seem to work, heh.
Enigmaster2002 wrote:
Is it possible to place a hyperlink in a statpanel? I tried:
> stat("<a href = \'http://www.mywebisite.com'>Visit the site</a>")
>

and it doesn't seem to work, heh.

Unfortunately, it isn't possible to create a hyperlink in a statpanel (it doesn't help that your tag is messed up, either -- never put a space between the equals and the attribute or its value; the format is always <tag attribute="value" attribute2="value2" attribute3="value3">data</tag>).

However, there is a trick you can use to create a "link" in a statpanel:

obj/statpanel_link icon = 'statpanellink.dmi' name = "Visit the Site" Click() ..() usr << link("http://www.mywebsite.com") var/obj/statpanel_link/SITE_LINK = new mob/Stat() //unshown code goes here stat(SITE_LINK) //add the link to the site to the current panel


And that avoids a smack with a newspaper for the day...