peak_positions 2 Posted April 3, 2012 Report Share Posted April 3, 2012 Hi there, I would like to use image as background in UI html panel. I found an option to use image from websites. But I need an alternate way to include image. How to set a image from my local disk.? I have tried many ways to set background image. Still not getting out my need. Anyone have ideas.? Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted April 3, 2012 Report Share Posted April 3, 2012 I would have thought the following would have worked (also tried css)because the the same path including file:/// int he browser url area works fine and pulls up the image, but the browser used for the UI wont. ui html panel("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> <html xmlns=\"http://www.w3.org/1999/xhtml\"> <head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /> <title>Untitled Document</title> </head> <body background=\"file:///C:/Users/PCNAME/Pictures/folder/image_name.jpg\"> test </body> </html> ", 500) Quote Link to post Share on other sites
peak_positions 2 Posted April 4, 2012 Author Report Share Posted April 4, 2012 I don't get you Tj.. Could you clear me your steps for me.? Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted April 4, 2012 Report Share Posted April 4, 2012 its not possible in the ui area, from local pc at the moment. you can however bring up a local image in the main browser area of ubot though by calling its full path. Quote Link to post Share on other sites
Legend 181 Posted April 4, 2012 Report Share Posted April 4, 2012 Can you call up regular images (not for use as background) from the local PC, or is that also a no-go?http://ubotstudio.com/forum/public/style_emoticons/default/blink.gif Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted April 4, 2012 Report Share Posted April 4, 2012 Can you call up regular images (not for use as background) from the local PC, or is that also a no-go?http://ubotstudio.com/forum/public/style_emoticons/default/blink.gif you can navigate to local images on your pc in the main browser window area.you just cant use local images in the UI html the same way. but you can host an image and use it in the UI html Quote Link to post Share on other sites
Legend 181 Posted April 4, 2012 Report Share Posted April 4, 2012 Cool! Thanks TJ! http://ubotstudio.com/forum/public/style_emoticons/default/smile.gif Quote Link to post Share on other sites
JohnB 255 Posted April 4, 2012 Report Share Posted April 4, 2012 You can also use the local url if you are running a web server on your local machine, but I guess that's kind of obvious, huh? http://ubotstudio.com/forum/public/style_emoticons/default/smile.gif John Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.