Jump to content
UBot Underground

Set Image as background in html panel


Recommended Posts

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.?

Link to post
Share on other sites

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)

Link to post
Share on other sites

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

Link to post
Share on other sites

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

Link to post
Share on other sites

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

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...