I'm just wondering if there is way to reference HTML and PICS from your local hard drive instead of off the net with BYOND???
Like -> usr << browse("C:\\mybyond\index.html")
Because I pay for hosting on the site I'm at now and its eating up my monthly allocated Bandwidth. Also I'd like to make it so some pics and maybe html are only accessable from within the game, opposed to on the web where they can be shared.
LJR
ID:154274
![]() Feb 18 2002, 12:30 am
|
|
Damn..
I take it *.gif or *.jpg won't work??? I got the html working but no pics will show they are all in jpg format. Why should this matter??? LJR |
gifs and jpgs work fine, if they are included in the rsc file properly. Could you post the code you are using?
|
LordJR wrote:
should I just define these in the DME? No, no, you need to browse_rsc() files needed, then browse() the HTML page that needs them. I.e.: usr << browse_rsc('background.jpg') usr << browse("<body background=background.jpg>") |
yeah thats what I meant.. Is there a way to just reference to a BMP or something? Instead of bring it up as a HTML page? This question is for the Local drive once again.
LJR |
LordJR wrote:
yeah thats what I meant.. Is there a way to just reference to a BMP or something? Instead of bring it up as a HTML page? This question is for the Local drive once again. Could you be a little more specific? I'm not sure I understand. [edit] I still don't understand. =) |
usr << browse(file('htmlfile.html'))
As for the pics, use browse_rsc() first. If the pic 'mypic.bmp' is in htmlfile.html, then do this:
Hope i helped..
-Rcet