ID:175837
 
hey, i posted a topic a few days ago on a problem with my html file not showing pictures.... can someone setup an html file to display some img, and show me how to implement this with code? thanx
anyone?
Post [link] has the basics. You should look up browse() and browse_rsc() in the reference. If you have a BYONDscape subscription, http://www.byondscape.com/ascape.dmb/LummoxJR.2002-0220/ is a good article about using the browser.
In response to Jerico2day (#1)
this sould realy workd
____________________________________
var/html = "{
<HTML>
</HEAD>
<TITLE>
My HTML
</TITLE>
</HEAD>
<BODY>
Your text here
</BODY>
</HTML>
"
usr << browse_rsc(file)
usr << browse("[html]","window=html")
____________________________________

You can use your file anywhere you want but if its in a folder then always use only the file name and only name the folder at brows_src()
So if you file is in a folder HTML
____________________________________
var/html = "{
<HTML>
</HEAD>
<TITLE>
My HTML
</TITLE>
</HEAD>
<BODY background=test.PNG>
Your text here
</BODY>
</HTML>
"
usr << browse_rsc(html/test.PNG)
usr << browse("[html]","window=html")
____________________________________

I dunno if the code i gave is bug free (i am using a other computer now so i cant use byond to check it) but its something very close to this.

Greetz Fint
In response to Fint (#3)
ok thanx i will try it out