ID:138992
 
Code:
usr << browse('mage.dmi',"charcreation.preview")


Problem description:
The code is pretty self-explanitory but I can't figure out what to do, I'm a total noob at browsers. Anyways the general idea is to create a preview of your character, instead of actually creating your character on the map and editing their overlays based on the users decision. But I have no idea how to do it, I thought browse would work but it didn't I've also tried output(which I knew wouldn't work) and I have no clue.
browse() uses your browser so whatever you output needs to be in HTML format. In order to show an image, you need to use <img src="filename.ext"> tag.

Also note that in order to show filename.ext in browse(), you first must use browse_rsc('file', "filename.ext")
In response to GhostAnime
Ah! I got it! But, is there any way to stretch the icon to fit the browser window?
In response to SadoSoldier
SadoSoldier wrote:
Ah! I got it! But, is there any way to stretch the icon to fit the browser window?

I think with CSS and html you can do it.
Just set the background property of something to be the image, and set the background to stretch.
In response to Complex Robot
Smart, I never would have though of using it as the background image :o!